cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Design forum

Script creates extra hotspot

Anonymous
Not applicable
Hi all. I am trying gain a better understanding of editable hotspots. It was going well until this happened. (See attachment) I've studied it but can't figure out why it's creating the extra hotspot when HOTSPOT A is moved. Is there something special that needs to be scripted in order to have more than 1 editable hotspot in an object? I still have a couple more that I need to add.

Thanks, Doug

unID = 10000
hotspot2 BEARING_1_X, 0, unID, BEARING_1_Y, 1+128 : unID=unID+1
hotspot2 BEARING_1_X, -1, unID, BEARING_1_Y, 3 : unID=unID+1
hotspot2 BEARING_1_X, TRIB_1_Y, unID, BEARING_1_Y, 2 : unID=unID+1

hotspot2 0, BEARING_1_Y, unID, BEARING_1_X, 1+128 : unID=unID+1
hotspot2 -1, BEARING_1_Y, unID, BEARING_1_X, 3 : unID=unID+1
hotspot2 BEARING_1_X, BEARING_1_Y, unID, BEARING_1_X, 2 : unID=unID+1


unID = 20000
hotspot2 TRIB_1_X, 0, unID, TRIB_1_Y, 1+128 : unID=unID+1
hotspot2 TRIB_1_X, -1, unID, TRIB_1_Y, 3 : unID=unID+1
hotspot2 TRIB_1_X, TRIB_1_Y, unID, TRIB_1_Y, 2 : unID=unID+1

hotspot2 0, TRIB_1_Y, unID, TRIB_1_X, 1+128 : unID=unID+1
hotspot2 -1, TRIB_1_Y, unID, TRIB_1_X, 3 : unID=unID+1
hotspot2 TRIB_1_X, TRIB_1_Y, unID, TRIB_1_X, 2 : unID=unID+1

SET LINE_TYPE 49
LINE2 0, 0, TRIB_1_X, TRIB_1_Y
1 REPLY 1

Anonymous
Not applicable
It's amazing how you can walk away from a problem for a couple of minutes, come back to it and instantly have the cause staring you in the face.

hotspot2 BEARING_1_X, 0, unID, BEARING_1_Y, 1+128 : unID=unID+1
hotspot2 BEARING_1_X, -1, unID, BEARING_1_Y, 3 : unID=unID+1
hotspot2 BEARING_1_X, TRIB_1_Y, unID, BEARING_1_Y, 2 : unID=unID+1

This was a copy and paste. Apparently I didn't feel the need to make all the necessary changes.

Didn't find the answer? Start a new discussion

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!