IProjectUnitManager.SplitModelUnits method
Namespace: NextDesign.Core
Description
Splits all specified models into unit files. For the file name of the divided unit file, the unique file name is automatically determined using the model name.
argument
Name | Type | Description |
---|---|---|
models | IEnumerable <IModel> | Model enumeration |
Return value
- void
Exception
Name | Exception Class | Description |
---|---|---|
Argument invalid | ExtensionArgumentException | When an invalid parameter is specified -The specified model contains a root element -The specified model contains an element that has already been unit-divided |
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 enumeration of the specified model, the unit file splits in the same storage format as the source model. If you want to split it in another save format, change the save format of the current project.