API Help
Eplan.EplApi.HEServices Namespace / Synchronize Class / Parts Method / Parts(Project,StoreMode,Boolean) Method
Project for which the parts will be synchronized.
Store mode determines, whether parts, which are already existing in the parts database, should be modified. The enumeration Synchronize.StoreMode defines the supported values. If an invalid value is set, the value AppendNew = 0 will be used. Default value is StoreMode::AppendNew.
Specifies that not referenced articles are synchronized. Default value is true

Parts(Project,StoreMode,Boolean) Method
Synchronizes the parts in the project to the parts master database. Updates parts database. This method corresponds with the EPLAN functionality in the menu "Utilities \> Parts \> Current project --\> parts database". Additionally the user can specify, whether parts, which are already existing in the parts database, should be modified.
Syntax

Parameters

pProject
Project for which the parts will be synchronized.
storemode
Store mode determines, whether parts, which are already existing in the parts database, should be modified. The enumeration Synchronize.StoreMode defines the supported values. If an invalid value is set, the value AppendNew = 0 will be used. Default value is StoreMode::AppendNew.
bUseNotReferencedArticles
Specifies that not referenced articles are synchronized. Default value is true
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
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