Skip to main content

IProjectUnitManager.SplitModelUnits(IEnumerable<IModel>,string) 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.
The split unit files are added to the specified folder.

Argument

NameTypeDescription
modelsIEnumerable<IModel>Enumeration of models
folderPathstringRelative path to the destination folder (relative path from the Models folder)

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 OperationExtensionInvalidOperationExceptionWhen 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 has been made may occur, so a re-comparison must be performed.