Skip to main content

IProjectUnitManager.ImportModelUnits(IEnumerable<string>,string) Method

Namespace: NextDesign.Core

Description

Imports the specified file as a model unit.
If the folder specified as the import destination does not exist, a folder up to the corresponding folder will be created.
If the unit file does not exist directly under the folder specified as the import destination, the corresponding file will be copied directly under that folder and imported.
If the unit file exists directly under the folder specified as the import destination, the file will be imported.

Arguments

NameTypeDescription
unitFilePathsIEnumerable<string>Enumeration of absolute paths of unit files
folderPathstringRelative path of import destination folder (relative path from Models folder)

Return value

  • void

Exceptions

NameException classDescription
Invalid argumentExtensionArgumentExceptionIf the project save format and the extension of the specified unit file path do not match
Invalid operationExtensionInvalidOperationExceptionIf an invalid operation is requested
- The latest model file has not been loaded
- You do not have permission to edit the project
- The project has never been saved