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.

PartToSystem(Project,ArrayList,Boolean) Method
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

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.
bUseNotReferencedArticles
Specifies 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.
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