ITcPlcOpenImportExport2::PlcOpenExport2

Like PlcOpenExport, but bSubTree controls whether the selection is interpreted as entire subtrees (true) or as individual elements (false).

Signature

HRESULT PlcOpenExport2([in] BSTR bstrFile, [in] BSTR bstrSelection, [in] VARIANT_BOOL bSubTree);

Parameter

Name

Type

Description

bstrFile

BSTR

[in] Target file of the export.

bstrSelection

BSTR

[in] Item selection, separated by ; (project-specific).

bSubTree

VARIANT_BOOL

[in] VARIANT_TRUE = entire subtrees, VARIANT_FALSE = only the specified individual elements.

Return value

Name

Type

Description

(HRESULT)

HRESULT

S_OK if successful, otherwise an error code.

Error codes