DR Scale to base

4D - Documentation   Français   English   German   4D Draw 2004, Command Theme List   4D Draw 2004, Command Alphabetical List   Back   Previous   Next

version 6.0


DR Scale to base (area; value) Real

ParameterTypeDescription
areaLongint4D Draw area
valueRealValue in scale units
Function resultRealValue 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.


4D - Documentation   Français   English   German   4D Draw 2004, Command Theme List   4D Draw 2004, Command Alphabetical List   Back   Previous   Next