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
Name | Type | Description |
---|---|---|
models | IEnumerable<IModel> | Enumeration of models |
folderPath | string | Relative path of destination folder (relative path from Models folder) |
Return value
- void
Exceptions
Name | Exception class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If 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 operation | ExtensionInvalidOperationException | If 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.