Skip to main content

IProjectUnitManager.UnifyModelUnit method

Namespace: NextDesign.Core

Description

Merges the specified unit into its parent unit.
The parent unit of the integration destination will be the unit that stores the parent element on the model structure for the base element of the specified unit.

argument

NameTypeDescription
unitIModelUnitunit
deleteUnitFileboolIf the original unit file is deleted or omitted after integration, act as if true was specified

Return value

  • void

Exceptions

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionIf an invalid parameter is specified
- Unable to identify the unit to be integrated (the parent model of the unit-based element does not exist)
- Unable to write to the unit to be integrated
- The specified unit is not split
Illegal operationExtensionInvalidOperationExceptionFor invalid operation request
- The latest model file is not loaded
- You do not have permission to edit the project
- The specified unit is not loaded. No
- Destination unit is not loaded

Annotations

If this function is called during file-by-file difference comparison, comparison may not be completed, so it is necessary to perform comparison again.