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

GDL: Determine Name Of Display Option?

Anonymous
Not applicable
Is there a way in GDL to determine the name of the Display Option being used? I would like to explore using the Display Options to control how my Zone tags appear -- such as having the area only appear on the finish plans.
6 REPLIES 6
tsturm
Newcomer
Jay

What is it that you change in the Display Options when you show your Finish plans?

What is unique about the settings you use that would activate this feature in your Zone tool?
Terrence Sturm, Architect
_______________
MBP OSX 10.15.4 Quad Core Intel i7 2.2hz
AC 17 build 5019
AC 22 build 7000
AC 23 build
AC 24 build 5000
Karl Ottenstein
Moderator
Jay wrote:
Is there a way in GDL to determine the name of the Display Option being used?
Hi Jay,

Good meeting you at ACUWest. I assume you mean the name of the display option combo? No way to access that name AFAIK either from GDL or from API at present. Seems like you could have the behavior be associated with a layer combo name ... and a custom REQUEST API add-on could provide that perhaps.

Karl
AC 28 USA and earlier   •   macOS Sequoia 15.3, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
One of the forum moderators
Anonymous
Not applicable
tsturm wrote:
What is unique about the settings you use that would activate this feature in your Zone tool?
I would like to have a section in the Zone tool that would display the area only when the active Display Option's name is "Finish Plan, Print". It's just a simple trick to make the Zone tool behave differently depending on what Display Option I'm working in. I suppose it could be done based on the Layer Combo, or whether a particular layer is active. Hmmm....Karl?
Karl Ottenstein
Moderator
Jay wrote:
I would like to have a section in the Zone tool that would display the area only when the active Display Option's name is "Finish Plan, Print". It's just a simple trick to make the Zone tool behave differently depending on what Display Option I'm working in. I suppose it could be done based on the Layer Combo, or whether a particular layer is active. Hmmm....Karl?
Ah, I see better what you want now Jay... and the available solution is awkward. If you really do need to have your part react to the current display settings, then the individual settings need to be queried - since the the display option combo name is not available (previous post). If you are using the name as a 'trick' -- having the exact same combination of display options assigned to two different names, but with one name having your part act one way and another name having it act another ... then there is currently no solution AFAIK other than to use a fake layer combo or set the visibility status of a fake layer as a 'flag'.

The GDL developer's kit and API developer's kit have the tools to let you create GDL extensions, such as new REQUEST features. All of this is free to download and use, but the license prohibits us from talking about it in public ... and for all I know I've already said too much!

Karl
AC 28 USA and earlier   •   macOS Sequoia 15.3, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
One of the forum moderators
Anonymous
Not applicable
Karl wrote:
... then there is currently no solution AFAIK other than to use a fake layer combo or set the visibility status of a fake layer as a 'flag'.
Okay, so how do program a GDL to check the visibility status of a particular layer? That would probably be fine for what I'm attempting, since there are certain layers that would only be visible on a finish plan.
Karl Ottenstein
Moderator
Jay wrote:
Okay, so how do program a GDL to check the visibility status of a particular layer? That would probably be fine for what I'm attempting, since there are certain layers that would only be visible on a finish plan.
GDL Dev kit and API dev kit on your own, or hire someone to implement the needed REQUEST. I haven't written a custom REQUEST before, so would be slower (more expensive) than someone like Ferenc Lazar who probably can do this in his sleep....

Karl
AC 28 USA and earlier   •   macOS Sequoia 15.3, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
One of the forum moderators