# RapidSymbolSearch

**URL:** <https://tech-community.robotics.abb.com/t/rapidsymbolsearch/572>\
**Category:** Developer Tools\
**Created:** [December 9, 2005, 4:13pm UTC](https://tech-community.robotics.abb.com/t/rapidsymbolsearch/572 "2005-12-09T16:13:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mikael](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@Mikael](https://tech-community.robotics.abb.com/u/Mikael)\
**Post date:** [December 9, 2005, 4:13pm UTC](https://tech-community.robotics.abb.com/t/rapidsymbolsearch/572/1 "2005-12-09T16:13:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Urban](https://avatars.discourse-cdn.com/v4/letter/u/7ba0ec/32.png) [@Urban](https://tech-community.robotics.abb.com/u/Urban)\
**Post date:** [December 19, 2005, 4:27pm UTC](https://tech-community.robotics.abb.com/t/rapidsymbolsearch/572/2 "2005-12-19T16:27:07Z")

</div>

Mikael,

make sure that :

p.GlobalRapidSymbol = true;

p.Recursive = true;

sProp.SearchMethod = SymbolSearchMethod.Block;

I got the this to work using “num” anyway.
