beckhoff TE1000 TwinCAT 3 — 5.45.1.3 ITcArchiveImportExport::ImportArchive

API | ITcArchiveImportExport 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.3 ITcArchiveImportExport::ImportArchive | ITcArchiveImportExport::ImportArchive Imports an archive under the current Tree Item. The import mode ( TCARCHIVE_IMPORTMODE [ } 164] ) determines how the system handles conflicts. bstrBefore allows insertion before a named sibling item. Not implemented on regular Tree Items; on nested project nodes, the call is passed on to the inner project.

Signature HRESULT ImportArchive(BSTR bstrFile, TCARCHIVE_IMPORTMODE mode, BSTR bstrBefore, VARIANT vInfo, ITcT reeItemCollection** pipItem); Parameter Return value Error codes E_NOTIMPL : not supported on simple Tree Items. TSM_E_ITEMDELETED : The referenced Tree Item is no longer valid. TE1000 159 Version: 1.7.0 Name Type Description bstrFile BSTR [in] Target path of the archive file. pChilds ITcTreeItemCollection [} 91]* [in, defaultvalue(NULL)] Selection of the children to be exported (see ITcTreeItemCollection [} 91]). NULL exports everything. vInfo VARIANT [in, optional] Additional export information. Name Type Description (HRESULT) HRESULT S OK if successful, otherwise an error code.

_ Name Type Description bstrFile BSTR [in] Full file path of the archive to be imported. mode TCARCHIVE IMPORTMOD _ E [} 164] [in] Import mode (conflict/replacement behavior). bstrBefore BSTR [in, defaultvalue(L"")] Name of a sibling item before which the insertion should occur. If empty, the item is appended at the end. vInfo VARIANT [in, optional] Additional import information (implementation- dependent). Name Type Description pipItem ITcTreeItemCollection [} 91]** [out, retval] Collection of the newly imported Tree Items. (HRESULT) HRESULT S OK if successful, otherwise an error code. _