Skip to main content

IWorkspace.SaveProjectAs method

Namespace: NextDesign.Desktop

Description

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

This call will overwrite and save without warning if the file already exists in the specified path. If the save is successful, the Path of the target project will be replaced with the new path.

argument

NameTypeDescription
projectPathstringNew project path

Null or empty string cannot be specified.
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)

Return value

  • bool

Exception

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionWhen null or empty string is specified for projectPath
When a project path of a saved format that is not supported by NextDesign being executed is specified for projectPath
Invalid pathExtensionInvalidPathExceptionIf the specified path cannot be interpreted as a valid path string
Illegal operationExtensionInvalidOperationExceptionWhen there is a model whose parent model is not loaded due to partial loading