Jump to content
nil28

change the many text at once

Recommended Posts

nil28

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

Share this post


Link to post
Share on other sites
eldon

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.

  • Thanks 1

Share this post


Link to post
Share on other sites
gS7

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

 

Share this post


Link to post
Share on other sites
nil28

Thanks a lot for the code...it works!

Share this post


Link to post
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
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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