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.
opSweep multiple edges
tonvis
Member Posts: 41 ✭✭
Can somebody please help me out, I tryed everything to obtain a full path along a set of edges.
line 373
/* ---------------------- Why does this not generate multiple edges
opSweep(context, id + "sweep4", {
"profiles" : sketchEntityQuery(id + "sketch8", EntityType.EDGE, "flat"),
"path" : qCreatedBy(id + "sketch7", qEverything(EntityType.EDGE))
});
*/
opSweep(context, id + "sweep4", {
"profiles" : sketchEntityQuery(id + "sketch8", EntityType.EDGE, "flat"),
"path" : qCreatedBy(id + "sketch7", qEverything(EntityType.EDGE))
});
*/
Many thanks for any support.
0
Answers
First issue:
is not a valid query, I think what you are trying to say might be:
but by adding the following line of code, I can see what that resolves too:
You will need to be more discerning in your query to only capture the edges you want to sweep over.
This seems to get what you want:
The "debug" call is very powerful to visually see what a query resolves to. When I was working out the correct edges to select, I built up all the pieces of the qUnion in a call like this:
Which showed this nice helpful red highlight:
Then I knew the query was ready to be passed into opSweep!