Eplan Platform API
Eplan.EplApi.MasterData Namespace / MDPartsDatabase Class / ExportPartsDatabaseItems Method / ExportPartsDatabaseItems(String,DataFormat,IEnumerable<MDPartsDatabaseItem>) Method
Full output file name. This parameter must not be NULL and must not be an empty string ("").
Format type of export (XML or EDZ).
List of parts (and other parts management items) to be exported. This parameter must not be NULL and must not be an empty list.

In This Topic
    ExportPartsDatabaseItems(String,DataFormat,IEnumerable<MDPartsDatabaseItem>) Method
    In This Topic
    Exports specified parts and other specified parts management items such as addresses, constructions, terminals, accessory lists and accessory placements from the system's parts database.
    Syntax

    Parameters

    strFilePath
    Full output file name. This parameter must not be NULL and must not be an empty string ("").
    dataFormat
    Format type of export (XML or EDZ).
    databaseItems
    List of parts (and other parts management items) to be exported. This parameter must not be NULL and must not be an empty list.
    Exceptions
    ExceptionDescription
    Thrown if the strFilePath parameter or if the databaseItems parameter is NULL.

    Thrown in the following cases:

    1.) The strFilePath parameter is an empty string ("").

    2.) The directory specified in the strFilePath parameter does not exist.

    3.) The databaseItems parameter is an empty list.

    Remarks

    This method only exports the parts (and other parts management items) sepcified in the databaseItems parameter.

    To export all parts, use the ExportParts(String,DataFormat) method.

    To export all parts and all other parts management items, use the ExportPartsDatabaseItems(String,DataFormat,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean) method.

    See Also