Request

Response

    ElementDataModel class

    Provides a data-model friendly wrapper over the exchange data for easier access to the data.

    public class ElementDataModel
    

    Public Members

    namedescription
    static Create(…) if exchangeData is null create new instance of ExchangeData and sets the root asset if exchangeData is not null, assigns the exchangeData to _exchangeData Finally Create instance of ElementDataModel by passing _exchangeData and client as parameters to constructor
    DeletedElements { get; } List of Deleted Elements present within this Data Exchange
    Elements { get; } List of all Elements present within this Data Exchange.
    ExchangeData { get; } Returns the underlying ExchangeData Object
    TopLevelElements { get; } Gets a list of the top level elements within this Data Exchange.
    AddElement(…) Add Element (2 methods)
    CreateTypeParameterAsync(…) Create parameter for specified type using input parameter definition.
    DeleteElement(…) Deletes an element given its element id. This will also delete any hierarchical structure within the element. However, shared model structure will not be removed.
    DeleteTypeParameter(…) Delete type parameter from specified type for given schemaId. (2 methods)
    GetAllElements(…) Get all elements of revisions
    GetCreatedElements(…) Get list of elements created on new revisions
    GetDeletedElements(…) Get list of elements deleted on new revisions
    GetElementById(…) Returns an Element by its Element Id.
    GetElementGeometriesByElementsAsync(…) Given a list of elements, returns a dictionary of elements and corresponding enumerable list of ElementGeometry This only processes the Elements passed in and not their child elements. It is recommended to flatten the Element list before calling this method if the geometry for child elements is also required.
    GetModifiedElements(…) Get list of elements modified on new revisions
    GetTypeParameters(…) Returns a dictionary of Types and their Parameters. If specified Type is not present in exchange data, then no parameters will be returned for it.
    GetViewableWorldCoordinates() Get the viewable world coordinates.
    SetElementGeometryByElement(…) Set element geometry by element
    SetViewableWorldCoordinates(…) Sets the world coordinates for the viewable.
    UpdateElement(…) Update an existing element with properties. This method will only process changes on the TransformationMatrix and Name. All other properties will remain unchanged.
    UpdateTypeParameter(…) Update existing type parameter with specified value on specified type. (2 methods)
    static CreateGeometry(…) It will create a instance of BRepGeometry units passed in the GeometryProperties object parameter.
    static CreateMeshGeometry(…) It will create a instance of MeshGeometry with default units using geometry entities.
    static CreatePrimitiveGeometry(…) It will create an instance of ElementGeometry with units passed in the GeometryProperties object parameter. For collection geometry you could use class from Autodesk.GeometryUtilities.SDK.Primitive.Geometry and Autodesk.GeometryUtilities.SDK.Primitive.Design. More collection classes will be added soon. For a now single point and Curve set is supported.

    Protected Members

    namedescription
    GetService<T>()

    See Also