Jump to content

Align text to a line

Recommended Posts

Is there a command or a LISP (I have checked out LEE's but to no avail from what I found) that I can run say that will allow me to select text and then select a line and it be parallel with it? I know the command TEXT ALIGN but this doens't do what I am looking for, that, or I just don't know how to properly run the command? Any who, as always, thank you for any and all input.



Link to comment
Share on other sites

BOOM! Dang it! I had a feeling that he had something somewhere that I did not see. Thank you VERY much rkent! Kudos, Kudos!!

Link to comment
Share on other sites

Of course, if you do not want to use lisp, you can use the command Rotate.


With Polar tracking on and set to Relative to last segment, you start the command Rotate, pick the text, and using Osnap (Nearest will do nicely) click on your chosen line. The text immediately swings to parallel the line (or perpendicular to the line, or at any angle set up in Polar Tracking). Very quick.

Link to comment
Share on other sites

My $0.05


; text to 2 pts
; by Alan 2013
(defun C:T2pts ( / pt1 pt2 ang tobj vlobj)
(SETQ PT1 (GETPOINT "\nPick 1st pt" ))
(SETQ PT2 (GETPOINT "\nPick 2nd pt" ))
(setq ang (angle pt1 pt2))
(SETQ TOBJ (ENTSEL "\nPick Text"))
(setq vlobj (vlax-ename->vla-object (car tobj)))
(vlax-put-property vlobj "Rotation" ang)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...