SpatialElementGeometryCalculator
Description:
Use this class to calculate the geometry of a spatial element and obtain the relationships between the geometry and the element's boundary elements.
Use this class to calculate the geometry of a spatial element and obtain the relationships between the geometry and the element's boundary elements.
Remarks:
This class maintains an internal cache for geometry it has already processed. If you intend to calculate geometry for several elements in the same project you should use a single instance of this class. Note that the cache will be cleared when any change is made to the document.
This class maintains an internal cache for geometry it has already processed. If you intend to calculate geometry for several elements in the same project you should use a single instance of this class. Note that the cache will be cleared when any change is made to the document.
Inheritance Hierarchy:
System.Object
Autodesk.Revit.DB.SpatialElementGeometryCalculator
System.Object
Autodesk.Revit.DB.SpatialElementGeometryCalculator
public class SpatialElementGeometryCalculator : IDisposable
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| SpatialElementGeometryCalculator(Document) | None | Constructs a new calculator with default options for the geometry of spatial elements. | |
| SpatialElementGeometryCalculator(Document, SpatialElementBoundaryOptions) | None | Constructs a new calculator for the geometry of spatial elements. |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| CalculateSpatialElementGeometry(SpatialElement) | SpatialElementGeometryResults | Compute the spatial element geometry and returns the boundary face information. | |
| CanCalculateGeometry(SpatialElement) | Boolean | This indicates whether the input spatial element is a valid one. | |
| Dispose() | None | Releases all resources used by the SpatialElementGeometryCalculator | |
| Equals | None | Determines whether the specified object is equal to the current object. (Inherited from Object ) | Object |
| GetHashCode | None | Serves as the default hash function. (Inherited from Object ) | Object |
| GetOptions() | SpatialElementBoundaryOptions | The options that control the calculation. | |
| GetType | None | Gets the Type of the current instance. (Inherited from Object ) | Object |
| IsRoomOrSpace(SpatialElement) | Boolean | This indicates whether the input spatial element is a room or a space. | |
| ToString | None | Returns a string that represents the current object. (Inherited from Object ) | Object |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| IsValidObject | Boolean | Specifies whether the .NET object represents a valid Revit entity. |