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

Layers and GDL

Red
Advocate
I'm guessing this isn't possible..................but maybe it is.........


I have a part created with text that you can turn on and off in plan view. Is it possible for an object to recognize if a layer is hidden or not.

I would like for the object to be able to look at that layer and when its on the text would turn off or on which ever it maybe.
Thanks,
Red
i7 8700k
ROG Strix Z390-E MoBo
64gb RAM
EVGA GeForce GTX 2080
_______________________
http://www.facebook.com/flatcreekdesignstn
http://www.sraarchitects.biz
6 REPLIES 6
Rob
Graphisoft
Graphisoft
Red,

you can't do it in GDL. That layer stuff what you are asking for requires C programming and the add-on development kit.
::rk
Red
Advocate
Is there any helpful tutorials out there for the add-on development kit. There are several people here that have C knowledge, but where can we find any info to get us started?
Thanks,
Red
i7 8700k
ROG Strix Z390-E MoBo
64gb RAM
EVGA GeForce GTX 2080
_______________________
http://www.facebook.com/flatcreekdesignstn
http://www.sraarchitects.biz
Rob
Graphisoft
Graphisoft
TomWaltz
Participant
Red wrote:
Is there any helpful tutorials out there for the add-on development kit. There are several people here that have C knowledge, but where can we find any info to get us started?
There's an entire forum about developing with the API here on Archicad-Talk. There are also hundreds of pages of documentation that come along with it.

If you do not have a strong C and C++ background, you will probably have a lot of work ahead of you, since it is really geared towards experienced programmers.
Tom Waltz
Aussie John
Newcomer
Ther are two workarounds that might help-
1) you can turn on and off the text dependant on the drawing scale- not layers I know but the end result might be the same.
2) use labels with the object as they are basically layer independent of the object
Cheers John
John Hyland : ARINA : www.arina.biz
User ver 4 to 12 - Jumped to v22 - so many options and settings!!!
OSX 10.15.6 [Catalina] : Archicad 22 : 15" MacBook Pro 2019
[/size]
Anonymous
Not applicable
Hello Red

You can also use a Zone "transparent" which locate on the layer than you want interact with your object.
An object can request the zone where it is locate and then change it appearance by this way.