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

How do I know that GDL script is exec in hotlinked module?

Anonymous
Not applicable
Hello!
My project contains several floors. One floor is typical. The other ones I posted hotlinks the first floor. Need to make my objects are not reflected on the floors above the 2nd. How do I know that a GDL script is executed in the mode are hotlinked in?

Thank you!
5 REPLIES 5
Laszlo Nagy
Community Admin
Community Admin
In GDL you can try to use a REQUEST command to get the Story the object is placed on (I don't know if this works, you would have to try).
Then if the object returns the correct Story in the host file, you can script it to display a different 2D depending on which Story it is on.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac28
Anonymous
Not applicable
Thank You!
But it works in 2d, but does not work in the 3d window.
I've already done in a similar way using REQUEST("home_store"...).
It is not very convenient. Because the user must enter the name of the floor. And I would like just to put a variable "to not show hotlinks".
Laszlo Nagy
Community Admin
Community Admin
I think this REQUEST command can return a valid value only in Floor Plan Viewpoints, but not in 3D.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac28
Pertti Paasky
Expert
You can try the z-value [ SYMB_POS_Z ]. If the object is positioned higher than certain level, then program exits.
( if SYMB_POS_Z>12 then end )
- AC-24 FIN - WIN 10 - HP Zbook -
“A winner is just a loser who tried one more time.”
George M. Moore, Jr.
Anonymous
Not applicable
Hi Pertti,

If you try this script in the 3d script window, it will show you what you want...

I don't know what story index number you are using for your stories, so that 2 assumes that level two has an index number of 2.

so try the following as a test to see what index number is good...

zzz = REQUEST ("Home_story", "", index, story_name)
!Returns in the index and story_name variables the index and the name of the home story.

!3D TEXT ELEMENTS
!TEXT
!TEXT d, 0, expression
!A 3D representation of the value of a string or numeric type expression in the current style.

d = 0.1
expression = index

if index <= 2 then
TEXT d, 0, expression
!!!!!!!!!!!Your 3d Script here once you know the index number for your story
endif

I hope this helps