IProjectService.SaveProject Method
Namespace: NextDesign.Core.Runtime
Description
Saves the specified project.
Normally, this method throws an exception if the destination file has been overwritten since the specified project was loaded.
However, if the argument forceOverwrite is set to true, the project will be saved automatically without this check.
Argument
Name | Type | Description |
---|---|---|
project | IProject | Project |
forceOverwrite | bool | Whether to force an overwrite save If true is specified, the project will be saved forcibly even if the latest model file is not loaded. The default value is false. |
Return value
Exceptions
Name | Exception Class | Description |
---|---|---|
Invalid Argument | ExtensionArgumentException | When project is specified as null or the specified project does not specify a save path (for a newly created project) |
Invalid Operation | ExtensionInvalidOperationException | When forceOverwrite is specified as false and the latest model file has not been loaded in the specified project When a closed project is specified as project |
Unsupported | ExtensionNotSupportedException | When the current edition of the application does not support this option |
Annotation
When saving the specified project, the save format cannot be changed.
To save in a different format, use SaveProjectAs().