version 6.0
DR Scale to base (area; value) Real
| Parameter | Type | Description | |
| area | Longint | 4D Draw area | |
| value | Real | Value in scale units | |
| Function result | Real | Value in base units |
Description
The command DR Scale to base returns the size in base units that value represents in area.
value is specified in scale units. The ratio of scale to base units is determined by the ruler setup. See the DR GET RULER command for more information. DR Scale to base is useful in conjunction with commands that use base values as parameters.
Example
The following example uses the variables defined for the example in DR Base to scale. It takes the values of the variables, converts them back to base units and then uses them to size the selected object.
$Width := DR Scale to base (Area;vWidth) $Height := DR Scale to base (Area;vHeight) DR SIZE (Area;0;0;2;2;$Width;$Height)
See Also
DR Base to scale, DR GET RULER, DR SET RULER.