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

Split Layout ID for Reference Markers

Anonymous
Not applicable
Hi,
I am having a bit of trouble with the code for my cross referencing to layout ID. For example my section marker.
Some of our projects we have long layout numbers. Eg. WAA-AD-3000. (We dont always have contol over what we can number our drawings)
These are quite long for our section markers, so i would like to drop off the 'WAA-AD-' part in the reference.
I am guessing I use the STRSTR command, but not sure how this will work using the Layout ID
-Tom

(Sorry I clearly have a bit to learn in GDL)
3 REPLIES 3
Barry Kelly
Moderator
As far as I know you can use the Layout ID (autotext value) in your scripts but you can't actually get the information from it to manipulate.
i.e you can't actually read any of the characters in the string.
It doesn't behave like a normal parameter that you can use STRLEN and STRSTR and STRSUB to capture certain parts of the string (you were on the right track there).
You can only use it in its entirety or not at all.
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
Thats disapointing. Thanks for your quick responce.
sinceV6
Advocate
You could try the solution from here:

http://archicad-talk.graphisoft.com/viewtopic.php?t=38528

I'm not sure how that would integrate in your back-reference script; but it'll get you the layoutID where the object is placed on.

Best regards