IProjectUnitManager.AddExternalUnits method
Namespace: NextDesign.Core
Description
Registers the specified file as a model unit by reference.
argument
| Name | Type | Description |
|---|---|---|
| unitFilePaths | IEnumerable <string> | List of 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 does not correspond to the save format of the project |
| Illegal operation | ExtensionInvalidOperationException | In case of invalid operation request -The latest model file has not been loaded -You do not have edit permission for the project -The project has never been saved. |