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.

How to perform Extrude Surface + Thicken in FS?

cory_isaacsoncory_isaacson Member, Developers Posts: 43 PRO
Am I correct to assume that I should just create a sketch with a very thin border and extrude that area to perform the same thing as done in the standard Onshape Extrude Feature? And the Thicken would not be needed, as I can specify the thickness in the sketch itself.

For example, I would just make 2 rectangles, and the outer one would be .005 wider than the inner one. Then I can just extrude that area.

If there is an easier way let me know.

Best Answer

Answers

  • cory_isaacsoncory_isaacson Member, Developers Posts: 43 PRO
    Thanks Jake.

    Now let's say I want to take an existing part, a rectangular flat part with a radius on each corner, and add a thickened edge around all sides as a separate part. Is there a way to create a new sketch that matches the existing part exactly, then add another curve to the sketch slightly larger, so I can do the extrude? I can easily query the face of the part I want to use as the basis for the first sketch, but not sure how to create a sketch that would match all curves. Seems like maybe with BodyType.Wire it may be possible? I just don't know how to turn that into a sketch.
  • cory_isaacsoncory_isaacson Member, Developers Posts: 43 PRO
    I have another related question: I have been using capabilities like opExtrude, etc. I see that in the doc there is the "extrude" function, it has a lot more options (such as BodyType.SHEET which I would need for a surface). Can we call those functions directly? Otherwise I don't see where with opExtrude I can specify BodyType and other options.
  • Jake_RosenfeldJake_Rosenfeld Moderator, Onshape Employees, Developers Posts: 1,646
    edited February 2017
    When you say "a rectangular flag part" is that a solid body or a surface?  If it's a solid body I'd avoid thinking about sketches at all and just opThicken the side faces of the rectangle, then opExtrude the top face of that newly created surrounding part to give it the lip you want.

    As to your other question, "op" commands are the interface directly into our internal geometry creation, and are generally easier to use because they take direct mathematical representations of the information they require (like a Vector) for the extrude direction. Onshape Features (like "extrude" that you referred to) are actually the FeatureScript that is running when you click the "extrude" button in the Onshape UI.  Because of this, something like "revolve" may require a Query as an axis (because we need the user to click on some edge in the UI, and then break that down into its mathematical representation in the revolve code) while "opRevolve" can just take the internal mathematical representation: Line.

    TL;DR Onshape features such as extrude or revolve take user UI input and transform them into calls to opExtrude and opRevolve.  Hope this answered your question.

    And to directly answer your confusion, if you provide edges as definition.entities to opExtrude instead of faces, it should create sheet bodies for you without you having to explicitly set anything to BodyType.SHEET.
    Jake Rosenfeld - Modeling Team
Sign In or Register to comment.