TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: alanjt on September 25, 2010, 04:51:58 PM

Title: SSGET: How to ignore non-ByLayer for Linetype and/or Color
Post by: alanjt on September 25, 2010, 04:51:58 PM
How do you create a selection set with SSGET and ignore objects that are not ByLayer for linetype and/or color?
Title: Re: SSGET: How to ignore non-ByLayer for Linetype and/or Color
Post by: CAB on September 25, 2010, 04:57:15 PM
Quote
While it's true that bylayer settings are not written to entity data lists,
the SSGET filter mechanism does recognize "Bylayer" for linetypes and the
number 256 for colors, meaning color "Bylayer".

(ssget "X" '((6 . "Bylayer")(62 . 256)))
will return all objects with ltype and color as bylayer

(ssget "X" '((6 . "Continuous,Bylayer")(62 . 256)))
will return all objects with ltype and color as bylayer and ltype Continuous
Title: Re: SSGET: How to ignore non-ByLayer for Linetype and/or Color
Post by: alanjt on September 25, 2010, 04:59:50 PM
SOB!  :realmad: :realmad:
I swear I tried that. Thanks Alan.