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.
This is a static method. |
This is a static method. |
This is a static method. |
| Type | Description |
| ValueInput | Returns the newly created ValueInput object or null if the creation failed. |
| Name | Type | Description |
| realValue | double | a double value |
| Name | Description |
| Simple Extrusion Sample | Demonstrates creates a new extrusion feature, resulting in a new component. Before running: No open document is required; the script creates a new design (or additional documents) as it runs. |
| Simple Revolve Feature Sample | Demonstrates creates a new revolve feature, resulting in a new component. Before running: No open document is required; the script creates a new design (or additional documents) as it runs. |