Script to add more than one row to layer filter

Script to add more than one row to layer filter

townest
Advocate Advocate
170 Views
1 Reply
Message 1 of 2

Script to add more than one row to layer filter

townest
Advocate
Advocate

 

Hello,

 

I have the following script that adds a layer filter to drawings.

_.-LAYER
_Filter
_N
_P

NAME=="*test1*"
ld
x

 For example: add a row that filters Names for *test2*.

townest_0-1685118246256.png


I suppose I'm seeking the syntax to pass a list of names into the -layer command.  Thank you for any pointers.

 

Tyler

AutoCAD 2022

 

0 Likes
171 Views
1 Reply
Reply (1)
Message 2 of 2

townest
Advocate
Advocate

Nevermind...found the solution...it's..

_.-LAYER
_Filter
_N
_P

NAME=="*test1*" OR "*test2*"
ld
x

 

0 Likes