Skip to main content

IProjectService.OpenProject Method

Namespace: NextDesign.Core.Runtime

Description

Opens the project at the specified path.

Close the project opened with this method with CloseProject(IProject) when it is no longer needed, regardless of whether you save it or not.
Failing to close the project will result in a memory leak.

Argument

NameTypeDescription
projectPathstringProject file path
excludeModelUnitsboolWhether to load model units (optional). If true is specified, split model units will not be loaded. However, their profiles will be loaded. If omitted, the default value is false (loads model units).

Return value

Exceptions

NameException ClassDescription
Invalid ArgumentExtensionArgumentExceptionIf projectPath is null or an empty string.
If projectPath specifies a project file path in a format not supported by the running Core.Runtime.
File Not FoundFileNotFoundExceptionIf the file specified in projectPath cannot be found.