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

Help with GLOB_CONTEXT

Cosminn
Contributor
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
------------------------------------------------------------
AC24
•Workstation HP Z800 2 x Intel Xeon Quad Core E5620/E5630, 36 GB ram DDR3 - NVIDIA QUADRO 4000 2 GB memory, Windows 10 pro
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
Contributor
Yeah, you're right, Thanks a lot.
------------------------------------------------------------
AC24
•Workstation HP Z800 2 x Intel Xeon Quad Core E5620/E5630, 36 GB ram DDR3 - NVIDIA QUADRO 4000 2 GB memory, Windows 10 pro

Start a new conversation!

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!