Jump to content

TXT2MTXT Question.


Recommended Posts

I have a small scale map with about 4000 text entities in it. I want to chnage this all to mtext.

 

The txt2mtxt command works great, except...

 

It take all 4000+ entities and put it into 1 mtext entity.

 

Anyone know of a way to do this and keep them all seperated. I can sit and do each entity seperately? Autocad must have a way of doing this?

Link to comment
Share on other sites

That command is part of Express extension - it is intended to join the text entities together is more than one is selected. You can solve your issue with a small AutoLISP code to parse all Text entities:

 

(if (setq ssTxt (ssget "_X" '((0 . "TEXT"))))
(progn
 (setq indexEnt 0)
 (repeat (sslength ssTxt)
  (command "_TXT2MTXT" (ssname ssTxt indexEnt) "")
  (setq indexEnt (1+ indexEnt))
 )
)
)

Regards,

Mircea

Link to comment
Share on other sites

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