IProjectUnitManager.UnifyModelUnits method
Namespace: NextDesign.Core
Description
Merge all specified units into the parent unit.
argument
Name | Type | Description |
---|---|---|
units | IEnumerable<IModelUnit> | Enumerate units |
deleteUnitFile | bool | Delete the original unit file after integration. If omitted, it is assumed that true is specified. |
Return value
- void
Exception
Name | Exception class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If an invalid parameter is specified - The unit to be integrated cannot be identified (the parent model of the unit base element does not exist). - The unit to be integrated is Unit contains unwritable units - Specified unit contains undivided units |
Invalid operation | ExtensionInvalidOperationException | In case of invalid operation request - The latest model file has not been loaded - You do not have permission to edit the project - The specified unit has not been loaded. No - Destination unit is not loaded |
Annotation
If called during a file-by-file difference comparison, there may be a discrepancy between whether or not there is a comparison, so you will need to perform a re-comparison.