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.

opSplitPart not behaving like UI split part

graham_lockgraham_lock Member Posts: 160 PRO

Hi,

Referring to the image below:

I want to split the part with the surface to give inner and outer parts.

I'm using

opSplitPart(context, id + "splitPart1", {
"targets" : targetPart,
"tool" : qCreatedBy(id + "extrudeOuterEdges", EntityType.FACE),
"keepTools" : true
});

As you can see at the front left, the split is splitting the part full length below the surface giving me an upper and lower part, rather than the required central and outer parts.

If I manually split the part using the surface it works absolutely fine.

Any thoughts appreciated.

Thank you.

Best Answer

  • GregBrownGregBrown Member, Onshape Employees, csevp Posts: 204
    edited November 30 Answer ✓

    The tool you are trying to split with is specified as EntityType.FACE, which is not what you want. You'll need to construct your query such that it returns a BODY…

Answers

  • GregBrownGregBrown Member, Onshape Employees, csevp Posts: 204
    edited November 30 Answer ✓

    The tool you are trying to split with is specified as EntityType.FACE, which is not what you want. You'll need to construct your query such that it returns a BODY…

  • graham_lockgraham_lock Member Posts: 160 PRO

    Thank you!

Sign In or Register to comment.