Eplan Platform API
Eplan.EplApi.DataModel Namespace / Article Class / AddModule Method / AddModule() Method

In This Topic
    AddModule() Method
    In This Topic
    Adds new module to article.
    Syntax
    public Article.Module AddModule()
    public:
    Article.Module^ AddModule(); 

    Return Value

    Object representing new module of article.
    Exceptions
    ExceptionDescription
    Thrown when type of article is incorrect.
    Remarks

    Newly created module is added to ArticleModules as last one. Modification of modules collection assigned to article is done only in project database. Changes are not visible in system parts database until synchronization of parts is done.

    It is not allowed to add modules to article which are not of type: Module. To check if part has correct type see property ARTICLE_PARTTYPE.

    See Also