ILoveMadoka Posted March 27, 2019 Posted March 27, 2019 (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 March 27, 2019 by ILoveMadoka 1 Quote
ILoveMadoka Posted March 28, 2019 Author Posted March 28, 2019 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... Quote
BIGAL Posted March 28, 2019 Posted March 28, 2019 (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 March 28, 2019 by BIGAL Quote
Recommended Posts
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.