Request

Response

    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)
    
    parameterdescription
    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

    exceptioncondition
    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