Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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;

Posted

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.

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

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