Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- 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.
trouble using opSplitPart() with multiple faces in a single body

I am practicing my surfacing and once I got to a useful base object I wanted to add some more solid-like features to it. I'm working on a custom feature to make this easier. I hoped to make the workflow be kind of like a wrap, but without warping and applicable to 'any' surface, not just cylinders and cones as I believe wrap is presently constrained to. The gist is to sketch out the feature(s) on a plane and then use this new custom feature to select a group of regions and their origin from which it will translate/rotate them without distortion to a new position and tangent orientation on the target surface. It then creates an extrude from those regions followed by splits using surfaces it has offset from the primary target surface. Hopefully the picture helps.
In the picture you can see the sketch selected, the compound curved surface/part onto which the sketch is to be 'transferred', and then also highlighted is the resulting extrusion. This part is working, though I need to add some more options to it.
My (present...) issue arises when the target surface has multiple 'pieces'. Part of the problem here is I don't necessarily know all the possible cases, etc. But, in the second case we can see that the extrusion overlaps the oval in the center thus needing to use both portions of that surface for splitting to trim it down to size. I end up with @opSplitPart: SPLIT_FAILED . I've been trying to fiddle around with workarounds with no success. You can see some of my alternative failures commented out.
How should I go about fixing this process to handle this scenario where the geometry being created spans across two faces on the target body?
https://cad.onshape.com/documents/800d4aa854c6bdf32d6fe882/v/9158b7c0c4218df4c0e0fa49/e/cc38d6ba7e24574d33d25e1d?renderMode=0&uiState=67d30fe477d8920e736010d1
h Copy 1
is the part studio I am actively developing in. While I did get close'ish to the geometry I wanted, I do also want to learn better techniques for the surfacing, such as not having two faces on this part. :]
But, that's a bit of a separate topic (sorta, kinda).
Thanks... yet again.
Cheers,
-kyle
Comments
https://cad.onshape.com/documents/800d4aa854c6bdf32d6fe882/v/e4cf09487d8a4585ec6fc8a5/e/cc38d6ba7e24574d33d25e1d?renderMode=0&uiState=67d42a0da720212af3fa6ac7
For the bits I failed so far to automate, I added manually steps after my custom feature. In case that's useful reference.