beckhoff TE1000 TwinCAT 3 — 5.45.1.2 ITcArchiveImportExport::ExportArchive2

API | ITcArchiveImportExport Interface versions 5.45.1 ITcArchiveImportExport | ITcArchiveImportExport Enables the import and export of archive files ( *.tszip / *.tnzip ) at the Tree Item level. On simple Tree Items, all methods return E_NOTIMPL . The interface is only available on nodes that contain archives – typically nested projects and their inner items. Methods 5.45.1.1 ITcArchiveImportExport::ExportArchive | ITcArchiveImportExport::ExportArchive Exports the Tree Item (including its relevant children) as an archive. For a nested project node, the corresponding Visual Studio solution is first saved, and the project is then packaged into a ZIP file. Not implemented on simple Tree Items.

Signature HRESULT ExportArchive(BSTR bstrFile, VARIANT vInfo); Parameter Return value Error codes E_NOTIMPL : not supported on simple Tree Items. TSM_E_ITEMDELETED : The referenced Tree Item is no longer valid. 5.45.1.2 ITcArchiveImportExport::ExportArchive2 | ITcArchiveImportExport::ExportArchive2 Like ExportArchive, but it exports only the selection of child items that is explicitly passed to it. Signature HRESULT ExportArchive2(BSTR bstrFile, ITcTreeItemCollection* pChilds, VARIANT vInfo); TE1000 158 Version: 1.7.0 Version Newly introduced Index ITcArchiveImportExp ort Importing and exporting archive files at the Tree Item level.

ITcArchiveImportExport Method Description ImportArchive Imports an archive under a Tree Item. ExportArchive Exports the entire Tree Item to an archive. ExportArchive2 Exports a selection of children to an archive. Name Type Description bstrFile BSTR [in] Target path of the archive file. vInfo VARIANT [in, optional] Additional export information (implementation- dependent). Name Type Description (HRESULT) HRESULT S OK if successful, S FALSE if the ZIP file failed to create, _ _ otherwise an error code.