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 |
Return value
|
Name |
Type |
Description |
|---|---|---|
|
(HRESULT) |
HRESULT |
|
Error codes
-
DanglingAdapterException: Adapter not connected. -
ArgumentNullException("bstrFile"):bstrFileis null. -
ArgumentException:bstrFileis empty, the file already exists, or the target folder is missing. -
XmlAutomationCollectionException: One or more selection paths not found *(Interop mapping)*.