Jump to content

Recommended Posts

Posted (edited)

If you convert this to MTEXT using the Text2MText command:

 

ABCDEFGHIJKL
12345678910

 

ABCDEFGHIJKL
12345678910

 

ABCDEFGHIJKL
12345678910

 

You will get this....

 

ABCDEFGHIJKL
12345678910
ABCDEFGHIJKL
12345678910
ABCDEFGHIJKL
12345678910

 

 

I want to create a single MTEXT object from my selection but also retain the original formatting/spacing without having to go into the settings dialog each time.

 

In the TXT2MTEXT command under SETTINGS there are two options that I would to access/change in a simple lisp routine.

 

Under the SETTINGS dialog I want to uncheck WORD WRAP and uncheck FORCE UNIFORM LINE SPACING
(which is only available AFTER unchecking WORD WRAP).

 

Can someone provide some guidance on how to do this in Autolisp?

 

I am not asking someone to write a routine for me only explain how to change these settings in AUTOLISP.


Are there command line options for these?

 

I'm not a VLISP guy so "old school" is how I will code what I need.
(I like to see how to do it in VLISP but I'm not even a novice 
VLISPer <yet anyway>) 

 

 

Edited by ILoveMadoka
  • Like 1
Posted

That works great... <but>

 

Does that mean there is no way to access the check boxes of the TXT2MTEXT command via lisp?

 

I'm working on a program and during my check, if it finds TEXT I want to convert it to MTEXT

but keep all the spacing. So it would only be a subroutine called when needed.

That check is only one of the steps..

 

Thank you for the routine though...

 

Posted

Sorry .. I don't know how to set those.

Posted (edited)

Not sure about this need some time but using something like 

 

(command "_text2mt")
(while (= (getvar "cmdactive") 1 ) 
(command "se")
then pushing the answers using sendkeys for Alt+C Alt+w etc
(command ss) this would be the previously selected selection of text
)

Edited by BIGAL

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