Skip to main content

IProjectUnitManager.UnifyModelUnit Method

Namespace: NextDesign.Core

Description​

Integrates the specified unit into the parent unit.
The parent unit is the unit that contains the parent element in the model structure for the base element of the specified unit.

Arguments​

NameTypeDescription
unitIModelUnitUnit
deleteUnitFileboolAfter merging, delete the original unit file.
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 merged cannot be identified (the parent model of the element at the base of the unit does not exist).
- Cannot write to the unit to be merged.
- The specified unit is not divided.
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 is not loaded.
- The unit to be integrated is not loaded.

Annotation​

If called during file-by-file difference comparison, there may be a discrepancy in the comparison results, so you must perform a re-comparison.