IElementDataModel.UpdateElementGeometry method
Updates a single geometry on an element in place, matched by its unique identifier and preserving that identifier.
public bool UpdateElementGeometry(IElement element, string geometryUniqueId,
IElementGeometry newGeometry)
| parameter | description |
|---|---|
| element | The element that owns the geometry. |
| geometryUniqueId | The unique identifier of the geometry to update (see UniqueId). |
| newGeometry | The replacement geometry. |
Return Value
True if the geometry was found and updated, otherwise false.
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | Thrown when element or newGeometry is null. |
| ArgumentException | Thrown when geometryUniqueId is null or empty, or when element or newGeometry is not an SDK-provided implementation. |
See Also
- interface IElement
- interface IElementGeometry
- interface IElementDataModel
- namespace Autodesk.DataExchange.Interface