Eplan Platform API
Eplan.EplApi.DataModel Namespace / Project Class / AddArticleReference Method / AddArticleReference(String,String,UInt32,Boolean) Method
article's number
article's variant number
count of articles to add
Some ArticleReferences might not be completly cleaned in the past. Setting parameter to true allows to clean ArticleReference position before inserting new one.

In This Topic
    AddArticleReference(String,String,UInt32,Boolean) Method
    In This Topic
    Adds a new ArticleReference to the Project. Returns the added ArticleReference.
    Syntax
    public virtual ArticleReference AddArticleReference( 
       string strArticleNR,
       string strVariantNR,
       uint nCount,
       bool bClean
    )
    public:
    virtual ArticleReference^ AddArticleReference( 
       String^ strArticleNR,
       String^ strVariantNR,
       uint nCount,
       bool bClean
    ) 

    Parameters

    Parameter NameDescription
    strArticleNRarticle's number
    strVariantNRarticle's variant number
    nCountcount of articles to add
    bCleanSome ArticleReferences might not be completly cleaned in the past. Setting parameter to true allows to clean ArticleReference position before inserting new one.

    Return Value

    ArticleReference added to the Project
    Exceptions
    ExceptionDescription
    Thrown when the ArticleReference cannot be added
    Thrown when strArticleNR is null.
    Thrown when strVariantNR is null.
    Thrown when it was impossible to get valid property index.
    Remarks
    This method adds the article to the Project only if the part already exists in the system database.
    See Also