Learn to manage BIM workflows and create professional Archicad templates with the BIM Manager Program.
Thursday
Hi,
I am hoping to be able to create hotspots in 3D that I can use in the elevation and section views. I have created and attached an object that displays 2 hotspots. The 2 hotspots move independent of each other in 3D.
In elevation, the hotspots seem to raise or lower the entire object, loosing their individual seperation. Also there is no node move button in the pet pallet, just the vertical move.
Is it possible to achieve independent moving of the hotspots in elevation and section views?
Here is the hotspot code in the 3D Script:
! ==== Reference Chart: Nodes Hotspots X/Y/Z
! Nodes[1][1] = Line Origin X
! Nodes[1][2] = Line Origin Y
! Nodes[4][1] = Line Origin Z
! Nodes[2][1] = Line End X
! Nodes[2][2] = Line End Y
! Nodes[5][1] = Line End Z
unID=0 ! Define Unique ID for Hotspots
!=== Define Hotspot 1 at Origin (Z-Axis)
HOTSPOT Nodes[1][1], Nodes[1][2], 0, unID=unID+1, Nodes[4][1], 1+128 ! Point
HOTSPOT Nodes[1][1], Nodes[1][2], -0.1, unID=unID+1, Nodes[4][1], 3 ! Ref
HOTSPOT Nodes[1][1], Nodes[1][2], Nodes[4][1], unID=unID+1, Nodes[4][1], 2 ! Move
!=== Define Hotspot 2 Line End (Z-Axis)
HOTSPOT Nodes[2][1], Nodes[2][2], 0, unID=unID+1, Nodes[5][1], 1+128 ! Point
HOTSPOT Nodes[2][1], Nodes[2][2], -0.1, unID=unID+1, Nodes[5][1], 3 ! Ref
HOTSPOT Nodes[2][1], Nodes[2][2], Nodes[5][1], unID=unID+1, Nodes[5][1], 2 ! Move
Many thanks, from Matt
Solved! Go to Solution.
Thursday
unid is the problem
unID=1 ! Define Unique ID for Hotspots
! each hotspot command needs a different unID value, or problems happen
! in the old code all the hotspots had the same ID
! in this code each hotspot command has a unique id ( unID is short for unique ID)
!=== Define Hotspot 1 at Origin (Z-Axis)
HOTSPOT Nodes[1][1], Nodes[1][2], 0, unID, Nodes[4][1], 1+128 :unID=unID+1 ! Point, unID for this node 1
HOTSPOT Nodes[1][1], Nodes[1][2], -1, unID, Nodes[4][1], 3 :unID=unID+1 ! Ref, unID for this node 2
HOTSPOT Nodes[1][1], Nodes[1][2], Nodes[4][1], unID, Nodes[4][1], 2 :unID=unID+1! Move, unID for this node 3
!=== Define Hotspot 2 Line End (Z-Axis)
HOTSPOT Nodes[2][1], Nodes[2][2], 0, unID, Nodes[5][1], 1+128 :unID=unID+1 ! Point, unID for this node 4
HOTSPOT Nodes[2][1], Nodes[2][2], -1, unID, Nodes[5][1], 3 :unID=unID+1 ! Ref, unID for this node 5
HOTSPOT Nodes[2][1], Nodes[2][2], Nodes[5][1], unID, Nodes[5][1], 2 :unID=unID+1 ! Move, unID for this node 6
i hope this helps
Thursday
unid is the problem
unID=1 ! Define Unique ID for Hotspots
! each hotspot command needs a different unID value, or problems happen
! in the old code all the hotspots had the same ID
! in this code each hotspot command has a unique id ( unID is short for unique ID)
!=== Define Hotspot 1 at Origin (Z-Axis)
HOTSPOT Nodes[1][1], Nodes[1][2], 0, unID, Nodes[4][1], 1+128 :unID=unID+1 ! Point, unID for this node 1
HOTSPOT Nodes[1][1], Nodes[1][2], -1, unID, Nodes[4][1], 3 :unID=unID+1 ! Ref, unID for this node 2
HOTSPOT Nodes[1][1], Nodes[1][2], Nodes[4][1], unID, Nodes[4][1], 2 :unID=unID+1! Move, unID for this node 3
!=== Define Hotspot 2 Line End (Z-Axis)
HOTSPOT Nodes[2][1], Nodes[2][2], 0, unID, Nodes[5][1], 1+128 :unID=unID+1 ! Point, unID for this node 4
HOTSPOT Nodes[2][1], Nodes[2][2], -1, unID, Nodes[5][1], 3 :unID=unID+1 ! Ref, unID for this node 5
HOTSPOT Nodes[2][1], Nodes[2][2], Nodes[5][1], unID, Nodes[5][1], 2 :unID=unID+1 ! Move, unID for this node 6
i hope this helps
Thursday
Thank you AllanP!!! I can't believe how much time I spend trying to get code to work. Such a perfect solve, this is so appreciated! Warm regards, from Matt