Share

SpatialElementGeometryCalculator Class

Use this class to calculate the geometry of a spatial element and obtain the relationships between the geometry and the element's boundary elements.

Inheritance Hierarchy

System.Object
  Autodesk.Revit.DB.SpatialElementGeometryCalculator


Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.2.0.0 (26.2.0.0)

Syntax

C#

public class SpatialElementGeometryCalculator : IDisposable

The SpatialElementGeometryCalculator type exposes the following members.

Constructors

 NameDescription
Public methodSpatialElementGeometryCalculator(Document) Constructs a new calculator with default options for the geometry of spatial elements.
Public methodSpatialElementGeometryCalculator(Document, SpatialElementBoundaryOptions) Constructs a new calculator for the geometry of spatial elements.

Properties

 NameDescription
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.

Methods

 NameDescription
Public methodCalculateSpatialElementGeometry Compute the spatial element geometry and returns the boundary face information.
Public methodStatic memberCanCalculateGeometry This indicates whether the input spatial element is a valid one.
Public methodDisposeReleases all resources used by the SpatialElementGeometryCalculator
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetOptions The options that control the calculation.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberIsRoomOrSpace This indicates whether the input spatial element is a room or a space.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)

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.

See Also

Reference

Was this information helpful?