2020 Class
Changes 8
C

Element

Description:
Base class for most persistent data within a Revit document.
Remarks:
The data in a Revit document consists primarily of a collection of elements. An element usually corresponds to a single component of a building or drawing, such as a wall, door, or dimension, but it can also be something more abstract, like a wall type or a view. Every element in a document has a unique ID, represented by the ElementId class.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.Element
    Autodesk.Revit.DB.Analysis.AnalysisDisplayLegend
    Autodesk.Revit.DB.Analysis.AnalysisDisplayStyle
    Autodesk.Revit.DB.Analysis.ConceptualSurfaceType
    Autodesk.Revit.DB.Analysis.EnergyAnalysisDetailModel
    Autodesk.Revit.DB.Analysis.EnergyAnalysisOpening
    Autodesk.Revit.DB.Analysis.EnergyAnalysisSpace
    Autodesk.Revit.DB.Analysis.EnergyAnalysisSurface
    Autodesk.Revit.DB.Analysis.EnergyDataSettings
    Autodesk.Revit.DB.Analysis.HVACLoadType
    Autodesk.Revit.DB.Analysis.MassEnergyAnalyticalModel
    Autodesk.Revit.DB.Analysis.MassLevelData
    Autodesk.Revit.DB.Analysis.MassSurfaceData
    Autodesk.Revit.DB.Analysis.MassZone
    Autodesk.Revit.DB.Analysis.PathOfTravel
    Autodesk.Revit.DB.Analysis.RouteAnalysisSettings
    Autodesk.Revit.DB.Analysis.SpatialFieldManager
    Autodesk.Revit.DB.AppearanceAssetElement
    Autodesk.Revit.DB.Architecture.ContinuousRail
    Autodesk.Revit.DB.Architecture.MultistoryStairs
    Autodesk.Revit.DB.Architecture.Railing
    Autodesk.Revit.DB.Architecture.Stairs
    Autodesk.Revit.DB.Architecture.StairsLanding
    Autodesk.Revit.DB.Architecture.StairsPath
    Autodesk.Revit.DB.Architecture.StairsRun
    Autodesk.Revit.DB.Architecture.TopographySurface
    Autodesk.Revit.DB.AreaScheme
    Autodesk.Revit.DB.AreaVolumeSettings
    Autodesk.Revit.DB.AssemblyInstance
    Autodesk.Revit.DB.BaseArray
    Autodesk.Revit.DB.BasePoint
    Autodesk.Revit.DB.BeamSystem
    Autodesk.Revit.DB.CombinableElement
    Autodesk.Revit.DB.ComponentRepeater
    Autodesk.Revit.DB.ComponentRepeaterSlot
    Autodesk.Revit.DB.ConnectorElement
    Autodesk.Revit.DB.Control
    Autodesk.Revit.DB.CurveElement
    Autodesk.Revit.DB.DatumPlane
    Autodesk.Revit.DB.DefaultDivideSettings
    Autodesk.Revit.DB.DesignOption
    Autodesk.Revit.DB.Dimension
    Autodesk.Revit.DB.DirectShape
    Autodesk.Revit.DB.DisplacementElement
    Autodesk.Revit.DB.DisplacementPath
    Autodesk.Revit.DB.DividedPath
    Autodesk.Revit.DB.DividedSurface
    Autodesk.Revit.DB.Electrical.CableTrayConduitRunBase
    Autodesk.Revit.DB.Electrical.CableTraySettings
    Autodesk.Revit.DB.Electrical.CableTraySizes
    Autodesk.Revit.DB.Electrical.ConduitSettings
    Autodesk.Revit.DB.Electrical.ConduitSizeSettings
    Autodesk.Revit.DB.Electrical.ElectricalDemandFactorDefinition
    Autodesk.Revit.DB.Electrical.ElectricalLoadClassification
    Autodesk.Revit.DB.Electrical.ElectricalSetting
    Autodesk.Revit.DB.Electrical.PanelScheduleSheetInstance
    Autodesk.Revit.DB.Electrical.PanelScheduleTemplate
    Autodesk.Revit.DB.ElementType
    Autodesk.Revit.DB.ElevationMarker
    Autodesk.Revit.DB.ExportDGNSettings
    Autodesk.Revit.DB.ExportDWGSettings
    Autodesk.Revit.DB.ExtensibleStorage.DataStorage
    Autodesk.Revit.DB.FabricationConfiguration
    Autodesk.Revit.DB.FabricationPart
    Autodesk.Revit.DB.FaceSplitter
    Autodesk.Revit.DB.Family
    Autodesk.Revit.DB.FilledRegion
    Autodesk.Revit.DB.FillPatternElement
    Autodesk.Revit.DB.FilterElement
    Autodesk.Revit.DB.GraphicsStyle
    Autodesk.Revit.DB.Group
    Autodesk.Revit.DB.HostObject
    Autodesk.Revit.DB.ImageInstance
    Autodesk.Revit.DB.IndependentTag
    Autodesk.Revit.DB.Instance
    Autodesk.Revit.DB.KeyBasedTreeEntryTable
    Autodesk.Revit.DB.LinePatternElement
    Autodesk.Revit.DB.Material
    Autodesk.Revit.DB.Mechanical.DuctSettings
    Autodesk.Revit.DB.Mechanical.DuctSizeSettings
    Autodesk.Revit.DB.Mechanical.MechanicalEquipmentSet
    Autodesk.Revit.DB.Mechanical.Zone
    Autodesk.Revit.DB.MEPSystem
    Autodesk.Revit.DB.ModelText
    Autodesk.Revit.DB.MultiReferenceAnnotation
    Autodesk.Revit.DB.MultiSegmentGrid
    Autodesk.Revit.DB.NestedFamilyTypeReference
    Autodesk.Revit.DB.NumberingSchema
    Autodesk.Revit.DB.NumberSystem
    Autodesk.Revit.DB.Opening
    Autodesk.Revit.DB.ParameterElement
    Autodesk.Revit.DB.Part
    Autodesk.Revit.DB.PartMaker
    Autodesk.Revit.DB.Phase
    Autodesk.Revit.DB.PhaseFilter
    Autodesk.Revit.DB.Plumbing.PipeSettings
    Autodesk.Revit.DB.PrintSetting
    Autodesk.Revit.DB.ProjectInfo
    Autodesk.Revit.DB.PropertyLine
    Autodesk.Revit.DB.PropertySetElement
    Autodesk.Revit.DB.ReferencePoint
    Autodesk.Revit.DB.Revision
    Autodesk.Revit.DB.RevisionCloud
    Autodesk.Revit.DB.RevisionSettings
    Autodesk.Revit.DB.ScheduleSheetInstance
    Autodesk.Revit.DB.Segment
    Autodesk.Revit.DB.SketchBase
    Autodesk.Revit.DB.SketchPlane
    Autodesk.Revit.DB.SpatialElement
    Autodesk.Revit.DB.SpatialElementCalculationLocation
    Autodesk.Revit.DB.SpatialElementTag
    Autodesk.Revit.DB.StartingViewSettings
    Autodesk.Revit.DB.Structure.AnalyticalLink
    Autodesk.Revit.DB.Structure.AnalyticalModel
    Autodesk.Revit.DB.Structure.AreaReinforcement
    Autodesk.Revit.DB.Structure.BoundaryConditions
    Autodesk.Revit.DB.Structure.FabricArea
    Autodesk.Revit.DB.Structure.FabricSheet
    Autodesk.Revit.DB.Structure.Hub
    Autodesk.Revit.DB.Structure.LoadBase
    Autodesk.Revit.DB.Structure.LoadCase
    Autodesk.Revit.DB.Structure.LoadCombination
    Autodesk.Revit.DB.Structure.LoadNature
    Autodesk.Revit.DB.Structure.LoadUsage
    Autodesk.Revit.DB.Structure.PathReinforcement
    Autodesk.Revit.DB.Structure.Rebar
    Autodesk.Revit.DB.Structure.RebarContainer
    Autodesk.Revit.DB.Structure.RebarCoupler
    Autodesk.Revit.DB.Structure.RebarInSystem
    Autodesk.Revit.DB.Structure.ReinforcementSettings
    Autodesk.Revit.DB.Structure.StructuralConnectionHandler
    Autodesk.Revit.DB.Structure.StructuralConnectionSettings
    Autodesk.Revit.DB.Structure.StructuralSettings
    Autodesk.Revit.DB.Structure.Truss
    Autodesk.Revit.DB.SunAndShadowSettings
    Autodesk.Revit.DB.TextElement
    Autodesk.Revit.DB.View
    Autodesk.Revit.DB.ViewNavigationToolSettings
    Autodesk.Revit.DB.Viewport
    Autodesk.Revit.DB.ViewSheetSet
    Autodesk.Revit.DB.WorksetDefaultVisibilitySettings
    Autodesk.Revit.DB.WorksharingDisplaySettings
public class Element : IDisposable
Name Return Type Description
M ArePhasesModifiable() bool Returns true if the properties CreatedPhaseId and DemolishedPhaseId can be modified for this Element.
M CanBeHidden(View) bool Indicates if the element can be hidden in the view.
M CanBeLocked() bool Identifies if the element can be locked.
M CanDeleteSubelement(Subelement) bool Checks if given subelement can be removed from the element.
M CanHaveAnalyticalModel() bool Indicates whether the Element can have an Analytical Model.
M CanHaveTypeAssigned() bool Identifies if the element can have a type assigned.
M CanHaveTypeAssigned(Document, ICollection<ElementId>) bool Checks if all elements in the set can have a type assigned.
M ChangeTypeId(Document, ICollection<ElementId>, ElementId) IDictionary Changes the type of all elements in the given set.
M ChangeTypeId(ElementId) ElementId Changes the type of the element.
M DeleteEntity(Schema) bool Deletes the existing entity created by %schema% in the element
M DeleteSubelement(Subelement) bool Removes a subelement from the element.
M DeleteSubelements(IList<Subelement>) bool Removes the subelements from the element.
M Dispose() None Releases all resources used by the
M GetAnalyticalModelId() Element Id. Retrieves the Element Id of the Analytical Model Element for this Element.
M GetAnalyticalModel() Writeable Analytical Model. Retrieves writeable Analytical Model for Element.
M GetChangeTypeAny() ChangeType Returns ChangeType associated with any change in an element.
M GetChangeTypeElementAddition() ChangeType Returns ChangeType associated with element addition
M GetChangeTypeElementDeletion() ChangeType Returns ChangeType associated with element deletion.
M GetChangeTypeGeometry() ChangeType Returns ChangeType associated with a change in the geometry of an element
M GetChangeTypeParameter(ElementId) ChangeType Returns ChangeType associated with a change in a parameter's value
M GetChangeTypeParameter(Parameter) ChangeType Returns ChangeType associated with a change in a parameter's value
M GetDependentElements(ElementFilter) IList<ElementId> Get all elements that, from a logical point of view, are the children of this Element.
M GetEntity(Schema) The returned Entity. Returns the existing entity corresponding to the Schema if it has been saved in the Element, or an invalid entity otherwise.
M GetEntitySchemaGuids() IList<Guid> Returns the Schema guids of any Entities stored in this element.
M GetExternalFileReference() ExternalFileReference Gets information pertaining to the external file referenced by the element.
M GetExternalResourceReference(ExternalResourceType) ExternalResourceReference Gets the ExternalResourceReference associated with a specified external resource type.
M GetExternalResourceReferences() IDictionary Gets the full map of the external resource references referenced by the element.
M GetGeneratingElementIds(GeometryObject) ICollection<ElementId> Returns the ids of the element(s) that generated the input geometry object.
M GetGeometryObjectFromReference(Reference) GeometryObject Retrieve one geometric primitive contained in the element given a reference.
M GetMaterialArea(ElementId, Boolean) double Gets the area of the material with the given id.
M GetMaterialIds(Boolean) ICollection<ElementId> Gets the element ids of all materials present in the element.
M GetMaterialVolume(ElementId) double Gets the volume of the material with the given id.
M GetMonitoredLinkElementIds() IList<ElementId> Provides the link instance IDs when the element is monitoring.
M GetMonitoredLocalElementIds() IList<ElementId> Provides the local element IDs when the element is monitoring.
M GetOrderedParameters() IList<Parameter> Gets the parameters associated to the element in order.
M GetParameterFormatOptions(ElementId) FormatOptions Returns a FormatOptions override for the element Parameter, or a default FormatOptions if no override exists.
M GetParameters(String) IList<Parameter> Retrieves the parameters from the element via the given name.
M GetPhaseStatus(ElementId) ElementOnPhaseStatus Gets the status of a given element in the input phase
M GetSubelements() IList<Subelement> Returns the collection of element subelements.
M GetTypeId() ElementId Returns the identifier of this element's type.
M GetValidTypes() ICollection<ElementId> Obtains a set of types that are valid for this element.
M GetValidTypes(Document, ICollection<ElementId>) ICollection<ElementId> Obtains a set of types that are valid for all given elements.
M HasPhases() bool Returns true if this Element has the properties CreatedPhaseId and DemolishedPhaseId.
M IsExternalFileReference() bool Determines whether this Element represents an external file.
M IsHidden(View) bool Identifies if the element has been permanently hidden in the view.
M IsMonitoringLinkElement() bool Indicate whether an element is monitoring any elements in any linked models.
M IsMonitoringLocalElement() bool Indicate whether an element is monitoring other local elements.
M IsPhaseCreatedValid(ElementId) bool Returns true if createdPhaseId is an allowed value for the property CreatedPhaseId in this Element.
M IsPhaseDemolishedValid(ElementId) bool Returns true if demolishedPhaseId is an allowed value for the property DemolishedPhaseId in this Element.
M IsValidType(Document, ICollection<ElementId>, ElementId) bool Checks if given type is valid for the set of elements.
M IsValidType(ElementId) bool Checks if given type is valid for this element.
M LookupParameter(String) nullNothingnullptr Attempts to find a parameter on the element which has the given name.
M RefersToExternalResourceReference(ExternalResourceType) bool Determines whether this Element uses external resources associated with a specified external resource type.
M RefersToExternalResourceReferences() bool Determines whether this Element uses external resources.
M SetEntity(Entity) None Stores the entity in the element. If an Entity described by the same Schema already exists, it is overwritten.
Name Return Type Description
P AssemblyInstanceId ElementId The id of the assembly instance to which the element belongs.
P BoundingBox BoundingBoxXYZ Retrieves a box that circumscribes all geometry of the element.
P Category Category Retrieves a Category object that represents the category or sub category in which the element resides.
P CreatedPhaseId ElementId Id of a Phase at which the Element was created.
P DemolishedPhaseId ElementId Id of a Phase at which the Element was demolished.
P DesignOption DesignOption Returns the design option to which the element belongs.
P Document Document Returns the Document in which the Element resides.
P Geometry GeometryElement Retrieves the geometric representation of the element.
P GroupId ElementId The id of the group to which an element belongs.
P Id ElementId A unique identifier for an Element in an Autodesk Revit project.
P IsTransient bool Indicates whether an element is transient or permanent.
P IsValidObject bool Specifies whether the .NET object represents a valid Revit entity.
P LevelId ElementId The id of the level associated with the element.
P Location Location This property is used to find the physical location of an element within a project.
P Name string A human readable name for the Element.
P OwnerViewId ElementId The id of the view that owns the element.
P Parameter Parameter Retrieves a parameter from the element given a parameter id.
P Parameter Parameter Retrieves a parameter from the element based on its definition.
P Parameter Parameter Retrieves a parameter from the element given a GUID for a shared parameter.
P ParametersMap ParameterMap Retrieves a map containing all of the parameters that are contained within the element.
P Parameters ParameterSet Retrieves a set containing all of the parameters that are contained within the element.
P Pinned bool Identifies if the element has been pinned to prevent changes.
P UniqueId string A stable unique identifier for an element within the document.
P ViewSpecific bool Identifies if the element is owned by a view.
P WorksetId WorksetId Get Id of the Workset which owns the element.