IProjectService.SaveProject Method
Namespace: NextDesign.Core.Runtime
Description
Saves the specified project.
Normally, this method throws an exception if the project's save location has been overwritten since the specified project was loaded.
However, if the argument forceOverwrite is set to true, this check is skipped and the project is forcibly saved.
Arguments
| Name | Type | Description |
|---|---|---|
| project | IProject | Project |
| forceOverwrite | bool | Forcibly overwrite or If true is specified, the project is forcibly saved even if the latest model file has not been loaded. The default value is false. |
Return Value
Exceptions
| Name | Exception Class | Description |
|---|---|---|
| Invalid Argument | ExtensionArgumentException | When null is specified for project, or when the specified project has not determined a save path (for newly created projects) |
| Invalid Operation | ExtensionInvalidOperationException | When forceOverwrite is set to false, and the latest model file has not been loaded in the specified project When a closed project is specified for project |
| Unsupported | ExtensionNotSupportedException | When the current edition of the application is not supported |