Jump to content

Recommended Posts

Posted

Hi all,

 

I'm fairly new to lisp programming and am trying to write a lisp routine to change the line space style of all the mtext in a drawing from "At least" to "Exactly". I would be incorporating this step into an existing lisp routine that does a few other things.

 

So far, I have searched and cannot find a DXF code that controls this variable. I did find a lisp that used:

 

"vla-put-TextLineSpacingStyle" and "acLineSpacingStyleExactly"

 

However, all I get is an error saying "ActiveX Server returned the error: unknown name: TextLineSpacingStyle"

 

Any help is very appreciated!

 

Thanks!

Posted

Maybe this will help you:

 

(entmod (subst (cons 1 (strcat "\\pxse1;" (cdr (assoc 1 MyMTextEntity))))
              (assoc 1 MyMTextEntity)
              MyMTextEntity))

 

Regards,

Mircea

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