Create layer properties filter

Create layer properties filter

Sandervp
Advocate Advocate
5,911 Views
25 Replies
Message 1 of 26

Create layer properties filter

Sandervp
Advocate
Advocate

Hello everybody,

 

I have a lisp which creates several layer group filters. But I want to add some property filters also.

 

My lisp file is containting rules like this: (Command "-layer" "filter" "n" "g" "*example*" "" "*exampl*" "example" "")

I want to add (Command "-layer" "filter" "n" "p".......... but how further?

 

I want to have property filters for "off", "on", "frozen" and "thawed"

 

Could somebody help me?

 

Thanks

Sander

Accepted solutions (1)
5,912 Views
25 Replies
Replies (25)
Message 21 of 26

ВeekeeCZ
Consultant
Consultant

Add the red line which changes the color of "Layer1" layer to red in between current black lines at the end of the code.

 

  (command "_.-LAYER" "_Filter" "s" 	"No_Xref_Layers") 											(if (> (getvar 'CMDACTIVE) 0) (command ""))
  (command "_.LAYER" "_Color" "red" "Layer1" "")
  (princ "\n...All layer filters have been created.")
  (princ)
)
0 Likes
Message 22 of 26

cwtwong
Enthusiast
Enthusiast

hi~ How Can I change all the layers from yellow to red in the filter? (say new filter named COLOR)

Thanks.

0 Likes
Message 23 of 26

ВeekeeCZ
Consultant
Consultant
I don't think this is the correct tool for this job. But I might be wrong.

You basically need to automate the layer color changing somehow, you don't need that layer filter stored in layer manager for some later usage, right? If so, create a new thread and someone might you provide a proper solution for that job.
0 Likes
Message 24 of 26

cwtwong
Enthusiast
Enthusiast

hi Bee~

Because someone did the layer filter in past, I need to change the lineweight from 0.25 to 0.35, color 142 to color 1 for all layers in the filter. (around 200 drawings)

Thanks a lot.

0 Likes
Message 25 of 26

ВeekeeCZ
Consultant
Consultant

Yet, this is not a proper tool for that. 

0 Likes
Message 26 of 26

BunnyHug
Participant
Participant

Awesome! Solved my property filter problems!

 

Quick Tip - If you want a property filter to use multiple NAMES use OR instead of AND.

Example: "NAME==\"M-*\" OR NAME==\"F-*\""

0 Likes