IProjectService.LoadModelUnits(IProject,IEnumerable<string>) Method
Namespace: NextDesign.Core.Runtime
Description
Adds and loads the specified model units in the specified project.
If the specified units are already loaded, this method is ignored.
Also, if the specified units are not managed by the project, this method is ignored.
Note that calling this method will fail if the target project has not been saved.
Argument
Name | Type | Description |
---|---|---|
project | IProject | Target project |
unitFilePaths | IEnumerable<string> | Unit file paths (absolute paths) |
Return value
- void
Exceptions
Name | Exception class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If project is specified as null If unitFilePaths is specified as null |
Invalid operation | ExtensionInvalidOperationException | If the project has not been saved If a closed project is specified as project |
Unsupported | ExtensionNotSupportedException | If the current edition of the application is not compatible |