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.

Options

opBoolean / standard Boolean Hybrid, direction and mergeScope

Jonathan_HutchinsonJonathan_Hutchinson Member Posts: 65 PRO
As per the title, I have the need to generate something where I both extrude in a direction, but I want it to be a NewBodyOperation.NEW as well. Any suggestions on how to achieve this?

Comments

  • Options
    Evan_ReeseEvan_Reese Member Posts: 2,066 PRO
    you mean like extruding a new body, and then using it to cut another body while keeping the extruded body?
    Evan Reese / Principal and Industrial Designer with Ovyl
    Website: ovyl.io
  • Options
    Jonathan_HutchinsonJonathan_Hutchinson Member Posts: 65 PRO
    Not quite. The only thing which is better for opExtrude than extrude is that opExtrude allows me to define a direction. But, opExtrude (it appears) defaults to a merge boolean I think, and doesn't have the specific settings for mergeScope. It might be slightly too much of a picky thing to explain the use case for though.
  • Options
    Evan_ReeseEvan_Reese Member Posts: 2,066 PRO
    Oh got ya. Extrude() should allow for a direction and a merge scope since it is literally the same as the native extrude feature, but internal to your code. You may have to dig into the function a bit to find out what map keys to use to set them, but they're there.
    Evan Reese / Principal and Industrial Designer with Ovyl
    Website: ovyl.io
Sign In or Register to comment.