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.
Trying to query for edge betwen a loft and an extrude
curtis_heisey
Member Posts: 3 ✭
In featurescape I am trying to add a fillet on an edge between a rocket in and body (loft and extrude).
I've manually put in in the fillet, but I would like to do it in featurescript ("TODO" in the feature script).
I need form a query to find the edge. I've tried a bunch of things, but no avail. Something like ...
var filletedge = qNthElement(qEdgeAdjacent( qCreatedBy(id + "loft1", EntityType.FACE) , EntityType.EDGE),0);
The CAD doc is here https://cad.onshape.com/documents/726aaae0463bacf670f75971/w/fa7c8d0c757d470539db7bb9/e/e03d54867de3d6940eb0c343
And the feature script code is here https://cad.onshape.com/documents/726aaae0463bacf670f75971/w/fa7c8d0c757d470539db7bb9/e/ab53554186c9f21cb00b5305
Tagged:
0
Best Answer
-
lana Onshape Employees Posts: 707@curtis_heisey
I'd recommend using opFillet for better performance.
The edge highlighted by debug(context, filletedge);
is the bottom edge of loft. You want to fillet the edge created by Boolean merge post-operation in circularPattern.
Please see how I handled it here.
1
Answers
IR for AS/NZS 1100
debug(context, filletedge);
var fillet_radius = 0.2*inch;
var rho=0.5;
var magnitude = 0.5;
opFillet(context, id + "fillet_1", { "entities" : filletedge ,
"tangentPropagation" : true,
"crossSection" : FilletCrossSection.CIRCULAR,
"radius" : fillet_radius,
"rho" : rho,
"magnitude" : magnitude,
"defaultsChanged" : false,
"isVariable" : false,
"vertexSettings" : [],
"smoothTransition" : false });
I'd recommend using opFillet for better performance.
The edge highlighted by is the bottom edge of loft. You want to fillet the edge created by Boolean merge post-operation in circularPattern.
Please see how I handled it here.