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

Hotspot2 text on cyclus [i]

Anonymous
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

point.jpg
15 REPLIES 15
Anonymous
Not applicable
Before
Pertti Paasky
Expert
Hi nGhost.
Can you show the whole code? Now it is hard to find the bug.
- AC-24 FIN - WIN 10 - HP Zbook -
“A winner is just a loser who tried one more time.”
George M. Moore, Jr.
sinceV6
Advocate
Hi.
If this is for the polyline script (as it looks from the screenshot), it would be hard to find the bug with just that part of the script (is it a subroutine? is it in the middle of the 2D script? etc); but for starters I would not use DEL TOP as you might be breaking other things.

Best regards.
Anonymous
Not applicable
Screen 1/2
screen 1_2.jpg
Anonymous
Not applicable
Screen 2/2
screen 2_2.jpg
Pertti Paasky
Expert
Hi, screenshots tell something, but I can't run the code without the object.
The Hotspot2 ID:s must be unique. Now you have used integers and two different parameters. Some overlapping can take place now.
- AC-24 FIN - WIN 10 - HP Zbook -
“A winner is just a loser who tried one more time.”
George M. Moore, Jr.
Anonymous
Not applicable
Hi, yea I see it, but Hotspots ID are unique, you can see on end :ID=ID+1
IDs 500+
Pertti Paasky
Expert
Hi,
Between lines "*****THIS I TRIED" and "*****but not working"
I can see parameter "bod " and integers 30-35 used as ID:s
- AC-24 FIN - WIN 10 - HP Zbook -
“A winner is just a loser who tried one more time.”
George M. Moore, Jr.
Anonymous
Not applicable
Yea I know, this is IDs
I tried make new ID = bod
bod=50000
:ID = ID+1 = :bod= bod+1

I tried change ID...that to avoid potential collisions in ID.