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

Help with GLOB_CONTEXT

Cosminn
Booster
Hello everyone, i have a problem with this script, i want to create one rectangle in the floor plan but i need just a line in teh list, the problem is i can't control the hotspot from the floor plan, please help me .
This is the 2D script:

If GLOB_CONTEXT = 2 Then
rect2 0,0,poz1,poz1
HOTSPOT2 0,0, unID, poz1, 1+256 ,poz1 : unID=unID+1
HOTSPOT2 poz1,0, unID, poz1, 2 ,poz1 : unID=unID+1
HOTSPOT2 -0.1,0, unID, poz1, 3 ,poz1 : unID=unID+1
ENDIF

If GLOB_CONTEXT =6 Then
Line2 0,0,poz1,0
ENDIF

P.S. poz1 is a variable / type- distance
Sincerely,
Daniel
2 REPLIES 2
Anonymous
Not applicable
the hotspotediting doesn't works if GLOB_CONTEXT = 2

use this eg.:

unID = 1
if GLOB_CONTEXT = 6 then
line2 0,0,poz1,0
else
rect2 0,0,poz1,poz1
hotspot2 0,0, unID, poz1, 1+256 ,poz1 : unID=unID+1
hotspot2 poz1,0, unID, poz1, 2 ,poz1 : unID=unID+1
hotspot2 -0.1,0, unID, poz1, 3 ,poz1 : unID=unID+1
endif
Cosminn
Booster
Yeah, you're right, Thanks a lot.
Sincerely,
Daniel