IProjectUnitManager.SplitModelUnits(IEnumerable<IModel>) 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.
Argument
| Name | Type | Description |
|---|---|---|
| models | IEnumerable<IModel> | Enumeration of models |
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 is performed or not may occur, so a re-comparison must be performed.