Skip to main content

IWorkspace.OpenProject method

Namespace: NextDesign.Desktop

Description

Opens the specified project.

argument

NameTypeDescription
projectPathstringProject path

Null or empty string cannot be specified.
isSetCurrentboolIf you set the loaded project as the current project or
False is specified, the loaded project will not be set as the current project.
The default value is True.
excludeModelFilesboolOpen the project without loading the model file or if True is specified, open the project without loading the model file.
The default value is False.

Return value

Exception

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionWhen null or empty string is specified for projectPath
Invalid pathExtensionInvalidPathExceptionIf the specified path cannot be interpreted as a valid path string
Invalid file specificationExtensionInvalidFileExceptionWhen the file extension of projectPath is not a project
When a project path of a save format that is not supported by NextDesign being executed is specified in projectPath
File not foundExtensionFileFoundExceptionIf the file in projectPath is not found