Author Topic: SSGET: How to ignore non-ByLayer for Linetype and/or Color  (Read 2208 times)

0 Members and 1 Guest are viewing this topic.

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
SSGET: How to ignore non-ByLayer for Linetype and/or Color
« 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?
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: SSGET: How to ignore non-ByLayer for Linetype and/or Color
« Reply #1 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
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: SSGET: How to ignore non-ByLayer for Linetype and/or Color
« Reply #2 on: September 25, 2010, 04:59:50 PM »
SOB!  :realmad: :realmad:
I swear I tried that. Thanks Alan.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox