leonucadomi Posted February 24 Posted February 24 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 Quote
GLAVCVS Posted February 24 Posted February 24 Only those visible in the graphics window or the entire drawing? Quote
leonucadomi Posted February 24 Author Posted February 24 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 Quote
GLAVCVS Posted February 24 Posted February 24 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) ) 1 1 Quote
GLAVCVS Posted February 24 Posted February 24 If you want to change the name of the destination layer you just have to change the 'MyLayer' code to the name you want. 1 Quote
leonucadomi Posted February 24 Author Posted February 24 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 Quote
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.