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.

Trouble with extrude

3966_cad3966_cad Member Posts: 10 EDU
I am using extrude instead of opExtrude, but it keeps saying that the EXTRUDE_FAILED. 
 extrude(context, id + "extrude2", {
                "entities" : qSketchRegion(id + "sketch2"),
                "oppositeDirection" : true,
                "endBound" : BoundingType.UP_TO_BODY,
                "operationType" : NewBodyOperationType.REMOVE,
                "endBoundEntityBody" : qCreatedBy(id + "sketch2", EntityType.BODY)
        });
If anyone can help, it would be much appreciated. 
Here is the link.

Comments

  • kevin_o_toole_1kevin_o_toole_1 Onshape Employees, Developers, HDM Posts: 565
    edited July 2017
    Two things I can see:

    On extrude1, I believe in "endDepth" : definition.length * inch, you should remove * inch, since definition.length already has length units.

    On extrude2, you seem to be extruding a sketch up to bodies from that same sketch, so the extrude depth is 0 everywhere. I'm not sure what your intention is but I assume that's not it?

Sign In or Register to comment.