IProjectUnitManager.UnifyModelUnits method
Namespace: NextDesign.Core
Description
Consolidates all specified units into the parent unit.
argument
| Name | Type | Description |
|---|---|---|
| units | IEnumerable <IModelUnit> | Unit enumeration |
| deleteUnitFile | bool | After integration, if the original unit file is deleted or omitted, it will behave as if true is specified |
Return value
- void
Exception
| Name | Exception Class | Description |
|---|---|---|
| Invalid argument | ExtensionArgumentException | When an invalid parameter is specified -The unit to be integrated cannot be specified (the parent model of the element at the unit base does not exist). -The unit to be integrated is included. The unit contains unwritable units -The specified unit contains undivided units |
| Illegal operation | ExtensionInvalidOperationException | In case of invalid operation request -The latest model file is not loaded -You do not have edit permission for the project -The specified unit is loaded. No -The unit you are integrating with is not loaded |