IWorkspace.LoadModelUnits(IProject,IEnumerable<string>) method
Namespace: NextDesign.Desktop
Description
Loads the specified model unit in the specified project.
It will be ignored if the specified unit has already been loaded or is not managed by the specified project.
If the target project is the current project, a busy indicator will be displayed and the process will be executed. However, cancellation is not possible.
Note that calling this method will fail if the target project has not been saved. If the target project is the current project, a message dialog will be displayed on ND and additional loading will be interrupted, just as when executed from the project navigator. An exception will occur if the project is not the current project.
argument
Name | Type | Description |
---|---|---|
project | IProject | Project |
unitFilePaths | IEnumerable<string> | Unit file paths (absolute path) |
Return value
- void
Exception
Name | Exception class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If null is specified for project If null is specified for unitFilePaths |
Unauthorized operation | ExtensionInvalidOperationException | If project is not the current project and project has unsaved data |
Annotation
If called during a file-by-file difference comparison, there may be a discrepancy between whether or not there is a comparison, so you will need to perform a re-comparison.