Skip to main content

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

NameTypeDescription
projectIProjectTarget project
unitFilePathsIEnumerable<string>Unit file paths (absolute paths)

Return value

  • void

Exceptions

NameException classDescription
Invalid argumentExtensionArgumentExceptionIf project is specified as null
If unitFilePaths is specified as null
Invalid operationExtensionInvalidOperationExceptionIf the project has not been saved
If a closed project is specified as project
UnsupportedExtensionNotSupportedExceptionIf the current edition of the application is not compatible