I’ve got a script that uses “Brep.Faces.RemoveAt” to delete surfaces from polysurfaces…and I just relalized, how do I identify and handle if I’ve up and removed all of them? If I use doc.Objects.Replace to update the model with an empty Brep…that’s gonna be bad? I guess I can tell by the length of the list of Breps if I’m about to delete the whole thing…?
A brep without any faces is probably not valid, and replacing with an invalid brep will probably fail. But try it out, see what happens
Yeah it didn’t generate any sort of error, so that seemed bad, I decided to check if I was about to remove everything and use Delete instead.
also check this older post: