We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2023-07-13 10:49 AM
When I mirror the Editable Angle Hotspot something goes wrong. How can I mirror this (without creating a new hotspot for mirrored cases, because the hotspot is in a macro)
Normal:
Mirrored
Code:
FOR i = 1 TO 2
IF i = 2 THEN
ADD2 0,-DikteDraaideel
MUL2 1,-1
ELSE !i=1
ENDIF
HOTSPOT2 0, 0, 1, ohtd, 6
HOTSPOT2 A, 0, 2, ohtd, 4
HOTSPOT2 A*COS(ohtd), A*SIN(ohtd), 3,ohtd, 5
LINE2 0,0,A*COS(ohtd), A*SIN(ohtd)
HOTLINE2 0,0,A*COS(ohtd), A*SIN(ohtd)
ARC2 0,0,A,0,ohtd
HOTARC2 0,0,A,0,ohtd
NEXT i
thanks a lot,
Jeroen de Bruin
Solved! Go to Solution.
2023-07-13 11:09 AM
The mirrored hotspot needs it angle of rotation reversed with a 512 attribute value.
Change the rotating hotspot (6) to this ... HOTSPOT2 0, 0, 1, ohtd, 6+512*(i-1)
When i = 1 it will not reverse (512*0).
When i = 2 it will reverse (512*1).
Barry.
2023-07-13 11:09 AM
The mirrored hotspot needs it angle of rotation reversed with a 512 attribute value.
Change the rotating hotspot (6) to this ... HOTSPOT2 0, 0, 1, ohtd, 6+512*(i-1)
When i = 1 it will not reverse (512*0).
When i = 2 it will reverse (512*1).
Barry.
2023-07-13 01:22 PM
I am glad it was this easy, though I still had to transfer another parameter to the macro. Thanks Barry