SMP Posted March 28, 2012 Posted March 28, 2012 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? Quote
MSasu Posted March 28, 2012 Posted March 28, 2012 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 Quote
SMP Posted March 28, 2012 Author Posted March 28, 2012 That is brilliant. I really ought to spend more time learning that stuff... Thank you. Quote
Organic Posted March 28, 2012 Posted March 28, 2012 This lisp file has always worked well in my experience. http://www.cadforum.cz/cadforum_en/download.asp?fileID=420 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.