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.
Fillet edges only on faces in extruded direction
richard_marcus
Member Posts: 17 EDU
Is there a query that will give me only the edges on a body that are in the extruded direction (i.e. perpendicular to the sketch plane)? I don't want to fillet anything on the end faces. Queries are still a little bit of a mystery to me.
This seems to work if I just extruded a body:
However, if I have done other operations (such as boolean remove) on the body, the qCapEntity doesn't really work anymore since it references a feature creation not the body.
Any advice?
This seems to work if I just extruded a body:
var ExtrudedEdges is Query = qSubtraction(qSubtraction(qCreatedBy(id + "extrude1", EntityType.EDGE), qCapEntity(id + "extrude1", true)), qCapEntity(id + "extrude1", false));
opFillet(context, id + "fillet1", {
"entities" : ExtrudedEdges,
"radius" : 0.5 * millimeter
});
However, if I have done other operations (such as boolean remove) on the body, the qCapEntity doesn't really work anymore since it references a feature creation not the body.
Any advice?
Tagged:
0
Best Answer
-
konstantin_shiriazdanov Member Posts: 1,221 ✭✭✭✭✭once i needed the same functionality, and i wrote a function
function selectParallelEdges(context is Context, edges is Query, vector is Vector)<br>{<br> var parallelEdges = [];<br> for (var edge in evaluateQuery(context, edges))<br> {<br> if (parallelVectors(evLine(context, { "edge" : edge }).direction, vector))<br> {<br> parallelEdges = append(parallelEdges, edge);<br> }<br> }<br> return qUnion(parallelEdges);<br>}<br><br>
1
Answers
Let me know if this works for you!
Edit: Nice function Konstantin!
You can see an example here https://cad.onshape.com/documents/3d52520839c0fa3587798c0f/w/2c36a47f3c428c7a3f8e3a5f/e/acc8270b7d8719708565ee1e
Just try to create a full round in a sheet metal part
Eduardo Magdalena C2i Change 2 improve ☑ ¿Por qué no organizamos una reunión online?
Partner de PTC - Onshape Averigua a quién conocemos en común
Let's see if some copy-paste brings back the lost code.<br><br>