Jump to content

change the many text at once


nil28

Recommended Posts

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

Link to comment
Share on other sites

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

 

Link to comment
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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

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