IProjectUnitManager.SplitModelUnits(IEnumerable<IModel>,string) Method
Namespace: NextDesign.Core
Description
Splits all specified models into unit files.
The filenames of the split unit files are automatically determined using the model names to ensure they are unique.
The split unit files are added to the specified folder.
Argument
| Name | Type | Description |
|---|---|---|
| models | IEnumerable<IModel> | Enumeration of models |
| folderPath | string | Relative path to the destination folder (relative path from the Models folder) |
Return value
- void
Exception
| Name | Exception Class | Description |
|---|---|---|
| Invalid Argument | ExtensionArgumentException | When an invalid parameter is specified - The specified model contains a root element - The specified model contains elements that have already been unit-divided |
| Invalid Operation | ExtensionInvalidOperationException | When 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 has been made may occur, so a re-comparison must be performed.