Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Library Part Name request?

Anonymous
Not applicable
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