nil28 Posted January 6, 2019 Share Posted January 6, 2019 I have a drawing in which many different text are there. I want to change some of the text to one text in one selection. Is it possible? Please refer attached file more clarification. Thanks in advance. same text.dwg Quote Link to comment Share on other sites More sharing options...
eldon Posted January 6, 2019 Share Posted January 6, 2019 You don't need lisp to do that. Just select them all, and in the Properties dialogue box, change the Contents to what you require. 1 Quote Link to comment Share on other sites More sharing options...
gS7 Posted January 7, 2019 Share Posted January 7, 2019 Try bellow Codes (defun c:Test (/ ss str en i ) (if (setq ss (ssget '((0 . "TEXT")))) (progn (setq str (getstring "\nEnter Final Text Name:")) (repeat (setq i (sslength ss)) (setq en (vlax-ename->vla-object (ssname ss (setq i (1- i))))) (if (vlax-write-enabled-p en) (vlax-put-property en 'Textstring str) ) ) ) ) (princ) ) Quote Link to comment Share on other sites More sharing options...
nil28 Posted January 8, 2019 Author Share Posted January 8, 2019 Thanks a lot for the code...it works! 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.