opBoolean / standard Boolean Hybrid, direction and mergeScope

Jonathan_Hutchinson
Jonathan_Hutchinson Member Posts: 162 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

  • EvanReese
    EvanReese Member, Mentor Posts: 3,105 PRO
    you mean like extruding a new body, and then using it to cut another body while keeping the extruded body?
    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com
  • Jonathan_Hutchinson
    Jonathan_Hutchinson Member Posts: 162 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.
  • EvanReese
    EvanReese Member, Mentor Posts: 3,105 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
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com