using leSearchHierarchy with brackets

V

vlsidesign

Guest
I know that from the menu (Virtuoso pulldown) I can search for brackets
by backslashing them, ie. bit\[0\], but how might I did it in a skill
routine. Here is a snippet of my code so far:

while( gets(nextLine inPort )
fscanf( instring(nextLine) "%s %s" a b)
if ( (pinName == a)
then keyText = b
);if
);while

foundLabel = leSearchHierarchy(
cv
cv~>bBox
1
"label"
list(
list("text" "==" keyText)
);list
);leSearch

So when it has the bracket, like bit[0], it will not find it, but I am
not sure how to change the code to somehow search for that. Any help is
greatly appreciated. Thank you.
 
After some sleep, I just realized the obvious. Just search and get ALL
the labels, and then just use something like a 'foreach' and iterate
through them, searching for the pin I need.

vlsidesign wrote:
I know that from the menu (Virtuoso pulldown) I can search for brackets
by backslashing them, ie. bit\[0\], but how might I did it in a skill
routine. Here is a snippet of my code so far:

while( gets(nextLine inPort )
fscanf( instring(nextLine) "%s %s" a b)
if ( (pinName == a)
then keyText = b
);if
);while

foundLabel = leSearchHierarchy(
cv
cv~>bBox
1
"label"
list(
list("text" "==" keyText)
);list
);leSearch

So when it has the bracket, like bit[0], it will not find it, but I am
not sure how to change the code to somehow search for that. Any help is
greatly appreciated. Thank you.
 

Welcome to EDABoard.com

Sponsor

Back
Top