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.

opBoolean: CANNOT_RESOLVE_ENTITIES

mko_scmko_sc Member Posts: 24 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_baranilya_baran Onshape Employees, Developers, HDM Posts: 1,212
    I think the error is: it's targets, not target in the opBoolean
    Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc
  • konstantin_shiriazdanovkonstantin_shiriazdanov Member Posts: 1,221 ✭✭✭✭✭
    it should be "targets" field in opBoolean(), not "target"
  • mko_scmko_sc Member Posts: 24 PRO
    i am shocked ... 3 days i try them all!  :'(
    Solved thanks
Sign In or Register to comment.