Request

Response

    ElementDataModel.AddElementGeometry method

    Appends new, factory-created geometries to an element, leaving its existing geometries (and their unique identifiers) unchanged. Use UpdateElementGeometry to replace an existing geometry.

    public void AddElementGeometry(IElement element, List<IElementGeometry> geometryList)
    
    parameterdescription
    element The element to add geometry to.
    geometryList The new geometries to append.

    Exceptions

    exceptioncondition
    ArgumentNullException Thrown when element or geometryList is null.
    ArgumentException Thrown when a supplied geometry is already present in the exchange, or when element or a geometry entry is not an SDK-provided implementation.
    CyclicDesignReferenceException Thrown when attaching geometry would create a cyclic design reference.

    See Also