ImportManager.createElectronicsImportOptions Method

Parent Object: ImportManager

PreviewThis functionality is provided as a preview of intended future API capabilities. You are encouraged to use it and report any problems or suggestions using the Fusion API and Scripts forum.

Because this is a preview of future functionality, there is the possibility that it will change, which will possibly break any existing programs that use this functionality. Because of that, you should never deliver any programs that use any preview capabilities. For a distributed program, you should wait until it has moved from preview to released state.


Defined in namespace "adsk::core" and the header file is <Core/Application/ImportManager.h>

Description

Creates an ElectronicsImportOptions object that is used to open a local electronics file, such as an EAGLE board or schematic, in a new document. Creation of the ElectronicsImportOptions object does not perform the import. You must pass this object to the importToNewDocument method to perform the import. Supported file types are EAGLE boards (.brd), schematics (.sch) and libraries (.lbr), and Fusion electronics boards (.fbrd) and schematics (.fsch).

Syntax

"importManager_var" is a variable referencing an ImportManager object.

returnValue = importManager_var.createElectronicsImportOptions(filename)
"importManager_var" is a variable referencing an ImportManager object.

#include <Core/Application/ImportManager.h>

returnValue = importManager_var->createElectronicsImportOptions(filename);
"importManager_var" is a variable referencing an ImportManager object.

returnValue = importManager_var.createElectronicsImportOptions(filename);

Return Value

Type Description
ElectronicsImportOptions The created ElectronicsImportOptions object or null if the creation failed.

Parameters

Name Type Description
filename string The full filename, including the path, of the electronics file to be imported.

Version

Introduced in version November 2026