Skip to main content

IWorkspace.SaveProject method

Namespace: NextDesign.Desktop

Description

Saves the specified project. If no project is specified, the current project currently open in the application will be saved. Returns True if saved successfully. If you use this method in situations where you cannot get access to the file, you don't have enough free space, etc., the project will not be saved and this method will return False.

The save destination of the project will be the path that can be obtained with IProject.Path. Therefore, this method cannot be executed for a project that has never been saved after being newly created. When saving a new project, please use SaveProjectAs ().

argument

NameTypeDescription
projectIProjectProject

If null is specified, the current application currently open will be saved.
(If there is no current project, nothing is done and False is returned)
forceOverwriteboolForcibly overwrite or

If true is specified, the project will be forcibly saved even if the latest model file is not loaded.
The default value is false.

Return value

  • bool

Exception

NameException ClassDescription
Illegal operationExtensionInvalidOperationExceptionWhen the save destination is not fixed (Path is not specified) in the project to be saved
When the latest model file is not loaded

Annotation

When saving the specified project, the save format cannot be changed. If you want to save in another save format, use SaveProjectAs ().