Eplan Platform API
Eplan.EplApi.DataModel Namespace / Connection Class / AddArticleReference Method / AddArticleReference(String) Method
number of added article

In This Topic
    AddArticleReference(String) Method
    In This Topic
    Adds a new ArticleReference to the Connection. Returns the added ArticleReference.
    Syntax
    public virtual ArticleReference AddArticleReference( 
       string strArticleNR
    )
    public:
    virtual ArticleReference^ AddArticleReference( 
       String^ strArticleNR
    ) 

    Parameters

    strArticleNR
    number of added article

    Return Value

    ArticleReference added to the Connection
    Exceptions
    ExceptionDescription
    Thrown when the Article cannot be added
    Thrown when this Connection cannot have Articles
    Thrown when strArticleName is null.
    Thrown if IsFixedDevice is true.
    Remarks
    Stores the article from System article database in the Project. Adds one article with variant 1 and count 1. Adds the article to the Connection object only if the part already exists in the system or project database.
    See Also