$
Description
Sets the value of a property in default units and can be applied in a script to any property that accepts unit values. This syntax gives macro parameters and default unit values which can be modified by the macro tdpref.
|
The macro unit allows you to define your own units.
|
Example 3. Default vertical and horizontal units of a frame
In this example, the position and dimensions of a frame are determined when using the default horizontal and vertical units:
tfpos 25$h,15$v,127.8$h,45.725$v
If the vertical and horizontal default units are set to mm, the macro above would be equivalent to: tfpos 25mm,15mm,127.8mm,45.725mm.
Syntax
$ macro:s value$:n
macro
|
A macro which has one or more parameters that is a unit of measurement.
|
value$
|
The value to be converted:
v
|
Default vertical unit value: 14$v
|
t
|
Default text unit value: 12.4$t
|
s
|
Default system unit value: 4.567$s
|
d
|
Value in decimicrons: 14.7582$d
|
h
|
Default horizontal unit value: 5$h
|
|
Additional Information
In a script, the $ character allows the conversion of the content of a numeric variable into another unit, for example, ^var$mm converts the variable to millimetres.