ElementRecord
A record in the Revit database representing an element.
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.ElementRecord
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class ElementRecord : IDisposableThe ElementRecord type exposes the following members.
Properties
Name
Description
Public Property
IsValidObject
Specifies whether the .NET object represents a valid Revit entity.
Public Property
WorksetId
Get Id of the workset which owns the element.
Methods
Name
Description
Public Method
Dispose
Releases all resources used by the ElementRecord
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Public Method
GetBoundingBox
Gets the bounding box of the element record.
Public Method
GetCategoryId
Gets the category id of the element record.
Public Method
GetDesignOptionId
Gets the design option id of the element record.
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object)
Public Method
GetId
Gets the id of the element record.
Public Method
GetOwnerViewId
Gets the element id of the owner view record.
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object)
Public Method
HasBoundingBox
Determines whether this element record has a bounding box.
Public Method
IsAnElementType
Identifies if the element record represents an ElementType.
Public Method
IsCurveDriven
Identifies if the element is curve driven.
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)
Remarks
The record is used to extract basic information about an element before the element is fully expanded in memory.