Share

ChoiceProperty.value Property

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

Description

Gets and sets the which choice is selected from the set of choices. The value is a string that matches one of the predefined choices. The names of the available choices can be obtained using GetChoices method.

Syntax

"choiceProperty_var" is a variable referencing a ChoiceProperty object.

# Get the value of the property.
propertyValue = choiceProperty_var.value

# Set the value of the property.
choiceProperty_var.value = propertyValue

Property Value

This is a read/write property whose value is a string.

Version

Introduced in version August 2014

Was this information helpful?