Skip to main content

IProjectUnitManager.SplitModelUnits(IEnumerable<IModel>,string) Method

Namespace: NextDesign.Core

Description

Splits all specified models into unit files.
The file names of the split unit files are automatically determined using the model names and are unique.
The split unit files are added to the specified folder.

Arguments

NameTypeDescription
modelsIEnumerable<IModel>Enumeration of models
folderPathstringRelative path of destination folder (relative path from Models folder)

Return value

  • void

Exceptions

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 split into units
Invalid operationExtensionInvalidOperationExceptionIf an invalid operation is requested
- The latest model file has not been loaded
- You do not have permission to edit the project

Annotation

When splitting the specified model enumeration, the unit files will be split in the same save format as the original model.
If you want to split in a different save format, change the save format of the current project.
Also, if you call it while comparing file-by-file differences, there may be a discrepancy in the results of the comparison, so you will need to perform a re-comparison.