Cap all planar holes in a Brep?

How does this plugin work in Python
image

Try calling CapPlanarHoles function

import rhinoscriptsyntax as rs
rs.CapPlanarHoles()

Following your tip, I found that rhinoscriptsyntax functions are too dependent on guids, and my Python generated items cannot be sealed. But I’ve found the same approach in Rhino.Geometry. More probationary.