Dean07 Posted April 26, 2007 Share Posted April 26, 2007 Gday all, Just wondering, with the express tools, if there was a way to convert multiple dtext to mtext without it all combining to the one mtext. Is there a lisp or system setting?? Any help would be greatly appreciated. Cheers Dean07 Quote Link to comment Share on other sites More sharing options...
CarlB Posted April 26, 2007 Share Posted April 26, 2007 Found this at Autodesk forum, posted by Matt Stachoni: Re: convert dtext to mtext in entire drawing On Mon, 19 Mar 2007 20:06:16 +0000, mharrison wrote: >i have drawings that need all of the dtext converted to mtext. in the past i have been selecting each dtext text individually and then converting it over to mtext using my express command. is there a way to convert the entire drawing over to Mtext? Not using the OOTB tool (which results in a single MText object if you select multipe entities), but you can do one of two things: 1. Use MULTIPLE TXT2MTXT to run the command over again. Kinda kludgy. 2. Add this little wrapper command for the TXT2MTXT tool to your acaddoc.lsp file and it will work: (defun c:T2M (/ i ss e) (setq i -1) (if (setq ss (ssget '((0 . "TEXT")))) (while (setq e (ssname ss (setq i (1+ i)))) (command "._txt2mtxt" e "") ) ) (princ) ) ============================ If you're not familiar with Lisp, see the FAQ section on this site. Basically create a text file with a ".lsp" extension, containing the following. Drag n drop in AutoCAD, type T2M to start. (defun c:T2M (/ i ss e) (setq i -1) (if (setq ss (ssget '((0 . "TEXT")))) (while (setq e (ssname ss (setq i (1+ i)))) (command "._txt2mtxt" e "") ) ) (princ) ) Quote Link to comment Share on other sites More sharing options...
Dean07 Posted April 26, 2007 Author Share Posted April 26, 2007 Thanks very much for that. Exactly what I was looking for. Quote Link to comment Share on other sites More sharing options...
Spinxy Posted February 14, 2013 Share Posted February 14, 2013 Is there any way of getting this one to work so it keeps in the text in it's original location? Quote Link to comment Share on other sites More sharing options...
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.