Building

class xgbxml.xgbxml.Building[source]
get_gaps_in_surfaces()[source]

Identifies any gaps in the surfaces of the Building.

To be used for spotting errors in the geometry - such as small surfaces not being exported from REVIT. See https://forums.autodesk.com/t5/revit-api-forum/gbxml-from-adjacent-conceptual-mass-adjacent-space-missing-small/m-p/12232100.

This functions looks at each Space in the Building and determines if the edges of the Surfaces adjacent to the Space match with each other. Where they do not match, this may indicate a gap in the Surfaces.

Returns:

A list of dictionaries. Each dictionary contains the shell (exterior) of missing surface polygon and a list of the adjacent Spaces. For example:

[
    {
        'space_ids': ['aim2197'],
        'shell': [
            (72.2287629, -0.3141381, 0.0),
            (72.2287629, -0.4999998, 0.0),
            (72.0986211, -0.4999998, 0.0),
            (72.2287629, -0.3141381, 0.0)
            ]
        },
    {
        'space_ids': ['aim2553', 'aim7413'],
        'shell': [
            (80.2291667, 14.5625, 10.0),
            (80.0208333, 14.5625, 10.0),
            (80.0208333, 16.020833, 10.0),
            (80.2291667, 16.020833, 10.0),
            (80.2291667, 14.5625, 10.0)
            ]
        }
    ]
Return type:

list