API Help
Eplan.EplApi.HEServices Namespace / Synchronize Class / Parts Method / Parts(String) Method
Full link file name of the project for which the parts will be synchronized.

Parts(String) Method
Synchronizes the parts in the project to the parts master database. Updates parts database. When there is a reference to a part in a project, and the part is not in the project, then after invoking oSynchronize.Parts(oProject), this part becomes stored in the project (Project.Articles increases by 1), in other case parts in the project are not changed. This method corresponds with the EPLAN functionality in the menu "Utilities \> Parts \> Current project --\> parts database".
Syntax
public void Parts( 
   string strFullLinkFileName
)

Parameters

strFullLinkFileName
Full link file name of the project for which the parts 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
The specified project may be open in EPLAN or not. If the project is not opened from the beginning, it will be opened for the synchronization process and will be closed subsequently. 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