Trying to align text line, polyline, 2d polyline, arc. Example jpg is attached

Trying to align text line, polyline, 2d polyline, arc. Example jpg is attached

Anonymous
Not applicable
2,305 Views
4 Replies
Message 1 of 5

Trying to align text line, polyline, 2d polyline, arc. Example jpg is attached

Anonymous
Not applicable

Aligning text to line, polyline, 2d polyline and arcs also. some polyline with curve which we will not align the text as per curvature. I can align text to straight polyline but when curvature is there its will not align proper so I am trying to Align text as per curvature. I tried for single character at a time but if we want to edit text we will not do it because of its a single character text. So as shown in JPG which is attached I am trying to do it. I dint understand how to do it.

0 Likes
2,306 Views
4 Replies
Replies (4)
Message 2 of 5

john.uhden
Mentor
Mentor

Use the vlax-curve-getfirstderiv function to obtain the tangent angle along a polyline bulged segment.  It will return a list of three reals, say (x y z), and we name the variable vector.

The angle can be derived by (angle '(0 0 0) vector).

Actually, it will work on any polyline segment, probably other curvilinear objects as well.

John F. Uhden

Message 3 of 5

dlanorh
Advisor
Advisor

Look HERE

I am not one of the robots you're looking for

0 Likes
Message 4 of 5

Anonymous
Not applicable
I got the tangent but text box is stright. I am trying to curve that text along to *line (all type of line). As per jpg. I search it on internet how to curve it. But still dint found any solution
0 Likes
Message 5 of 5

john.uhden
Mentor
Mentor

I know that Civil 3D has an arctext command, but I thought newer versions of vanilla AutoCAD included that too.  I don't really know 'cause all I have stil is 2002.

But I do have a function I built to do it.  But bear in mind that each character becomes a separate piece of text  My function might also turn the characters into an anonymous block, but that's the best I can give you.  Plus, it's built to handle only arcs and bulged polyline segments.  Civils don't design elliptical roads or parcels.

John F. Uhden

0 Likes