API Help
Eplan.EplApi.DataModel.Planning Namespace / PlanningSegment Class / AddArticleReference Method / AddArticleReference(String) Method
number of added article

In This Topic
    AddArticleReference(String) Method
    In This Topic
    Adds a new Eplan.EplApi.DataModel.ArticleReference to the PlanningSegment. Returns the added Eplan.EplApi.DataModel.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 PlanningSegment
    Exceptions
    ExceptionDescription
    Thrown when the Article cannot be added
    Thrown when this PlanningSegment cannot have Articles
    Thrown when strArticleName is null.
    Thrown when there is too many article reference or IsArticleDataReadOnly is true.
    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
    See Also