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

The 2025 Technology Preview Program is now live. Join today!

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

ROT2 TEXT ON LINE2

Anonymous
Not applicable
Hi,

I have problem with rotate text on line2.
When I put to script ROT2 alfa, so text (line size) put away from line and I dont know, why do that and How to fix it. Alfa is allright and insertXHotspot, too - I checked it computationally and manually.
Can you help me?

------
Script:
DEFINE STYLE "style1" Arial, font_size,2, 0
SET STYLE "style1"

FOR i=1 to point-1
ROT2 alfa
ADD2 insertXHotspot,insertYHotspot
text2 0,0, STR (line_size2D,2,0)
Del i+1
next i

screen.jpg
2 REPLIES 2
Barry Kelly
Moderator
At a quick glance it is your DEL i+1.
For the first line segment you will be deleting 2 transformations (1+1), for the second line segment you will be deleting 3 transformations (2+1), for the third 4 transformations (3+1), etc.
But you are only performing 2 transformations for each segment (ROT2 and ADD2)
Try just DEL 2.

Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
sinceV6
Advocate
Hi.
Also, if this is for the polyline script I made, you should place ROT2 command after the ADD2 command: if you rotate first you are not moving in the right direction.

You first move to the current point in the array (add2), then you rotate the coordinate system (rot2), then you place your text, then you delete these transformations (del 2) to start the next iteration.

Hope that helps.
Best regards.