Jump to content

Text 2 Mtext....


Dean07

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 5 years later...

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