cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Library Part Name request?

Might be very easy thing but can't find anything about it.

How can I get a library part name into a variable inside that particular object (not for a label)?

I need to map that variable into parameter so it will match a library part name only if certain conditions are met. I have a bunch of GDL objects so there wouldn't be need for manual entry.

Thanks.
2 Replies 2
Barry Kelly
Moderator
Try ...

REQUEST ("Name_of_macro", "", my_name)

Or ...

REQUEST ("Name_of_main", "", main_name)

Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Anonymous
Not applicable
Thanks, Barry
REQUEST ("Name_of_macro", "", my_name) did the trick

n = REQUEST ("Name_of_macro", "", my_name)
lpName = STRSUB (my_name, 1, STRSTR(my_name, ".gsm")-1)  !STRSUB and STRSTR to remove library part file extension

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!