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.
Spring_GeneratorFS question
tonvis
Member Posts: 41 ✭✭
Can please someone help me out, I am struggling getting the result as shown PartStudio1
PartStudio2 ->
/** @ NeilCooke You can't pick out a specific sketch entity using id + "arc2" (that does not exist as it is part of id + "sketch7"). If you only want one edge from a sketch,
sketchEntityQuery (operationId is Id, entityType, sketchEntityId is string) returns Query
Gets the wire body entities created for a specific sketch entity.
If the sketch id created multiple sketch entities, will return all the wire bodies.
*/
/* ------------------- this part is working OK
opSweep(context, id + "sweep4", {
"profiles" : sketchEntityQuery(id + "sketch8", EntityType.EDGE, "flat"),
"path" : sketchEntityQuery(id + "sketch7", EntityType.EDGE, "arc2")
});
*/
/* ------------------ Why does this not generate multiple edges like PartStudio1 ??
opSweep(context, id + "sweep4", {
"profiles" : sketchEntityQuery(id + "sketch8", EntityType.EDGE, "flat"),
"path" : qUnion([
sketchEntityQuery(id + "sketch7", EntityType.EDGE, "arc2"),
sketchEntityQuery(id + "sketch7", EntityType.EDGE, "line2"),
sketchEntityQuery(id + "sketch7", EntityType.EDGE, "helix4"),
sketchEntityQuery(id + "sketch7", EntityType.EDGE, "line1"),
sketchEntityQuery(id + "sketch7", EntityType.EDGE, "arc1")
])
});
*/ /* ---------------------- Why does this not generate multiple edges like PartStudio1 ??
opSweep(context, id + "sweep4", {
"profiles" : sketchEntityQuery(id + "sketch8", EntityType.EDGE, "flat"),
"path" : qCreatedBy(id + "sketch7", qEverything(EntityType.EDGE))
});
*/
/** @ NeilCooke You can't pick out a specific sketch entity using id + "arc2" (that does not exist as it is part of id + "sketch7"). If you only want one edge from a sketch,
sketchEntityQuery (operationId is Id, entityType, sketchEntityId is string) returns Query
Gets the wire body entities created for a specific sketch entity.
If the sketch id created multiple sketch entities, will return all the wire bodies.
*/
/* ------------------- this part is working OK
opSweep(context, id + "sweep4", {
"profiles" : sketchEntityQuery(id + "sketch8", EntityType.EDGE, "flat"),
"path" : sketchEntityQuery(id + "sketch7", EntityType.EDGE, "arc2")
});
*/
/* ------------------ Why does this not generate multiple edges like PartStudio1 ??
opSweep(context, id + "sweep4", {
"profiles" : sketchEntityQuery(id + "sketch8", EntityType.EDGE, "flat"),
"path" : qUnion([
sketchEntityQuery(id + "sketch7", EntityType.EDGE, "arc2"),
sketchEntityQuery(id + "sketch7", EntityType.EDGE, "line2"),
sketchEntityQuery(id + "sketch7", EntityType.EDGE, "helix4"),
sketchEntityQuery(id + "sketch7", EntityType.EDGE, "line1"),
sketchEntityQuery(id + "sketch7", EntityType.EDGE, "arc1")
])
});
*/ /* ---------------------- Why does this not generate multiple edges like PartStudio1 ??
opSweep(context, id + "sweep4", {
"profiles" : sketchEntityQuery(id + "sketch8", EntityType.EDGE, "flat"),
"path" : qCreatedBy(id + "sketch7", qEverything(EntityType.EDGE))
});
*/
I like Onshape very much, and am interested learning Feature Script, but lack on examples makes it really difficult to keep up,
but never give up.
Thanks the Onshape support team.
0