API Help
Eplan.EplApi.HEServices Namespace / PlcService Class / ExportData Method / ExportData(Project,String,String,Boolean) Method
Project of which the PLC data will be exported.
A PLC configuration project. If you pass an empty string, all PLC data contained in the P8 project will be exported.
Full name of the output file without an extension. The filename extension is added automatically.
If the output file already exists, this parameter specifies whether it should be overwritten.

In This Topic
    ExportData(Project,String,String,Boolean) Method
    In This Topic
    Exports PLC data. This method may be used to export PLC data only in the PLC standard exchange format (.pbf files) using the PlcDcXMLExchangerUniversal converter. In order to export PLC data using specific PLC data converter, use the overloaded ExportData method together with the GetAvailableConverters method.
    Syntax

    Parameters

    oProject
    Project of which the PLC data will be exported.
    strConfigurationProject
    A PLC configuration project. If you pass an empty string, all PLC data contained in the P8 project will be exported.
    strOutputFileName
    Full name of the output file without an extension. The filename extension is added automatically.
    bOverwrite
    If the output file already exists, this parameter specifies whether it should be overwritten.
    Exceptions
    ExceptionDescription
    Thrown in case of missing parameters.
    Thrown in case of invalid arguments, e.g. the given Project does not exist or isn't valid.
    \Internal interface for exporting PLC data could not be created.
    An error occurred during the export.
    Remarks
    If the given directory in the full file name does not exist, it will be created.
    See Also