String Project.Unarchive(String archivePath, String projectPath, Boolean overwrite)
For Mechanical opened independently, without Workbench. Unarchive a Mechanical project and open it.
If projectPath is provided, the project will be unarchived to this given projectPath.
If projectPath is not provided or is null or empty, the project will be unarchived to a temporary folder.
Returns a path to the unarchived project database file.
Examples
The following command Unarchives the project located at archivePath and saves the project to projectPath with overwrite enabled
DataModel.Project.Unarchive(r"C:\project.mechpz", r"C:\project.mechdb", True)
Parameters
-
archivePath
Type: String
File path of the archive file (*.mechpz) to open.
-
projectPath
Type: String
Optional - File path where the project will be unarchived and saved.
-
overwrite
Type: Boolean
Optional - Overwrite an existing project located at projectPath. The default is False.
Return Value
Type: String