Skip to main content

IProjectUnitManager.SplitModelUnits(IEnumerable<IModel>) Method

Namespace: NextDesign.Core

Description​

Splits all specified models into unit files.
The filenames of the split unit files are automatically determined using the model names to ensure they are unique.

Argument​

NameTypeDescription
modelsIEnumerable<IModel>Enumeration of models

Return value​

  • void

Exception​

NameException ClassDescription
Invalid ArgumentExtensionArgumentExceptionWhen an invalid parameter is specified
- The specified model contains a root element
- The specified model contains elements that have already been unit-divided

|Invalid Operation|ExtensionInvalidOperationException|When an invalid operation request is made
- The latest model file has not been loaded
- You do not have editing permissions for the project|

Annotation​

If called during file-level difference comparison, a discrepancy in whether a comparison is performed or not may occur, so a re-comparison must be performed.