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
Name | Type | Description |
---|---|---|
unit | IModelUnit | unit |
deleteUnitFile | bool | After integration, if the original unit file is deleted or omitted, it will behave as if true is specified |
Return value
- void
Exception
Name | Exception Class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | When 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 operation | ExtensionInvalidOperationException | In 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 |