Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:

  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. 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

tonvistonvis Member Posts: 24

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))

               });
             */

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.

Sign In or Register to comment.