Chamfering edges created by a boolean subtract
daniel_splawski
Member Posts: 66 ✭✭
How can I select and chamfer the edges created on the top and bottom planes as a result of a boolean subtract operation in feature script? In the example below I'm trying to re-create the result of the Chamfer1 operation.
https://cad.onshape.com/documents/948d1e28d836594521beb494/w/566321e3434d212e242e33eb/e/a29386f1d2087868b2fd3976
https://cad.onshape.com/documents/948d1e28d836594521beb494/w/566321e3434d212e242e33eb/e/a29386f1d2087868b2fd3976
0
Best Answer
-
If you've made the hole in FeatureScript with an id of, say id + "extrude1", you can get the edges created using qCreatedBy(id + "extrude1", EntityType.EDGE)
If the extrude was made outside your feature or as part of an import, there's a couple subtly different ways you want to generalize this. For your specific hole, it's enough pass in the face and do qEdgeAdjacent(definition.face, EntitytType.Edge). For a more general case, you might want to do a qHoleFaces() or a qConcaveConnectedFaces, or a qLoopBoundedFaces first.
This isn't a very in-depth answer, so post here if you have further questions!5
Answers
-
If you've made the hole in FeatureScript with an id of, say id + "extrude1", you can get the edges created using qCreatedBy(id + "extrude1", EntityType.EDGE)
If the extrude was made outside your feature or as part of an import, there's a couple subtly different ways you want to generalize this. For your specific hole, it's enough pass in the face and do qEdgeAdjacent(definition.face, EntitytType.Edge). For a more general case, you might want to do a qHoleFaces() or a qConcaveConnectedFaces, or a qLoopBoundedFaces first.
This isn't a very in-depth answer, so post here if you have further questions!5 -
Too easy! Thanks again for your help1

