Browny_76 Posted September 16, 2010 Posted September 16, 2010 Is there an option that you can convert multiple single line text into multiline text at the same time but still keep them seperate and from merging into one multline text group? Quote
hoss Posted September 16, 2010 Posted September 16, 2010 This can be done by "convert text to mtext" from Express tools menu ( Haven't used 2010) Quote
lpseifert Posted September 16, 2010 Posted September 16, 2010 (edited) Try this... will only work if the Express tools are installed (defun c:test () (vl-load-com) (setq ss1 (ssget '((0 . "TEXT"))) idx -1) (repeat (sslength ss1) (setq ename (ssname ss1 (setq idx (1+ idx)))) (vl-cmdf "_txt2mtxt" ename "") ) ) Edited September 16, 2010 by lpseifert Quote
toberino Posted September 16, 2010 Posted September 16, 2010 alias is txt2mtxt or the command is in the express tools/text. It will always group them together. You have to repeat the command. Thats why I love the right click options. Options/user preferences/right click customizations. Quote
Browny_76 Posted September 16, 2010 Author Posted September 16, 2010 Try this... will only work if the Express tools are installed (defun c:test () (vl-load-com) (setq ss1 (ssget '((0 . "TEXT"))) idx -1) (repeat (sslength ss1) (setq ename (ssname ss1 (setq idx (1+ idx)))) (vl-cmdf "_txt2mtxt" ename "") ) ) Do i just type this straight into the command space?? And then do i retry txt2mtxt?? Quote
lpseifert Posted September 16, 2010 Posted September 16, 2010 cut and paste the following code into Notepad. Save it as T2M.lsp in acad's Support folder. Then enter (load "t2m") at the command line. To invoke the command enter T2M at the command line You may want to read this... http://www.cadtutor.net/forum/showthread.php?1390-How-to-use-the-LISP-routines-in-this-archive (defun c:T2M () (vl-load-com) (setq ss1 (ssget '((0 . "TEXT"))) idx -1) (repeat (sslength ss1) (setq ename (ssname ss1 (setq idx (1+ idx)))) (vl-cmdf "_txt2mtxt" ename "") ) ) Quote
Browny_76 Posted September 17, 2010 Author Posted September 17, 2010 Cheers mate. It worked perfectly. 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.