EcadAttributes.item Method

Parent Object: EcadAttributes

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::electron" and the header file is <Electron/Attributes/EcadAttributes.h>

Description

Function that returns the specified attribute using an index into the collection.

Syntax

"ecadAttributes_var" is a variable referencing an EcadAttributes object.
returnValue = ecadAttributes_var.item(index)
"ecadAttributes_var" is a variable referencing an EcadAttributes object.

#include <Electron/Attributes/EcadAttributes.h>

returnValue = ecadAttributes_var->item(index);

Return Value

Type Description
EcadAttribute Returns the specified item or null if an invalid index was specified.

Parameters

Name Type Description
index uinteger The index of the item within the collection to return. The first item in the collection has an index of 0.

Samples

Name Description
Electronics Bill of Materials Sample

Prints a bill of materials to the Text Commands window: lines that share the same value, footprint, MPN, and manufacturer are merged—Part lists all designators (sorted), Qty is the count. Indented Value, Footprint, MPN, and Manufacturer lines follow. Empty value, MPN, or manufacturer shows (missing). Omits parts without a package, without a linked 3D footprint name, or not populated for the default assembly variant.

Version

Introduced in version May 2026