When we have a space of complex vertical shape its boundaries may miss real elements - it’s a well known issue in Revit. Out-of-the-box method to create spaces uses wall closed loops. At the same time API has a special class BuildingEnvelopAnalizer which applies a more intelligent “flood-fill” algorithm, e.g. during gbXML export for energy analysis, with much more accurate geometry. How to call this algorithm to correct space’s shape and boundaries right inside Revit, not for gbXML export?