Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Modify on text align lisp please

manivannan.r
Participant

Modify on text align lisp please

manivannan.r
Participant
Participant

how to modify on text align lisp please

0 Likes
Reply
1,052 Views
4 Replies
Replies (4)

Kent1Cooper
Consultant
Consultant

In what do you want to modify the Text alignment?  Showing both before and after conditions will explain it best.

Kent Cooper, AIA
0 Likes

manivannan.r
Participant
Participant

I want to both end

0 Likes

manivannan.r
Participant
Participant

drawn a cross line, based on the cross line we need to type text, see the attachement    

0 Likes

Kent1Cooper
Consultant
Consultant

It's still not clear to me what you want to do.  There are two pieces of Text shown, neither of which seems to relate to the direction of the Line shown, so what do you mean by the word "align"?

 

If you want Text to have its rotation angle align with the direction of a Line [or anything else], maybe something like LabelTextTrim.lsp with its LTT command [available here] will work for you.  You tell it what text content to use, and you can set the height and various other things, then pick on any appropriate object [Line, Arc, Circle, Ellipse, Spline, Polyline, Ray, Xline] and it puts that Text in, middle-center-justified and aligned with the object at the pick point.  LTT Breaks the object around the Text, but there's another one, LabelTextMask.lsp with its LTM command [at another page there] that adds a text mask, and leaves the object continuous behind it.

 

Either one could be modified to put the Text above the Line rather than on top of it, if that's what you need.  But they include the alignment part that I think may be the essence of what you are looking for.

 

LTT.PNG

Kent Cooper, AIA