Request

Response

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

    exceptioncondition
    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