Request

Response

    ElementDataModel.GetElementGeometriesAsync method

    Gets the geometries for the supplied elements.

    public Task<Dictionary<IElement, IEnumerable<IElementGeometry>>> GetElementGeometriesAsync(
        IEnumerable<IElement> elements, CancellationToken cancellationToken = default, 
        GeometryOutputOptions geometryOutputOptions = null)
    
    parameterdescription
    elements The elements whose geometries to retrieve.
    cancellationToken Cancellation token.
    geometryOutputOptions Options to control geometry output formats.

    Return Value

    A map of each element to its geometries.

    Exceptions

    exceptioncondition
    ArgumentNullException Thrown when elements is null or contains a null entry.
    ArgumentException Thrown when an entry is not an SDK-provided IElement implementation.
    GeometryDownloadException Thrown when geometry download or conversion fails.

    See Also