Skip to main content

IProjectUnitManager.SplitModelUnit(IModel,string) Method

Namespace: NextDesign.Core

Description

Splits the specified model into unit files with the specified names.

Argument

NameTypeDescription
modelIModelModel
unitNamestringUnit file name

Return value

  • void

Exception

NameException classDescription
Invalid ArgumentExtensionArgumentExceptionWhen an invalid parameter is specified
- The specified model is the root element
- The specified model has already been divided into units
- The unit file name is duplicated in the Models folder
- The unit file name specified is not usable in the current operating system
Invalid OperationExtensionInvalidOperationExceptionWhen an invalid operation request is made
- The latest model file has not been loaded
- You do not have editing permissions for the project

Annotation

If called during file-level difference comparison, a discrepancy in whether a comparison is performed or not may occur, so a re-comparison must be performed.