API Help
Eplan.EplApi.MasterData Namespace / MDPartsDatabase Class / UpdatePartsFromDataPortal Method
Collection of parts to update. Parts needs to be from the current parts database set in parts management.

UpdatePartsFromDataPortal Method
Method checks if there is newer version of part in EPLAN Data Portal. If newer version of part is found then update is performed.
Syntax
public string[] UpdatePartsFromDataPortal( 
   ICollection<MDPart> colPartsToUpdate
)

Parameters

colPartsToUpdate
Collection of parts to update. Parts needs to be from the current parts database set in parts management.

Return Value

Array of updated part numbers.
Exceptions
ExceptionDescription
If colPartsToUpdate is NULL.
If collection colPartsToUpdate is empty.
If one of part from colPartsToUpdate is not from the current parts database set in parts management.
If this 'MDPartsDatabase' object is different than parts database set in parts management.
The internal interface necessary for parts update could not be created.
There was a problem with connection to EPLAN Data Portal.
Cretedntials for EPLAN Data Portal are invalid.
There was a problem with parts update.
Remarks
Operation of update is performed on the current parts database set in parts management. Method might be time consuming.
See Also