API | ITcPlcOpenImportExport Signature HRESULT PlcOpenImport([in] BSTR bstrFile, [in, defaultvalue(0)] int options, [in, defaultvalue(L"")] BSTR bstrSelection, [in, defaultvalue(-1)] VARIANT_BOOL bSubTree); Parameter Return value Error codes DanglingAdapterException : Adapter not connected. ArgumentNullException("bstrFile") : bstrFile is null. ArgumentException : bstrFile is empty or the file is missing. PlcOpenXmlException : Selection cannot be set; conflict with errorOnConflict or empty content *(Interop mapping)*. 5.20.2 ITcPlcOpenImportExport2 | ITcPlcOpenImportExport2 Inherits from: IUnknown Enhanced PLCopen export with subtree control.
Methods 5.20.2.1 ITcPlcOpenImportExport2::PlcOpenExport2 | 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 TE1000 107 Version: 1.7.0 Name Type Description bstrFile BSTR [in] Source file (PLCopen XML). options int [in, defaultvalue(0)] Conflict handling; see PLCIMPORTOPTIONS. bstrSelection BSTR [in, defaultvalue("")] Item selection, separated by ;. bSubTree VARIANT BOOL _ [in, defaultvalue(-1)] VARIANT TRUE contains the folder _ structure.
Name Type Description (HRESULT) HRESULT S OK if successful, otherwise an error code. _ Method Description PlcOpenExport2 Exports selected items using subtree control. 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.