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
Exception | Description |
ArgumentNullException | Thrown in case of
missing parameters. |
ArgumentException | Thrown in case of
invalid arguments,
e.g. the given
Project does not
exist or isn't
valid. |
ApplicationException | \Internal interface
for exporting PLC
data could not be
created. |
BaseException | An error occurred
during the export. |
See Also