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)
| parameter | description |
|---|---|
| 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
| exception | condition |
|---|---|
| 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
- interface IElement
- interface IElementGeometry
- class GeometryOutputOptions
- class ElementDataModel
- namespace Autodesk.DataExchange.DataModels