DistanceValueCommandInput.minimumValue Property

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

Description

Gets and sets minimum value, if any, that the value can be. When getting this property you should first check the hasMinimumValue property to see if this property applies. Also, the isMinimumValueInclusive indicates if the minimum includes this value or will be up to this value.

Setting this value will change the isMinimumValueInclusive to True and the hasMinimumValue property to True if hasMinimumValue is currently False, otherwise it will just update the value.

Syntax

"distanceValueCommandInput_var" is a variable referencing a DistanceValueCommandInput object.

# Get the value of the property.
propertyValue = distanceValueCommandInput_var.minimumValue

# Set the value of the property.
distanceValueCommandInput_var.minimumValue = propertyValue
"distanceValueCommandInput_var" is a variable referencing a DistanceValueCommandInput object.
#include <Core/UserInterface/DistanceValueCommandInput.h>

// Get the value of the property.
double propertyValue = distanceValueCommandInput_var->minimumValue();

// Set the value of the property, where value_var is a double.
bool returnValue = distanceValueCommandInput_var->minimumValue(value_var);

Property Value

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

Samples

Name Description
Command Inputs API Sample

Creates a command dialog that demonstrates all of the available command inputs.

To use the sample, create a new Python or C++ script and copy and paste this code, replacing the default code. You also need to unpack this zip file which contains a resource folder into the same folder where the source code file (.py or .cpp) is.

Version

Introduced in version January 2016