IProjectUnitManager.SplitModelUnit(IModel,string) Method
Namespace: NextDesign.Core
Description
Splits the specified model into unit files with the specified names.
Arguments
Name | Type | Description |
---|---|---|
model | IModel | Model |
unitName | string | Unit file name |
Return value
- void
Exceptions
Name | Exception class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If an invalid parameter is specified - The specified model is a root element - The specified model has already been divided into units - The name of the unit is duplicated with a unit file name directly under the Models folder - A unit file name that cannot be used in the current operating system is specified |
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 a specified model into unit files with the specified name, 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.