
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
- 398 UpFeed
- 19 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 324 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 813 RAPID Programming
- 5 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings