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

Extrude removing material in Sheet Metal part

Roberto_VerduciRoberto_Verduci Member Posts: 13 PRO
Hi,

I'm new in scripting.
I'm tring to sketch a circle on a SM face and to extrude it removing material. I can draw a circle, I can extrude it but I get an error with opBoolean (@opBoolean: SHEET_METAL_PARTS_PROHIBITED).

How can I use opBoolean with SM?

Thanks

Comments

  • Options
    caden_armstrongcaden_armstrong Member, User Group Leader Posts: 127 ✭✭✭
    Sheet metal part modification is tricky.
    The easiest way to do it is to use the actual Boolean feature instead of opboolean. It handles all the hard stuff for you.
  • Options
    Roberto_VerduciRoberto_Verduci Member Posts: 13 PRO
    Hi Caden, 

    thanks. Where can I find an example? I'm new in featureScripting and I'm learning step by step
  • Options
    Jacob_CorderJacob_Corder Member Posts: 126 PRO
    @Roberto_Verduci

    if your opBoolean Call is similar to this with no other arguments
    opBoolean(context, id + "boolean1", {
                                             "tools" : tools,
                                             "operationType" : BooleanOperationType.SUBTRACTION,
                                             "targets": something
                                     });
    then change it to
    booleanBodies(context, id + "boolean1", {
                                             "tools" : tools,
                                             "operationType" : BooleanOperationType.SUBTRACTION,
                                             "targets": something
                                     }); 

    this should solve your issue
  • Options
    Roberto_VerduciRoberto_Verduci Member Posts: 13 PRO
    Hi Jacob,

    it was so simple that I hadn't considered replacing the feature name :#
    It works good.

     Thank you both!!
Sign In or Register to comment.