Skip to main content

IWorkspace.SaveProject Method

Namespace: NextDesign.Desktop

Description

Saves the specified project.
If no project is specified, it saves the currently open project in the application.
Returns True if the save was successful.
If this method is used in situations where file access permissions cannot be obtained, or there is insufficient free space, the project will not be saved, and this method will return False.

The project save location is the path obtained by IProject.Path.
Therefore, this method cannot be executed on a project that has not been saved since its creation.
When saving a new project, please use SaveProjectAs().

Argument

NameTypeDescription
projectIProjectProject

If null is specified, the currently open project of the application will be saved.
(If there is no current project, nothing will happen and it will return False)
forceOverwriteboolForce overwrite save or

If true is specified, the project will be forced to save even if the latest model file has not been loaded.
The default value is false.

Return value

  • bool

Exception

NameException ClassDescription
Invalid OperationExtensionInvalidOperationExceptionWhen the save location is not determined for the project to be saved (Path is not specified)
When the latest model file has not been loaded