splitBodyFeature.count to zero after split
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello.
I am trying to split a shell with a construction plane. The shell is shown on the picture below: it is made of 3 faces making 1 shell which is also 1 lump. But it is as single BRepBody from the API point of view, as it is a single object in my Fusion UI tree (see picture).
To split this shell (selected in "recup_object" which is a BRepBody), I wrote the following code:
splitBodyFeats = rootComp.features.splitBodyFeatures
splitBodyInput = splitBodyFeats.createInput(recup_object, planeOne,True)
splitBodyFeat = splitBodyFeats.add(splitBodyInput)
When executing, two bodies are created in my Fusion Model, but I am unable to access them in the API because the "splitBodyFeat " object count property is equal to 0, whereas I am expecting it to contain the collection of bodies created, accessible with the bodies property.
In the reference manual, it is written that the body of the createInput method should be "Input solid body or open bodies to be split": is my issue coming from the fact that my recup_object is not a solid body? (isSolid property is False).
In any case, since this seems not to be working, what would be the solution? Is there a specific method/feature to split shells like this?
Thank you for your help.