There seems to be a bug in ArchiCAD:
To use movable hotspots together with the VALUES command and RANGE is no problem.
But if you use movable hotspots together with the VALUES command and RANGE and you use Array parameters within the VALUES command the VALUES command will have no function while moving your hotspots in 2D or 3D.
An example:
Define an array parameter named "angle" with 2 rows (angle[2]),
write in the Parameter Script:
VALUES "angle" RANGE [0, 360] STEP 360, 10
this does not work if you use movable hotspots,
you have to do a workaround instead:
FOR i=1 TO 2
FOR k=0 TO 35 STEP 1
IF angle
>10*k+5 AND angle
<=10*(k+2)-5 THEN angle
=10*(k+1)
PARAMETERS angle
=angle
NEXT k
NEXT i
The 2D Script with the editable hotspots look like this (from the gdl manual):
LINE2 0, 0, A, 0
LINE2 0, 0, A*COS(angle[1]), A*SIN(angle[1])
ARC2 0, 0, 0.90*A, 0, angle[1]
ARC2 0, 0, 0.60*A, 0, angle[2]
unID=1
HOTSPOT2 0, 0, unID : unID=unID+1 ! anchor point
HOTSPOT2 0 , 0 , unID, angle[1], 6 : unID=unID+1
HOTSPOT2 0.9*A , 0 , unID, angle[1], 4 : unID=unID+1
HOTSPOT2 0.9*A*COS(angle[1]), 0.9*A*SIN(angle[1]), unID, angle[1], 5 : unID=unID+1
HOTSPOT2 0 , 0 , unID, angle[2], 6 : unID=unID+1
HOTSPOT2 0.6*A , 0 , unID, angle[2], 4 : unID=unID+1
HOTSPOT2 0.6*A*COS(angle[2]), 0.6*A*SIN(angle[2]), unID, angle[2], 5 : unID=unID+1
Has anyone another solution?
Graphisoft, please put this into your bug list!
Jochen Suehlo . AC12-27 . MAC OSX 14.4 . WIN11
GDL object creation:
b-prisma.de