Jump to content

Recommended Posts

Posted

hello:

Does anyone have a routine in which I can select all the texts or mtext in the window and change them to "mylayer" and color bylayer

 

thanks

 

Posted

Only those visible in the graphics window or the entire drawing?

Posted
  On 2/24/2025 at 8:04 PM, GLAVCVS said:

Only those visible in the graphics window or the entire drawing?

Expand  

ONLY THOSE THAT I SELECT WITH WINDOW

Posted

Maybe this will help you

(defun c:trocapa (/ conj ent n)
  (setq n -1)
  (princ "\nSelect TEXTs/MTEXTs...")  
  (if (setq conj (ssget '((0 . "*TEXT"))))
    (while (setq ent (ssname conj (setq n (1+ n))))
      (entmod (append (entget ent) (list (cons 8 "MyLayer") (cons 62 256))))
    )
  )
  (princ)
)

 

  • Like 1
  • Thanks 1
Posted

If you want to change the name of the destination layer you just have to change the 'MyLayer' code to the name you want.

  • Like 1
Posted
  On 2/24/2025 at 8:34 PM, GLAVCVS said:

If you want to change the name of the destination layer you just have to change the 'MyLayer' code to the name you want.

Expand  

thanks

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