Request

Response

    Element class

    Provides a Revit Element wrapper over an InstanceAsset object.

    public class Element : IElement
    

    Public Members

    namedescription
    Attributes { get; } Gets a read-only dictionary of attributes associated with this element. These are system-level attributes that are not displayed in Forma viewer or PowerBI by default.
    Category { get; } Gets returns the Revit Category for this element.
    Classifications { get; } Gets the leaf classification node(s) attached to this element. Walk up via Parent to reconstruct the hierarchy (D-18). Empty if unclassified.
    Design { get; } Returns a read only reference to the Design associated with the element.
    DisplayLengthUnit { get; set; }
    Family { get; } Gets returns the Revit Family for this element, if it exits. Returns Empty if a Revit family does not exist for this element.
    HasGeometry { get; } Gets a value indicating whether specifies if the element hold geometry. If false, this element's child elements (if any) may still contain geometry.
    InstanceParameters { get; } List of Revit Instance Parameters for this element
    LengthUnit { get; set; }
    Name { get; set; } Gets or sets name.
    RenderStyle { get; }
    SourceId { get; set; }
    Transformation { get; set; }
    Type { get; } Gets returns the Revit Type for this element, if it exits. Returns Empty if a Revit Type does not exist for this element.
    TypeParameters { get; } Gets list of Revit Type Parameters for this element.
    UniqueId { get; } Gets the system-generated unique persistent Id for this element.
    AddAttributes(…) Adds multiple attributes to this element. These attributes are stored at the instance asset level and are not visible in Forma/PowerBI. They are available through the DX API for connector business logic. Note: If an attribute with the same name already exists on this element, its value is overwritten with the supplied value.
    CreateInstanceParameterAsync(…) Create instance parameter.
    CreateInstanceParametersAsync(…) Creates multiple instance parameters for this element.
    CreateReferenceNameOnlyParameters(…) Create reference name only parameters.
    CreateReferenceParameter(…) Create reference parameter.
    DeleteInstanceParameter(…) Delete instance parameter.
    DeleteInstanceParameters(…) Deletes multiple instance parameters from this element.
    FindInstanceParameter(…) Given parameterName, this method returns a matching parameter if it is already present in the asset, null otherwise.
    GetAttribute(…) Gets the value of a specific attribute by name.
    GetChildElements() Returns a list of child Elements for this element.
    GetElementModifications(…) Gets the element modifications and their types based on the newer revisions.
    UpdateInstanceParameter(…) Update existing instance parameter with specified value.
    UpdateInstanceParameters(…) Updates multiple instance parameters for this element.

    Protected Members

    namedescription
    GetService<T>()

    See Also