Skip to main content

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

Namespace: NextDesign.Core

Description

Imports the specified file as a model unit.
If the specified destination folder does not exist, it will create the folder up to that location.
If the unit file does not exist directly under the specified destination folder, it will copy the file to that folder and import it.
If the unit file exists directly under the specified destination folder, it will import that file.

Argument

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

Return value

  • void

Exception

NameException ClassDescription
Invalid ArgumentExtensionArgumentExceptionIf the extension of the specified unit file path is not supported
Invalid OperationExtensionInvalidOperationExceptionIf an invalid operation request is made
- The latest model file has not been loaded
- You do not have editing permission for the project
- The project has never been saved