Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm looking for a way to replace in this code the need for "chprop" just to highlight what the user selected. Like when you use the move or erase commands (for example) how the objects stay highlighted until the end of the command. This one I would like to see the same when the single-picked text is selected, it stay highlighted. Thanks in advance for any help.
(defun RTT1 (/ ent enttxt ent2 SourceText DestinText)
(setq SourceText (entsel "\nSelect text to copy: "))
(setq sColor (assoc 62 (entget (car SourceText))))
(command "chprop" SourceText "" "c" "yellow" "")
(setq DestinText (entsel "\nSelect text to change: "))
(setq ent (entget (car SourceText))
enttxt (cdr (assoc 1 ent))
ent2 (entget (car DestinText))
ent2 (subst (cons 1 enttxt)(assoc 1 ent2) ent2)
);setq ent
(entmod ent2)
(command "chprop" SourceText "" "c" "bylayer" "")
(princ)
)
Please be kind, rewind your exploding. Do not explode hatching, dimensions or text. Think of your fellow drafters! 🙂
https://www.youracclaim.com/badges/9aa4a1d5-0d02-4888-be6f-ed8f0653d8ad/public_url
https://www.youracclaim.com/badges/9aa4a1d5-0d02-4888-be6f-ed8f0653d8ad/public_url
Solved! Go to Solution.