Jump to content

Recommended Posts

Posted

Hi. Everyone.

 

I need a simple lisp to align text or mtext.

Process Like: (select object->Specify alignment point-> then pick the point and stretch customizable by user.

(Text Alignment automatically in vertical, Justification keep also Left side).

 

 

Any help is greatly appreciated.

Thanks In Advance

Dinesh P

Posted

This is about as simple as it gets

 

(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)
)
(C:T2pts)

Posted

Hi BIGAL,

This lisp rotates the text.

But I do not need it, I need to lisp the image as it appears on.

and i'm using 2014 Autocad in my office, There is no TEXT ALIGN command in 2014 version.

so I want lisp for just select objects and click the alignment point and stretch can be set my preference.5.jpg

 

Regards

Dinesh P

capture_Wed_Oct_12_11.13.24.jpg

1.JPG

2.JPG

3.JPG

4.jpg

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.

Guest
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...