IProjectUnitManager.UnifyModelUnits Method
Namespace: NextDesign.Core
Description
Merges all specified units into the parent unit.
Arguments
Name | Type | Description |
---|---|---|
units | IEnumerable<IModelUnit> | Enumeration of units |
deleteUnitFile | bool | Delete the original unit file after integration. If omitted, it will behave as if true was specified. |
Return value
- void
Exceptions
Name | Exception class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If an invalid parameter is specified. - The unit to be integrated contains a unit that cannot be identified (the parent model of the element at the base of the unit does not exist). - The unit to be integrated contains a unit that cannot be written. - The specified unit contains a unit that has not been split. |
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 specified unit has not been loaded - The unit to be integrated has not been loaded |
Annotation
If called during file-by-file difference comparison, there may be a discrepancy in the results of the comparison, so you will need to perform a re-comparison.