Skip to main content

IProjectUnitManager.UnifyModelUnits Method

Namespace: NextDesign.Core

Description

Merges all specified units into the parent unit.

Arguments

NameTypeDescription
unitsIEnumerable<IModelUnit>Enumeration of units
deleteUnitFileboolDelete the original unit file after integration.
If omitted, it will behave as if true was specified.

Return value

  • void

Exceptions

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