Extrude removing material in Sheet Metal part

Roberto_Verduci
Roberto_Verduci Member Posts: 29 ✭✭
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

  • caden_armstrong2
    caden_armstrong2 Member, User Group Leader Posts: 121 ✭✭✭
    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.
  • Roberto_Verduci
    Roberto_Verduci Member Posts: 29 ✭✭
    Hi Caden, 

    thanks. Where can I find an example? I'm new in featureScripting and I'm learning step by step
  • Jacob_Corder
    Jacob_Corder Member Posts: 141 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
  • Roberto_Verduci
    Roberto_Verduci Member Posts: 29 ✭✭
    Hi Jacob,

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

     Thank you both!!