Skip to main content

IWorkspace.SaveProjectAs method

Namespace: NextDesign.Desktop

Description

Saves the specified project in the specified path.
If no project is specified, the current project currently open in the application will be saved.
Returns True if the save was successful.

This call silently overwrites the file if it already exists at the specified path.
If the save is successful, the target project Path will be replaced with the new path.

argument

NameTypeDescription
projectPathstringNew project path

Cannot be null or an empty string.
projectIProjectProject

If null is specified, saves the current project that the application is currently open.
(does nothing and returns False if there is no current project)

Return value

  • bool

Exceptions

NameException ClassDescription
Invalid ArgumentExtensionArgumentExceptionIf null or an empty string is specified for projectPath
If a project path that is not supported by the running NextDesign is specified for projectPath
Invalid PathExtensionInvalidPathExceptionIf the specified path cannot be interpreted as a valid path string
Illegal operationExtensionInvalidOperationExceptionIf there is a model whose parent model is not loaded due to partial loading

Annotations

If this function is called during file-by-file difference comparison, comparison may not be completed, so it is necessary to perform comparison again.