Hello
I need help to get a routine that can select all entity that have same color and same entity type
thank you
|
Hello
I need help to get a routine that can select all entity that have same color and same entity type
thank you
Hi,
Example to select all objects with Bylayer color which is equal to 256 and you can change the number to suit your needs.
Code:(ssget "_X" '((62 . 256)))
thank you tharwat
i want to pick object then get its color and type then filter all objects have same color and type
Hi,
Something like this?
Code:(if (and (setq s (car (entsel "\nSelect object to select similar by Color and Type :"))) (setq e (entget s)) (sssetfirst nil (ssget "_X" (list (assoc 0 e) (if (setq c (assoc 62 e)) c '(62 . 256)) (cons 410 (getvar 'CTAB))))) ) )
Consider using the SSX (Express Tool) http://help.autodesk.com/view/ACD/20...4-909C2760A23F
You may need to pick and enter to remove extra filters like [Entity] and [Layer], but it's a really useful tool for selecting similar objects.
The commands:
Quick Select http://help.autodesk.com/view/ACD/20...4-F61DACF5C300
Selectsimilar http://help.autodesk.com/view/ACD/20...7-05AFBAA7C29F
and Filter http://help.autodesk.com/view/ACD/20...F-180E039AA984
can all do this as well.
Thank you Tharwat that is okay and helpful
- - - Updated - - -
Thank you Tharwat it is helpful
- - - Updated - - -
Thank you Tharwat it is helpful
You are welcome anytime Motee.
Please ask if you stuck with any issue.