Eplan Platform API
Eplan.EplApi.DataModel Namespace / ConnectionDefinitionPoint Class / AddArticleReference Method / AddArticleReference(ArticleReference,Boolean) Method
ArticleReference object is a prototype for ArticleReference added to ConnectionDefinitionPoint.
Some ArticleReferences might not be completly cleaned in the past. Setting parameter to true allows to clean ArticleReference position before inserting new one.

AddArticleReference(ArticleReference,Boolean) Method
Adds ArticleReference to the ConnectionDefinitionPoint.
Syntax
public ArticleReference AddArticleReference( 
   ArticleReference oArticle,
   bool bClean
)

Parameters

oArticle
ArticleReference object is a prototype for ArticleReference added to ConnectionDefinitionPoint.
bClean
Some ArticleReferences might not be completly cleaned in the past. Setting parameter to true allows to clean ArticleReference position before inserting new one.

Return Value

Article reference added to the ConnectionDefinitionPoint. Article reference passed as parameter is not changed.
Exceptions
ExceptionDescription
Thrown when the Article cannot be added
Thrown when article number is null.
Thrown when article variant is null.
Thrown when it was impossible to get valid property index.
See Also