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.4K RobotStudio
- 383 UpFeed
- 14 Tutorials
- 11 RobotApps
- 291 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 247 ScreenMaker
- 2.7K Robot Controller
- 279 IRC5
- 46 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 733 RAPID Programming
- 15 Wizard Easy Programming
- 105 Collaborative Robots
- 3 Job listings