PropertyGroup.item Method

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

Description

Returns the specified property from the group using an index into the gropu.

Syntax

"propertyGroup_var" is a variable referencing a PropertyGroup object.
returnValue = propertyGroup_var.item(index)
"propertyGroup_var" is a variable referencing a PropertyGroup object.

#include <Core/Application/PropertyGroup.h>

returnValue = propertyGroup_var->item(index);

Return Value

Type Description
Property Returns the specified group or null if an invalid index was specified.

Parameters

Name Type Description
index integer The index of the property within the group where the first item is 0.

Samples

Name Description
Library item API Sample

Demonstrates using library items using the API.

To use the sample, create a new Python or C++ script and copy and paste this code, replacing the default code. The sample also used an saved user document with Library component(s). Create document, save it and insert Library item into the document. When running the script, have a that design open.

Version

Introduced in version January 2024