Request

Response

    IElementDataModel.InstantiateDesignBySourceId method

    Resolve the design with stable sourceId and instantiate it into instanceElement. Idempotent per element.

    public void InstantiateDesignBySourceId(string sourceId, IElement instanceElement)
    
    parameterdescription
    sourceId The design SourceId of an existing design.
    instanceElement The element to instantiate the design into.

    Exceptions

    exceptioncondition
    ArgumentNullException Thrown when sourceId is null or empty, or when instanceElement is null.
    InvalidOperationException Thrown when no design with the specified SourceId exists.
    ArgumentException Thrown when instanceElement is not an SDK-provided IElement implementation.
    CyclicDesignReferenceException Thrown when instantiating the design would create a cyclic design reference.

    See Also