Skip to main content

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

NameTypeDescription
projectIProjectProject
unitFilePathsIEnumerable<string>Unit file paths (absolute path)

Return value

  • void

Exception

NameException classDescription
Invalid argumentExtensionArgumentExceptionIf null is specified for project
If null is specified for unitFilePaths
Unauthorized operationExtensionInvalidOperationExceptionIf 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.