ITcPlcOpenImportExport::PlcOpenExport

Exports the selected items (or, if bstrSelection is empty or null, the entire project) as PLCopen XML. The subtree is exported recursively.

Signature

HRESULT PlcOpenExport([in] BSTR bstrFile, [in] BSTR bstrSelection);

Parameter

Name

Type

Description

bstrFile

BSTR

[in] Target file of the export.

bstrSelection

BSTR

[in] Item selection, separated by ; (project-specific). Empty/null = entire project.

Return value

Name

Type

Description

(HRESULT)

HRESULT

S_OK if successful, otherwise an error code.

Error codes