Skip to main content

IProjectUnitManager.UnifyModelUnits method

Namespace: NextDesign.Core

Description

Merge all specified units into the parent unit.

argument

NameTypeDescription
unitsIEnumerable<IModelUnit>Enumerate units
deleteUnitFileboolDelete the original unit file after integration.
If omitted, it is assumed that true is specified.

Return value

  • void

Exception

NameException classDescription
Invalid argumentExtensionArgumentExceptionIf 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 operationExtensionInvalidOperationExceptionIn 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.