API Help
Eplan.EplApi.HEServices Namespace / Synchronize Class / PartToSystem Method / PartToSystem(Project,ArrayList,StoreMode,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.
Store mode. 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.

In This Topic
    PartToSystem(Project,ArrayList,StoreMode,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 menu "Utilities \> Parts \> Current project --\> parts database" 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.
    storemode
    Store mode. 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.
    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