Skip to main content

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

NameTypeDescription
modelsIEnumerable <IModel>Model enumeration

Return value

  • void

Exception

NameException ClassDescription
Argument invalidExtensionArgumentExceptionWhen 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 operationExtensionInvalidOperationExceptionIn 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.