PropertyGroup.count Property

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

Description

Returns the number of properties within the group.

Syntax

"propertyGroup_var" is a variable referencing a PropertyGroup object.

# Get the value of the property.
propertyValue = propertyGroup_var.count
"propertyGroup_var" is a variable referencing a PropertyGroup object.
#include <Core/Application/PropertyGroup.h>

// Get the value of the property.
uinteger propertyValue = propertyGroup_var->count();

Property Value

This is a read only property whose value is a uinteger.

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