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.

Issues getting opExtrude working with UP_TO_FACE

aaron_skidmoreaaron_skidmore Member Posts: 34 ✭✭
Hi there I have opExtrude working with BLIND as below - no issues

      opExtrude(context, id + "extrude1", {
               "entities" : regionToExtrude,
               "direction" : zDirection,
               "endBound" : BoundingType.BLIND,
                "endDepth" : 5 * millimeter 
});
      


But when I try and do UP_TO_FACE, no matter what I try I cant seem to get it going, the debug line is showing the correct face. The warning is 
@opExtrude: EXTRUDE_SELECT_TERMINATING_SURFACE, which indicated it want a surface not a face?


        debug(context, bottomface);

        var faces = qAdjacent(bottomedge, AdjacencyType.EDGE, EntityType.FACE);
        var bottomface is Query = qLargest(faces);

        opExtrude(context, id + "extrude1", {
                   "entities" : regionToExtrude,
                    "direction" : zDirection,
                    "endBound" : BoundingType.UP_TO_FACE,
                    "endBoundEntityFace" : qNthElement(bottomface, 0)
});

Comments

Sign In or Register to comment.