API Help
Eplan.EplApi.HEServices Namespace / Synchronize Class / PartToSystem Method / PartToSystem(Project,ArrayList) Method
Project for which the parts will be synchronized.
List of parts (objects of type Eplan.EplApi.DataModel.Article or Eplan.EplApi.DataModel.ArticleReference) that will be synchronized.

In This Topic
    PartToSystem(Project,ArrayList) Method
    In This Topic
    Synchronizes the specified parts into the parts master database. Updates parts database. Parts in the project are not changed. This method corresponds with the EPLAN functionality in the menu "Utilities \> Parts \> Current project --\> parts database" for selected parts.
    Syntax
    public void PartToSystem( 
       Project oProject,
       ArrayList lParts
    )
    public:
    void PartToSystem( 
       Project^ oProject,
       ArrayList^ lParts
    ) 

    Parameters

    oProject
    Project for which the parts will be synchronized.
    lParts
    List of parts (objects of type Eplan.EplApi.DataModel.Article or Eplan.EplApi.DataModel.ArticleReference) that will be synchronized.
    Exceptions
    ExceptionDescription
    Thrown if null was passed as an argument.
    Thrown in case of invalid arguments, e.g. the project is not valid.
    The synchronization finished with errors.
    Thrown in case of database write protection.
    Remarks
    Method calls PartToSystem(oProject, lParts, StoreMode::AppendNew, true) internally. In order to have an article synchronized, it should exist as an entry in the project's parts or it should be referenced (i.e. exist as an ArticleReference).
    See Also