Skip to main content

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​

NameTypeDescription
projectIProjectProject
forceOverwriteboolForcibly 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​

NameException ClassDescription
Invalid ArgumentExtensionArgumentExceptionWhen null is specified for project, or when the specified project has not determined a save path (for newly created projects)
Invalid OperationExtensionInvalidOperationExceptionWhen 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
UnsupportedExtensionNotSupportedExceptionWhen the current edition of the application is not supported