Eplan Platform API
Eplan.EplApi.HEServices Namespace / Synchronize Class / PartToSystem Method / PartToSystem(Project,ArrayList,Boolean) 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.
Specifies that not referenced articles are synchronized.

In This Topic
    PartToSystem(Project,ArrayList,Boolean) 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 ribbon "Master data \> Parts \> Synchronize" for selected parts.
    Syntax

    Parameters

    Parameter NameDescription
    oProjectProject for which the parts will be synchronized.
    lPartsList of parts (objects of type Eplan.EplApi.DataModel.Article or Eplan.EplApi.DataModel.ArticleReference) that will be synchronized.
    bUseNotReferencedArticlesSpecifies that not referenced articles are synchronized.
    Exceptions
    ExceptionDescription
    Thrown if NULL was passed as an argument.
    Thrown in case of invalid arguments, e.g. the project is not valid.
    Thrown if 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