Author Topic: ssx selecting a layers wildcard except keyword  (Read 1611 times)

0 Members and 1 Guest are viewing this topic.

MSTG007

  • Gator
  • Posts: 2598
  • I can't remeber what I already asked! I need help!
ssx selecting a layers wildcard except keyword
« 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
Civil3D 2020

ronjonp

  • Needs a day job
  • Posts: 7526
Re: ssx selecting a layers wildcard except keyword
« Reply #1 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>")))

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

MSTG007

  • Gator
  • Posts: 2598
  • I can't remeber what I already asked! I need help!
Re: ssx selecting a layers wildcard except keyword
« Reply #2 on: February 09, 2017, 02:17:43 PM »
That's a cool way to filter layers out. Thanks Ron!
Civil3D 2020

ronjonp

  • Needs a day job
  • Posts: 7526
Re: ssx selecting a layers wildcard except keyword
« Reply #3 on: February 09, 2017, 02:31:58 PM »
That's a cool way to filter layers out. Thanks Ron!
:)

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC