SMP Posted March 28, 2012 Share 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 Link to comment Share on other sites More sharing options...
MSasu Posted March 28, 2012 Share 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 Link to comment Share on other sites More sharing options...
SMP Posted March 28, 2012 Author Share Posted March 28, 2012 That is brilliant. I really ought to spend more time learning that stuff... Thank you. Quote Link to comment Share on other sites More sharing options...
MSasu Posted March 28, 2012 Share Posted March 28, 2012 You're entirely welcomed! Regards, Mircea Quote Link to comment Share on other sites More sharing options...
Organic Posted March 28, 2012 Share 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 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.