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
| Name | Type | Description |
|---|---|---|
| unitFilePaths | IEnumerable<string> | Enumerates absolute paths of unit files |
Return value
- void
Exception
| Name | Exception Class | Description |
|---|---|---|
| Invalid Argument | ExtensionArgumentException | When the extension of the specified unit file path is not supported |
| Invalid Operation | ExtensionInvalidOperationException | When 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 |