IProjectUnitManager.SplitModelUnit(IModel,string,string) Method
Namespace: NextDesign.Core
Description
Splits the specified model into unit files with the specified names.
The unit files are added to the specified folder.
Arguments
Name | Type | Description |
---|---|---|
model | IModel | Model |
unitName | string | Unit file name |
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 is a root element - The specified model has already been split into units - The name of the unit file in the destination folder overlaps - A unit file name that cannot be used in the current operating system is specified |
Invalid operation | ExtensionInvalidOperationException | In case of an invalid operation request - The latest model file has not been loaded - You do not have permission to edit the project |
Annotation
When splitting the 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.