Eplan Platform API
Eplan.EplApi.MasterData Namespace / MDPartsDatabase Class / ExportParts Method / ExportParts(String,DataFormat,IEnumerable<MDPart>) 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 to be exported. This parameter must not be NULL and must not be an empty list.

In This Topic
    ExportParts(String,DataFormat,IEnumerable<MDPart>) Method
    In This Topic
    Exports specified parts 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).
    parts
    List of parts to be exported. This parameter must not be NULL and must not be an empty list.
    Exceptions
    ExceptionDescription
    Thrown if the strFilePath parameter is NULL or if the parts 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 parts parameter is an empty list.

    Remarks

    This method only exports the parts sepcified in the parts 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