IWorkspace.SaveProjectAs method
Namespace: NextDesign.Desktop
Description
Saves the specified project at the specified path. If no project is specified, the current project currently open in the application will be saved. Returns True if saved successfully.
This call will overwrite and save without warning if the file already exists in the specified path. If the save is successful, the Path of the target project will be replaced with the new path.
argument
Name | Type | Description |
---|---|---|
projectPath | string | New project path Null or empty string cannot be specified. |
project | IProject | Project If null is specified, the current application currently open will be saved. (If there is no current project, nothing is done and False is returned) |
Return value
- bool
Exception
Name | Exception Class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | When null or empty string is specified for projectPath When a project path of a saved format that is not supported by NextDesign being executed is specified for projectPath |
Invalid path | ExtensionInvalidPathException | If the specified path cannot be interpreted as a valid path string |
Illegal operation | ExtensionInvalidOperationException | When there is a model whose parent model is not loaded due to partial loading |