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

Split Layout ID for Reference Markers

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

(Sorry I clearly have a bit to learn in GDL)
Barry Kelly
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.
One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Not applicable
Thats disapointing. Thanks for your quick responce.
You could try the solution from here:

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

Start a new conversation!

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!