IProjectService.LoadModelUnits(IProject,IEnumerable<IModelUnit>) Method
Namespace: NextDesign.Core.Runtime
Description
Adds and loads the specified model unit in the specified project.
If the specified unit is already loaded, this method is ignored.
Also, if the specified unit is 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 |
units | IEnumerable<IModelUnit> | Target units |
Return value
- void
Exceptions
Name | Exception class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If project is specified as null If units is specified as null |
Invalid operation | ExtensionInvalidOperationException | If the project has not been saved If a closed project is specified as project |
Not supported | ExtensionNotSupportedException | If the current edition of the application is not supported |