version 6.0
DR Base to scale (area; value) Real
| Parameter | Type | Description | |
| area | Longint | 4D Draw area | |
| value | Real | Value in base units | |
| Function result | Real | Value in scale units |
Description
The command DR Base to scale returns the size in scale units that value represents in area. value is specified in base units. One base unit is always equal to:
Scale Value / Base Value scale units.
DR Base to scale is useful in conjunction with commands that return base values.
Example
The following example gets the boundary of the selected objects and uses the values to display the width and height in scale units.
DR GET BOUNDARY (Area;0;$Left;$Top;$Right;$Bottom) vWidth := DR Base to scale (Area;$Right - $Left) vHeight := DR Base to scale (Area;$Bottom - $Top)
See Also
DR GET RULER, DR Scale to base, DR SET RULER.