PropertyGroup.itemById 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 the unique ID of the property. The ID is consistent and can't be modified by the user and isn't affected by localization.

Syntax

"propertyGroup_var" is a variable referencing a PropertyGroup object.
returnValue = propertyGroup_var.itemById(id)
"propertyGroup_var" is a variable referencing a PropertyGroup object.

#include <Core/Application/PropertyGroup.h>

returnValue = propertyGroup_var->itemById(id);

Return Value

Type Description
Property Returns the specified Property or null if the ID doesn't match a property within the collection.

Parameters

Name Type Description
id string The unique ID of the property.

Version

Introduced in version January 2024