IWorkspace.SaveProjectAs method
Namespace: NextDesign.Desktop
Description
Saves the specified project in the specified path.
If no project is specified, the current project currently open in the application will be saved.
Returns True if the save was successful.
This call silently overwrites the file if it already exists at the specified path.
If the save is successful, the target project Path will be replaced with the new path.
argument
Name | Type | Description |
---|---|---|
projectPath | string | New project path Cannot be null or an empty string. |
project | IProject | Project If null is specified, saves the current project that the application is currently open. (does nothing and returns False if there is no current project) |
Return value
- bool
Exceptions
Name | Exception Class | Description |
---|---|---|
Invalid Argument | ExtensionArgumentException | If null or an empty string is specified for projectPath If a project path that is not supported by the running NextDesign is specified for projectPath |
Invalid Path | ExtensionInvalidPathException | If the specified path cannot be interpreted as a valid path string |
Illegal operation | ExtensionInvalidOperationException | If there is a model whose parent model is not loaded due to partial loading |
Annotations
If this function is called during file-by-file difference comparison, comparison may not be completed, so it is necessary to perform comparison again.