API | ITcArchiveImportExport 5.44.1.1 ITcArchivePersist::LoadFromArchive | ITcArchivePersist::LoadFromArchive Loads a solution from a ZIP archive previously created using SaveAsArchive and extracts it to the specified solution folder. Signature HRESULT LoadFromArchive(BSTR bstrPath, BSTR solutionFolder); Parameter Return value 5.44.1.2 ITcArchivePersist::SaveAsArchive | ITcArchivePersist::SaveAsArchive Saves the currently open Visual Studio solution, including all TwinCAT projects, to a ZIP file.
Signature HRESULT SaveAsArchive(BSTR bstrPath); Parameter Return value 5.45 ITcArchiveImportExport | 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. Chain of inheritance ITcArchiveImportExport TE1000 157 Version: 1.7.0 Method Description LoadFromArchive Loads a solution from a ZIP archive. Name Type Description bstrPath BSTR [in] Path to the ZIP archive to be opened.
solutionFolder BSTR [in] Target folder where the solution will be extracted and opened. Name Type Description (HRESULT) HRESULT S OK if successful, otherwise an error code. _ Name Type Description bstrPath BSTR [in] Full file path of the target archive. Name Type Description (HRESULT) HRESULT S OK if successful, otherwise an error code. _