opBoolean: CANNOT_RESOLVE_ENTITIES

mko_sc
mko_sc Member Posts: 27 PRO
Can someone help me understand why I have the error: @opBoolean: CANNOT_RESOLVE_ENTITIES
I read on the forum that you probably need a "qUnion" of the various bodies, and I didn't understand what to do
I have:
1 body selected:
debug(context, definition.targetsF, DebugColor.GREEN);
1 body created:
var utensile = qCreatedBy(id + "extrude6", EntityType.BODY);
where am i wrong?

        var utensile = qCreatedBy(id + "extrude6", EntityType.BODY);
        debug(context, utensile, DebugColor.RED);
            println("-----utensile.....:" ~ utensile ~ "------------" ~ "***");
        debug(context, definition.targetsF, DebugColor.GREEN);
            println("-----definition.targetsF...:" ~ definition.targetsF ~ "------------" ~ "***");
            
        opBoolean(context, id + "boolean1", {
                    "operationType" : BooleanOperationType.SUBTRACTION,
                    "tools" : utensile,
                    "target" : definition.targetsF,

                });


Thanks


Comments

  • ilya_baran
    ilya_baran Onshape Employees, Developers, HDM Posts: 1,274 image
    I think the error is: it's targets, not target in the opBoolean
    Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc
  • konstantin_shiriazdanov
    konstantin_shiriazdanov Member Posts: 1,221 ✭✭✭✭✭
    it should be "targets" field in opBoolean(), not "target"
  • mko_sc
    mko_sc Member Posts: 27 PRO
    i am shocked ... 3 days i try them all!  :'(
    Solved thanks