</p>
Query filter help for vertices?
I'm trying to construct a query filter which will take individual vertices, edge points, mate connectors, and/or whole sketches. When I select a whole sketch I want it to use any sketch points, or vertices of sketched lines/arc/etc, but not from construction sketch entities. I don't really understand "ConstructionObject.NO" since that doesn't seem to remove construction entities from sketch selections.
Simon Gatrall | Product Development, Engineering, Design, Onshape | Ex- IDEO, PCH, Unagi, Carbon | LinkedIn
Comments
-
Vertices themselves aren't marked as construction, but edges are.
You could take all of the vertices, find all vertex adjacent edges.
And then find all that are construction edges.
And then take all of the vertices adjacent to construction edges,
and subtract from your original query.
Where seed is a query of vertices
and then take this query and subtract it from your original query to remove all the construction vertices.var constructionRemoved = qSubtraction(seed, qAdjacent(qConstructionFilter(qAdjacent(seed, AdjacencyType.VERTEX, EntityType.EDGE), ConstructionObject.YES), AdjacencyType.VERTEX, EntityType.VERTEX));www.smartbenchsoftware.com --- Renaissance --- Kestrel -- SmartLink
Experts in Onshape Automation - Custom Features and Integrated Applications2
