Request

Response

    Element class

    Represents an element in an exchange, exposing its classification, parameters, and geometry.

    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 the category of the element.
    Classifications { get; } Gets the leaf classification node(s) attached to this element. Walk up via Parent to reconstruct the hierarchy. Empty if unclassified.
    Design { get; } Gets the design (shared geometry + model hierarchy) this element carries, or null when the element carries no design.
    DisplayLengthUnit { get; set; } Gets or Sets the DisplayLengthUnit of the elements.
    Family { get; } Gets the family of the element.
    HasGeometry { get; } Gets a value indicating whether geometry is present inside of the element.
    InstanceParameters { get; } Gets the instance parameters of the element.
    LengthUnit { get; set; } Gets or Sets the LengthUnit of the element.
    Name { get; set; } Gets the underlying system name. Case-insensitive when compared.
    RenderStyle { get; } Gets the render style attached directly to the Element, if any. Returns null when the Element has no instance level render-style override. See also RenderStyle for the geometry-level render style.
    SourceId { get; set; } Gets the connector-supplied source identifier, if any. Not guaranteed to be unique.
    Transformation { get; set; } Gets or Sets the Transformation that represents the current transformation of the element.
    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 the type parameters of the element.
    UniqueId { get; } Gets the system-generated unique persistent Id for this design.
    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. Overwriting existing keys is always permitted regardless of the current attribute count (including legacy elements that already exceed the cap). Attribute names are limited to 64 characters and values to 128 characters. Each element may have at most 15 attributes total when adding new keys.
    CreateInstanceParameterAsync(…) This method is used to create an instance parameter.
    CreateInstanceParametersAsync(…) Creates multiple instance parameters for this element.
    CreateReferenceNameOnlyParameters(…) Create reference name only parameters.
    CreateReferenceParameter(…) This method is used to create a reference parameter.
    DeleteInstanceParameter(…) This method is used to delete an instance parameter.
    DeleteInstanceParameters(…) Deletes multiple instance parameters from this element.
    override Equals(…)
    FindInstanceParameter(…) Given parameterName, this method returns a matching instance parameter if it is already present in the element, null otherwise.
    GetAttribute(…) Gets the value of a specific attribute by name.
    GetChildElements() This method is used to get child elements.
    GetElementModifications(…) Gets the element modifications and their types based on the newer revisions.
    override GetHashCode()
    UpdateInstanceParameter(…) This method is used to update an instance parameter.
    UpdateInstanceParameters(…) Updates multiple instance parameters for this element.

    Protected Members

    namedescription
    GetService<T>()

    See Also