RapidSymbolSearch
Hi!
I have a question about RapidSymbolSearch. I cannot get the second parameter in the SearchRapidSymbol call to work. I have a search that should find all the robtargets in a module. The search looks like:
ABB.Robotics.Controllers.RapidDomain.RapidSymbolSearchProperties p = ABB.Robotics.Controllers.RapidDomain.RapidSymbolSearchProperties.CreateDefault();
p.Types = ABB.Robotics.Controllers.RapidDomain.SymbolTypes.Variable;
ABB.Robotics.Controllers.RapidDomain.RapidSymbol[] result = module.SearchRapidSymbol( p,"robtarget",".*" );
If I read the User Guide correctly I think that this should find all robtargets in the module? I have tried to change the 3:rd parameter to "string.Empty" but the result is the same. The Regular expression seams to work, all my robtargets end with "Target" and if I changes the 3:rd parameter to ".*Target" I get what I'm looking for, but that is not a solution that will work for very long.
Does the 2:nd parameter not work in the current implementation of RAB? Or am I doing something incorrectly?
BR
Mikael
Comments
-
Mikael,
make sure that :
p.GlobalRapidSymbol = true;
p.Recursive = true;
sProp.SearchMethod = SymbolSearchMethod.Block;I got the this to work using "num" anyway.
Urban Vikblom
CONTAB0
Categories
- All Categories
- 5.5K RobotStudio
- 394 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 309 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings