Skip to main content

IProjectUnitManager.UnifyModelUnit method

Namespace: NextDesign.Core

Description

Consolidates the specified unit into the parent unit. The parent unit of the integration destination is the unit in which the parent element in the model structure is stored for the base point element of the specified unit.

argument

NameTypeDescription
unitIModelUnitunit
deleteUnitFileboolAfter integration, if the original unit file is deleted or omitted, it will behave as if true is specified

Return value

  • void

Exception

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionWhen an invalid parameter is specified
-The unit to be integrated cannot be specified (the parent model of the element at the unit base does not exist)
-Cannot write to the unit to be integrated.
-The specified unit is not split
Illegal operationExtensionInvalidOperationExceptionIn case of invalid operation request
-The latest model file is not loaded
-You do not have edit permission for the project
-The specified unit is loaded. No
-The unit you are integrating with is not loaded