IProjectUnitManager.SplitModelUnit(IModel,string) Method
Namespace: NextDesign.Core
Description
Splits the specified model into unit files with the specified names.
Argument
| Name | Type | Description |
|---|---|---|
| model | IModel | Model |
| unitName | string | Unit file name |
Return value
- void
Exception
| Name | Exception class | Description |
|---|---|---|
| Invalid Argument | ExtensionArgumentException | When an invalid parameter is specified - The specified model is the root element - The specified model has already been divided into units - The unit file name is duplicated in the Models folder - The unit file name specified is not usable in the current operating system |
| 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.