Skip to main content

IProjectUnitManager.SplitModelUnits method

Namespace: NextDesign.Core

Description

Splits all specified models into unit files.
The file name of the divided unit file will be automatically determined using the model name.

argument

NameTypeDescription
modelsIEnumerable<IModel>Enumerate models

Return value

  • void

Exception

NameException classDescription
Invalid argumentExtensionArgumentExceptionIf an invalid parameter is specified
- The specified model contains a root element
- The specified model contains an element that has already been divided into units
Invalid operationExtensionInvalidOperationExceptionIn case of invalid operation request
- The latest model file has not been loaded
- You do not have permission to edit the project

Annotation

When splitting the enumeration of the specified model, the unit file will be split in the same storage format as the source model.
If you want to split the file using another save format, change the save format of the current project.
Also, if you call it during a file-by-file difference comparison, there may be a difference in whether or not there is a comparison, so you will need to perform a re-comparison.