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

Set Layer Within Object?

Anonymous
Not applicable
Is it possible to have an object check which layer it is on and reset it if necessary?
3 REPLIES 3
Frank Beister
Moderator
The global GLOB_LAYER should help you. (GDL Reference Guide 9.0 p.217)

What do you mean with "reset it"? You can't change the layer the object is on within the script.
bim author since 1994 | bim manager since 2018 | author of selfGDL.de | openGDL | skewed archicad user hall of fame | author of bim-all-doors.gsm
Anonymous
Not applicable
F. wrote:
You can't change the layer the object is on within the script.
That's what I was looking for. Being able to script an object to be on the correct layer would sure help with those users who don't pay proper attention to layering. Oh well.
TomWaltz
Participant
You could probably do something like:

IF glob_layer <> "Right Layer" THEN
TEXT2 0,0, "PAY ATTENTION!"
END
ENDIF

at the beginning of the 2D script.
Tom Waltz