I am trying to write a gdl object that detects the ID of the layout it is placed on and then breaks the resulting ID into component strings. e.g. If the ID of layout is A123. I want to break it down into separate strings of "A", "1","2","3". The code I have written works fine with either a global ID, or a regular text string("A123"), but if I set a variable equal to <LAYOUTID> and try to break it down, it doesn't work the same. If I look at the full text of that variable with a text2 output, I see "A123." However, if I use the SPLIT command, or STRSUB command to 'break it down' the way I do with the regular text variable, it breaks out as "<","L","A","Y" instead of "A","1","2","3" Why?
Does anyone know how I can use the layout ID to get the results I want? Or, is there another way to do this that I haven't thought of. I can post the object, but it's still rough.
Brilliant! Why can't the GDL user guide actually explain how most things work. They never show a very basic example so you can figure out the proper syntax and usage. Posted a bit of your script in my object and voila! Thank you very much.
Many Thanks, JP
John Peterson, AIA
Dalgliesh Gilpin Paxton Architects
Archicad 7-21 US
PC and iMac
Since I've asked this question several times in other places and received no answer.. maybe I'll ask it here...
Is it not possible to get and display BOTH the LAYOUT ID and the VIEW ID of a drawing placed on a layout?
I want to keep my VIEW ID's for details as they are in my MASTER DETAIL setup... But when placed in a project I want to obviously show the ID by Layout in the bubble and have a small piece of text in the title that is the Master ID (ID by View ID)...