Skip to main content

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

NameTypeDescription
projectIProjectProject
forceOverwriteboolWhether 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

NameException ClassDescription
Invalid ArgumentExtensionArgumentExceptionWhen project is specified as null or the specified project does not specify a save path (for a newly created project)
Invalid OperationExtensionInvalidOperationExceptionWhen 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
UnsupportedExtensionNotSupportedExceptionWhen 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().