ElementDataModel.GetElementGeometryCounts method
Gets the count of different geometry types for the specified elements without downloading geometry files. This method provides an efficient way to determine what types of geometries are available for a set of elements before deciding whether to download them.
public Dictionary<GeometryFilters, long> GetElementGeometryCounts(IEnumerable<IElement> elements)
| parameter | description |
|---|---|
| elements | The elements to count geometries for. |
Return Value
A dictionary containing geometry filter types and their counts.
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. |
See Also
- enum GeometryFilters
- interface IElement
- class ElementDataModel
- namespace Autodesk.DataExchange.DataModels