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
Name | Type | Description |
---|---|---|
unit | IModelUnit | Unit |
deleteUnitFile | bool | After merging, delete the original unit file. 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 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 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 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.