Jump to content
ryankevin15

LISP to make text middle justified

Recommended Posts

ryankevin15

Hello, Is there a LISP to make text middle justified?

Share this post


Link to post
Share on other sites
ryankevin15

And, preferably begin the move command grabbing the center basepoint, since that's usually what happens next in order to move it to the middle of an object.

Share this post


Link to post
Share on other sites
StevJ

Take a look at this as maybe a place to start.

 

Steve

Share this post


Link to post
Share on other sites
iconeo

I use the following as a macro.

 

^C^C(COMMAND "LAYER" "M" "S-ANNO-TEXT" "C" "7" "" "") 'textstyle standard 'textsize $M=$(if,$(=,$(getvar,cvport),1),0.0703125,$(*,0.0703125,$(getvar,dimscale))) mtext \j bc w 0;

Share this post


Link to post
Share on other sites
ryankevin15

bump bump bump bump

Share this post


Link to post
Share on other sites
Grrr

One of the first associations I did was from this code from Tharwat,

pointing out this fragment from his code:

(progn
 (vla-put-attachmentpoint mt acmiddlecenter)
 (vla-move mt (vla-get-insertionpoint mt) p)
)

 

Later I was doing such stuff in my codes aswell, but I'll always remember that thread he helped me.

Share this post


Link to post
Share on other sites
ryankevin15
One of the first associations I did was from this code from Tharwat,

pointing out this fragment from his code:

(progn
 (vla-put-attachmentpoint mt acmiddlecenter)
 (vla-move mt (vla-get-insertionpoint mt) p)
)

 

Later I was doing such stuff in my codes aswell, but I'll always remember that thread he helped me.

 


(DEFUN C:mJ ()
(progn
 (vla-put-attachmentpoint mt acmiddlecenter)
 (vla-move mt (vla-get-insertionpoint mt) p)
)
(princ)
)

 

Thank you for trying but it doesn't look like that one worked.

Share this post


Link to post
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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