IProjectUnitManager.ImportModelUnits(IEnumerable<string>,string) Method
Namespace: NextDesign.Core
Description
Imports the specified file as a model unit.
If the specified destination folder does not exist, it will create the folder up to that location.
If the unit file does not exist directly under the specified destination folder, it will copy the file to that folder and import it.
If the unit file exists directly under the specified destination folder, it will import that file.
Argument
| Name | Type | Description |
|---|---|---|
| unitFilePaths | IEnumerable<string> | Enumeration of absolute paths of unit files |
| folderPath | string | Relative path of the import destination folder (relative path from the Models folder) |
Return value
- void
Exception
| Name | Exception Class | Description |
|---|---|---|
| Invalid Argument | ExtensionArgumentException | If the extension of the specified unit file path is not supported |
| Invalid Operation | ExtensionInvalidOperationException | If an invalid operation request is made - The latest model file has not been loaded - You do not have editing permission for the project - The project has never been saved |