Skip to main content

IProjectUnitManager.ImportModelUnits(IEnumerable<string>) Method

Namespace: NextDesign.Core

Description

Imports the specified file as a model unit.
If the unit file does not exist directly under the Models folder, it copies the file to the Models folder and imports it.
If the unit file exists directly under the Models folder, it imports that file.

Argument

NameTypeDescription
unitFilePathsIEnumerable<string>Enumerates absolute paths of unit files

Return value

  • void

Exception

NameException ClassDescription
Invalid ArgumentExtensionArgumentExceptionWhen the extension of the specified unit file path is not supported
Invalid OperationExtensionInvalidOperationExceptionWhen an invalid operation request is made
- The latest model file has not been loaded
- You do not have editing permissions for the project
- The project has never been saved