Skip to main content

IProjectUnitManager.UnifyModelUnits method

Namespace: NextDesign.Core

Description

Consolidates all specified units into the parent unit.

argument

NameTypeDescription
unitsIEnumerable <IModelUnit>Unit enumeration
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).
-The unit to be integrated is included. The unit contains unwritable units
-The specified unit contains undivided units
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