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
Name | Type | Description |
---|---|---|
projectPath | string | Project file path |
excludeModelUnits | bool | Whether 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
Name | Exception Class | Description |
---|---|---|
Invalid Argument | ExtensionArgumentException | If 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 Found | FileNotFoundException | If the file specified in projectPath cannot be found. |