IElementDataModel.UpdateElementGeometries method
Updates multiple geometries on an element in place, each matched by its unique identifier and preserving that identifier.
public IReadOnlyDictionary<string, bool> UpdateElementGeometries(IElement element,
IDictionary<string, IElementGeometry> geometriesByUniqueId)
| parameter | description |
|---|---|
| element | The element that owns the geometries. |
| geometriesByUniqueId | Map of geometry unique identifier to its replacement geometry. |
Return Value
A map of each supplied unique identifier to whether it was found and updated (unknown identifiers map to false).
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | Thrown when element or geometriesByUniqueId is null. |
| ArgumentException | Thrown when a supplied unique identifier is null or empty, when a replacement geometry is null, or when element or a replacement geometry is not an SDK-provided implementation. |
See Also
- interface IElement
- interface IElementGeometry
- interface IElementDataModel
- namespace Autodesk.DataExchange.Interface