IProjectUnitManager.SplitModelUnit 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 unit-divided -Currently Duplicate with the unit file name used in the project of -A unit file name that cannot be used in the current operating system was specified |
Illegal operation | ExtensionInvalidOperationException | In case of invalid operation request -The latest model file is not loaded -You do not have edit permission for the project |
Annotation
When splitting the specified model into unit files with the specified name, the unit file splits in the same storage format as the split source model. If you want to split it in another save format, change the save format of the current project.