TheSwamp

CAD Forums => CAD General => Topic started by: MSTG007 on February 09, 2017, 10:54:20 AM

Title: ssx selecting a layers wildcard except keyword
Post by: MSTG007 on February 09, 2017, 10:54:20 AM
Through SSX is there a way of selecting all layers that are within this (*C_*) and then Exclude layers with (*C_UTIL*)? I am trying to change the colors of these layers via a script, but did not want to try to use visretain if possible.

thanks guys
Title: Re: ssx selecting a layers wildcard except keyword
Post by: ronjonp on February 09, 2017, 12:25:25 PM
Don't use 'SSX' but this should filter it for you:
Code - Auto/Visual Lisp: [Select]
  1. (ssget (list '(-4 . "<AND") '(8 . "*C_*") '(8 . "~*C_UTIL*") '(-4 . "AND>")))
Title: Re: ssx selecting a layers wildcard except keyword
Post by: MSTG007 on February 09, 2017, 02:17:43 PM
That's a cool way to filter layers out. Thanks Ron!
Title: Re: ssx selecting a layers wildcard except keyword
Post by: ronjonp on February 09, 2017, 02:31:58 PM
That's a cool way to filter layers out. Thanks Ron!
:)