Eplan Platform API
Eplan.EplApi.DataModel Namespace / Article Class / AddModule Method / AddModule(Module) Method
Existing module which will be copied. If null then new object is created.

In This Topic
    AddModule(Module) Method
    In This Topic
    Creates copy of existing module and adds it to article.
    Syntax

    Parameters

    pSourceModule
    Existing module which will be copied. If null then new object is created.

    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