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

Streamline your workflows and master BIM coordination! Program starts April 28!

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Hotspot2 text on cyclus [i]

Not applicable
Hello,

I have problem with to move text2 via HOTSPOT2. I create hotspot, but if i put more points, so crash it and show me only (.) I try what it do this problem and this do only, if hotspot2 on text2

------
HOTSPOT2 moxe,0,30,moveY2, 1+128
HOTSPOT2 moxe,-0.1,31,moveY2, 3
HOTSPOT2 moxe, moveY2, 32, moveY2,2
HOTSPOT2 0,moveY2,33,moxe, 1+128
HOTSPOT2 -0.1,moveY2,34,moxe, 3
HOTSPOT2 moxe, moveY2, 35,moxe,2

ADD2 insertX+moxe,insertY+moveY2
ROT2 alfa2D
text2 0,0, STR (text,2,0)
DEL TOP

undefined
15 REPLIES 15
Pertti Paasky
Expert
Maybe you can share your object here. It's hard to fix the problem without getting all information.
- AC-24 FIN - WIN 10 - HP Zbook -
“A winner is just a loser who tried one more time.”
George M. Moore, Jr.
Not applicable
This is it
sinceV6
Advocate
Hi.

The polyline script! Great! Glad somebody is still using it. I thought it had diluted over time. Spawned some interesting objects.

Anyway, couldn't find all the code and modifications from the screenshots, but the basic problem here is that you are trying to use the values from the "moxe" array and you are not giving it new values, so the object just works with the five values that the array has. You can see in the master script that arrays grow as new points are created. You need to do this for every array/parameter, so that if you use it in a loop that has 100 iterations because there are 100 points you won't run out of values. It stops at line 85 of the 2D script, and that's where you are creating new points from the "moxe" values. It is asking for value number 6 of the "moxe" array, but you only have 5 values there.

Hope that helps.
Best regards.
Not applicable
sinceV6 wrote:
Hi.

The polyline script! Great! Glad somebody is still using it. I thought it had diluted over time. Spawned some interesting objects.

Anyway, couldn't find all the code and modifications from the screenshots, but the basic problem here is that you are trying to use the values from the "moxe" array and you are not giving it new values, so the object just works with the five values that the array has. You can see in the master script that arrays grow as new points are created. You need to do this for every array/parameter, so that if you use it in a loop that has 100 iterations because there are 100 points you won't run out of values. It stops at line 85 of the 2D script, and that's where you are creating new points from the "moxe" values. It is asking for value number 6 of the "moxe" array, but you only have 5 values there.

Hope that helps.
Best regards.

Thank you for answear, can you say, how to concretely fix?
I tried add more value on "moxe", can you help me?
sinceV6
Advocate
nGhost wrote:
Thank you for answear, can you say, how to concretely fix?
I tried add more value on "moxe", can you help me?
Sure. Just read the master script. You'll see that there is a part where arrays grow as new points are added to the polyline. You need to do this for your parameters so you don't run out of values. If you manually add new values to the parameters you'll run out eventually, so this has to be done automatically in the script.

Best regards.
Not applicable
can anybody help me with bend via HOTSPOT2.
I have polyline and i want add to 2D script bend line via hotspot, but I dont know how do it.
I send screen, how I do that.
undefined