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, the file is copied directly under the Models folder and imported.
If the unit file exists directly under the Models folder, the file is imported.
Arguments
Name | Type | Description |
---|---|---|
unitFilePaths | IEnumerable<string> | Enumeration of absolute paths of unit files |
Return value
- void
Exceptions
Name | Exception class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If the project save format and the extension of the specified unit file path do not match |
Invalid operation | ExtensionInvalidOperationException | If an invalid operation is requested - The latest model file has not been loaded - You do not have permission to edit the project - The project has never been saved |