Profiles.item Method

Parent Object: Profiles
Defined in namespace "adsk::fusion" and the header file is <Fusion/Sketch/Profiles.h>

Description

Function that returns the specified closed profile using an index into the collection.

Syntax

"profiles_var" is a variable referencing a Profiles object.

returnValue = profiles_var.item(index)
"profiles_var" is a variable referencing a Profiles object.

#include <Fusion/Sketch/Profiles.h>

returnValue = profiles_var->item(index);
"profiles_var" is a variable referencing a Profiles object.

returnValue = profiles_var.item(index);

Return Value

Type Description
Profile 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
Loft Feature API Sample

Demonstrates creating a new loft feature.

Before running: No open document is required; the script creates a new design (or additional documents) as it runs.

Patch Feature API Sample

Demonstrates creating a new patch feature.

Before running: No open document is required; the script creates a new design (or additional documents) as it runs.

Simple Extrusion Sample

Demonstrates creates a new extrusion feature, resulting in a new component.

Before running: No open document is required; the script creates a new design (or additional documents) as it runs.

Version

Introduced in version August 2014