Request

Response

    ElementDataModel class

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

    public class ElementDataModel : IElementDataModel
    

    Public Members

    namedescription
    static Create(…) Creates a new instance of the ElementDataModel class using the specified IClient instance. (2 methods)
    AllGeometryCounts { get; } Gets the count of different geometry types for all geometries in the exchange without downloading geometry files. This includes both element-specific geometries and model-level geometries attached to the root design asset. This property provides an efficient way to determine what types of geometries are available in the entire exchange before deciding whether to download them.
    DeletedElements { get; } Gets list of Deleted Elements present within this Data Exchange.
    Description { get; set; } Gets or sets the description for the exchange. This description will be included when syncing the data to the exchange.
    Elements { get; } Gets list of all Elements present within this Data Exchange.
    Parameters { get; } Gets all the parameters that have been assigned at the model level. These parameters do not apply to any specific element.
    RootAssetName { get; set; } Gets or sets the name of the root asset in the exchange data model.
    TopLevelElements { get; } Gets a list of the top level elements within this Data Exchange.
    AddElement(…) Adds an element to the model. Use Classify and DefineType/SetType after adding the element to assign classification and type. (2 methods)
    AddParameterAsync(…) Add parameter at model level.
    AddTypeParameterAsync(…)
    Classify(…)
    CreateTypeParameterAsync(…) Create parameter for specified type using input parameter definition.
    DefineType(…)
    DeleteElementByUniqueId(…) Deletes an element identified by its system-generated unique persistent Id. Unlike String), this method unambiguously identifies the element to delete even when multiple elements share the same Id. This will also delete any hierarchical structure within the element. However, shared model structure will not be removed.
    DeleteElementsBySourceId(…) Deletes every element that shares the given SourceId, returning how many were deleted. Use this when a SourceId may be shared by multiple elements (SourceIds are not guaranteed unique). Each deletion also removes the element's non-shared hierarchical structure; shared model structure is not removed.
    DeleteParameter(…) Deletes a parameter that has been assigned at the model level. This parameter is not specific to any element.
    DeleteTypeParameter(…) Delete type parameter from specified type for given schemaId.
    FindTypeParameter(…) Given Type, parameterName and its value, this method returns a matching parameter if it is already present in the asset, null otherwise.
    GetAllElements(…) Get all elements of revisions.
    GetCreatedElements(…) Get list of elements created on new revisions.
    GetDeletedElements(…) Get list of elements deleted on new revisions.
    GetDesign(…) Returns a read only reference to the Design associated with the element.
    GetDesignByUniqueId(…) Returns a design by its system-generated unique persistent Id (see UniqueId). Unlike GetDesignsBySourceId, this lookup is unambiguous. Mirrors GetElementByUniqueId for the design axis.
    GetDesignInstances(…) Returns all the elements that have instantiated this design.
    GetDesignInstancesByName(…) Returns all the elements that have instantiated this design by design name.
    GetDesignInstancesBySourceId(…) Returns all the elements that have instantiated this design, keyed by the design's SourceId.
    GetDesignRefs() Enumerate the DESIGN REFERENCES in this model — designs authored as reusable definitions.
    GetDesignsBySourceId(…) Returns all designs whose SourceId matches sourceId.
    GetElementByUniqueId(…) Returns an IElement by its system-generated unique persistent Id (see UniqueId). Unlike GetElementsBySourceId, this lookup is unambiguous even when multiple elements share a SourceId.
    GetElementGeometriesAsync(…)
    GetElementGeometryCounts(…)
    GetElementsBySourceId(…) Returns all non-deleted IElements whose SourceId matches the specified value. Use this method when the same SourceId may be shared by multiple elements.
    GetGeometriesAsync(…) Gets geometries that have been assigned at the model level and output options.
    GetModifiedElements(…) Get list of elements modified on new revisions.
    GetOrCreateDesignRef(…)
    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.
    InstantiateDesign(…)
    InstantiateDesignBySourceId(…)
    SetElementGeometry(…)
    SetGeometries(…)
    SetType(…) (2 methods)
    SetViewableWorldCoordinates(…) Sets the world coordinates for the viewable.
    UpdateParameter(…) Updates a parameter that has been assigned at the model level. This parameter is not specific to any element.
    UpdateTypeParameter(…) Update existing type parameter with specified value on specified type.
    static CreateFileGeometry(…) It will create a instance of FileGeometry with the specified file path and format. (2 methods)
    static CreateMeshGeometry(…) Creates an instance of MeshGeometry.
    static CreatePrimitiveGeometry(…) It will create an instance of PrimitiveGeometry with units. 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