Skip to main content

IProjectUnitManager.SplitModelUnit(IModel,string,string) Method

Namespace: NextDesign.Core

Description

Splits the specified model into unit files with the specified names.
The split unit files are added to the specified folder.

Argument

NameTypeDescription
modelIModelModel
unitNamestringUnit file name
folderPathstringRelative path to the destination folder (relative path from the Models folder)

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 destination 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 was performed may occur, requiring a re-comparison.

Annotation Annotation

If called during file-level difference comparison, a discrepancy in comparison status may occur, requiring a re-comparison.