Skip to main content

Method IWorkspace.OpenProject(string,bool,bool)

Namespace: NextDesign.Desktop

Description

Open the specified project.

argument

NameTypeDescription
projectPathstringProject path

You cannot specify null or an empty string.
isSetCurrentboolSet the loaded project as the current project?
If False is specified, the loaded project is not set as the current project.
The default is True.
excludeModelFilesboolOpen project without loading model files?
If True, open the project without loading model files.
The default is False.

Return value

Exceptions

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionIf null or an empty string is specified for projectPath
Invalid PathExtensionInvalidPathExceptionIf the specified path cannot be interpreted as a valid path string
Invalid file specificationExtensionInvalidFileExceptionIf the file extension of projectPath is not a project
If projectPath specifies a project path that is not supported by running NextDesign
File not foundExtensionFileFoundExceptionIf the file in projectPath is not found