acad1985 Posted September 24, 2018 Share Posted September 24, 2018 Hello all, I have a routine that convert all the block attributes to Mtext. But it's not working properly. it will convert to Text only, but i want to convert Mtext. Could anybody helps me? (defun c:att2mt (/ ) (setq TargEnt (car (entsel "\nSelect object on layer to select: "))) (setq TargLayer (assoc 8 (entget TargEnt))) (sssetfirst nil (ssget "_X" (list TargLayer))) (c:burst) (setq Tset (ssget '((0 . "*TEXT")))) (setq Setlen (sslength Tset) Count 0 ) ;setq (repeat SetLen (setq Ename (ssname Tset Count)) (command "_txt2mtxt" Ename "") (setq Count (+ 1 Count)) ) ; Repeat (princ) ) Thanks. Quote Link to comment Share on other sites More sharing options...
acad1985 Posted September 25, 2018 Author Share Posted September 25, 2018 Hello all, Anyone help me please Quote Link to comment Share on other sites More sharing options...
BIGAL Posted September 26, 2018 Share Posted September 26, 2018 Just do a straight mtext look at what is involved pick 2 points pt1 pt2 then do mtext rather than text2mtxt. Quote Link to comment Share on other sites More sharing options...
acad1985 Posted September 26, 2018 Author Share Posted September 26, 2018 Hey Bigal, Thanks for your reply. Actually I'm not understanding what you said. Could you please explain briefly. Thanks Quote Link to comment Share on other sites More sharing options...
BIGAL Posted September 26, 2018 Share Posted September 26, 2018 Maybe I am reading the wrong intention of what you want to do, if the block is only an attribute then it would be easier to just recreate that attribute as new mtext, mtext asks for 2 points but you can use the insert position to work out pt1 the pt2 would be a fuzzy factor based on height and number of characters. Best to post a dwg or image showing what is really required. Quote Link to comment Share on other sites More sharing options...
acad1985 Posted September 27, 2018 Author Share Posted September 27, 2018 Hey Bigal, Thanks you so much. I got it now...and it's working perfect. Thanks Quote Link to comment Share on other sites More sharing options...
BIGAL Posted September 27, 2018 Share Posted September 27, 2018 Good to here 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.