Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Annotation filters - what should I expect to work?
traveler_hauptman
Member, OS Professional, Mentor, Developers Posts: 419 PRO
So, to grab wires in a sketch, shouldn't the following work?
annotation { "Name" : "Sketch Edges", "Filter" : EntityType.EDGE && BodyType.WIRE }
If I'm filtering from everything, why does this not work?annotation { "Name" : "Sketch Edges", "Filter" : BodyType.SOLID}
Tagged:
0
Comments
-
Thanks for the feedback. You are correct. This filter:
annotation { "Name" : "Sketch Edges", "Filter" : EntityType.EDGE && BodyType.WIRE }should include sketch edges. (It would also include helices, which are wire bodies.) I've logged this as an issue.You could use a more specific filter that just includes sketch edges:annotation { "Name" : "Sketch Edges", "Filter" : EntityType.EDGE && SketchObject.YES }With regards to this filter:annotation { "Name" : "Sketch Edges", "Filter" : BodyType.SOLID }I would expect that to allow selection of any entity (face, edge, vertex) that belongs to a solid body (i.e., a part). What are you expecting in this case?0 -
Regarding
annotation { "Name" : "Sketch Edges", "Filter" : BodyType.SOLID <span>}</span>I was expecting something different (select only parts) but I'm still learning what entities and bodies are and how your query system works..
0 -
For that, you would need to do EntityType.BODY && BodyType.SOLIDIlya Baran \ VP, Architecture and FeatureScript \ Onshape Inc0


