Modify on text align lisp please
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
how to modify on text align lisp please
The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.
how to modify on text align lisp please
In what do you want to modify the Text alignment? Showing both before and after conditions will explain it best.
drawn a cross line, based on the cross line we need to type text, see the attachement
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.