.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Filter out frozen entities from a selection

2 REPLIES 2
Reply
Message 1 of 3
michael.robertson
248 Views, 2 Replies

Filter out frozen entities from a selection

I'm using a typed value list to create a  selection filter to use with Editor.SelectAll(filter) method. The selection returns both frozen & un-frozen entities. Is there a way to filter out frozen objects using the filter?

Mike Robertson
FL. Dept. of Transportation
CADD Applications Developer
2 REPLIES 2
Message 2 of 3
Jeff_M
in reply to: michael.robertson

Loop through the layer table, making a string of the frozen layer names "Layer1,Layer2". Include this with the layer code inside a "NOT" pair. 

 

filterList.Add(new TypedValue(-4, "<NOT");

filterList.Add(new TypedValue(8, frozenlayerstring);

filterList.Add(new TypedValue(-4, "NOT>");

Jeff_M, also a frequent Swamper
EESignature
Message 3 of 3
michael.robertson
in reply to: Jeff_M

Thanks for the idea.

 

What I ended up doing was I was already needing to check the entities in the selectionset so I just grabed the layerid from the entitiy then used the LayerTableRecord.IsFrozen to check before I did the processing on the entity.

Mike Robertson
FL. Dept. of Transportation
CADD Applications Developer

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost