scr and/or lsp for Layer Property Filter

scr and/or lsp for Layer Property Filter

townest
Advocate Advocate
521 Views
4 Replies
Message 1 of 5

scr and/or lsp for Layer Property Filter

townest
Advocate
Advocate

I need to apply a batch addition of a Layer Property Filter.

townest_0-1678730010484.png

The first filter can be simple to get me started, say:


*lp* for the name attribute.

Any starter docs or code (scr and/or lsp) would be appreciated.  I can handle the bat file, so no need to address that here.  Thank you.

 

Tyler

AutoCAD 2022

 

 

0 Likes
Accepted solutions (1)
522 Views
4 Replies
Replies (4)
Message 2 of 5

paullimapa
Mentor
Mentor
Accepted solution
0 Likes
Message 3 of 5

ВeekeeCZ
Consultant
Consultant

Here's your starting point...

 

(command "_.-LAYER" "_Filter" "_New" "_P" "All" "NAME==\"*lp*\"" "LP filter" "") (if (> (getvar 'CMDACTIVE) 0) (command ""))

0 Likes
Message 4 of 5

townest
Advocate
Advocate

Thank you.  That got me started.  I ended up using writing and using this script, which got the job done.

_.-LAYER
_Filter
_N
_P

NAME=="*xd*"
ld
x

ZOOM E
_Quit
N

 Tyler

 

0 Likes
Message 5 of 5

paullimapa
Mentor
Mentor

Glad to have helped… cheers!!!


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes