ValueInput.createByReal Method
Parent Object:
ValueInputDefined in namespace "adsk::core" and the header file is <Core/Application/ValueInput.h>
Description
Creates a new ValueInput object using a double. For example, if you create a value using the double value 2 and use it as input for a length, it will be interpreted as 2 cm because centimeters are the internal unit for length. Values defined by a real are always interpreted to be in the appropriate internal unit. For example, if the value 2 is used to define the depth of an extrusion (a length value), it will be 2 cm because cm is the internal unit for lengths. If the value 2 is used to define the angle of the extrude, it will be 2 radians because radians are the internal unit for angles.
Syntax
This is a static method.
returnValue = adsk.core.ValueInput.createByReal(realValue)
|
This is a static method.
#include <Core/Application/ValueInput.h>
returnValue = adsk::core::ValueInput::createByReal(realValue);
|
Return Value
ValueInput |
Returns the newly created ValueInput object or null if the creation failed. |
Parameters
realValue |
double |
a double value |
Samples
Version
Introduced in version August 2014