Compute the spatial element geometry and returns the boundary face information.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)
Since: 2012
Syntax
C# |
---|
|
Visual Basic |
---|
|
Visual C++ |
---|
|
Parameters
- spatialElement
- Type: Autodesk.Revit.DB SpatialElement
Specifies the spatial element needs to be computed, should be Room or Space.
Return Value
Requested boundary face information.Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions ArgumentException | spatialElement is not a room or a space, and thus has no 3D geometry to calculate. -or- spatialElement is not enclosed in 2d or has no location, or the height is too small, and thus has no 3D geometry to calculate. |
Autodesk.Revit.Exceptions ArgumentNullException | A non-optional argument was NULL |
Autodesk.Revit.Exceptions InvalidOperationException | Failed to compute the given spatial element's geometry. |