cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
GDL Enthusiast
Advocate

3D Hotspots in elevation

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


Elevation View.PNG

 

3D Object with Hotspots.PNG

 

3D Object with Hotspots Moving Independently.PNG

 

Elevation View but not Independent.PNG

1 Solution

Accepted Solutions
AllanP
Expert

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

I have been using ArchiCAD continually since ArchiCAD 4.5
Member of Architalk since 2003, but missed the migration from Architalk to Graphisoft Communities. Melbourne, Australia

Go to post

2 Replies 2
AllanP
Expert

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

I have been using ArchiCAD continually since ArchiCAD 4.5
Member of Architalk since 2003, but missed the migration from Architalk to Graphisoft Communities. Melbourne, Australia
GDL Enthusiast
Advocate

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

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!