![]() |
|
unit |
Longname: | unit | ![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Released: | not available | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Created: | not available | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
See also: | saveunits tdpref tdruler |
Summary |
Adds user-defined units of measurement to the options offerred in 3B2. 3B2's default units of measurement are defined in ssys.3ad as shown below. User-defined units are not stored with a document. If you need to transfer a document that uses user-defined units to another system, you should ensure compatibility by including the appropriate unit macros in the document's autoexec script. |
Example extract |
To disable the cicero unit of measurement, for example, you could enter:
|
Syntax
|
number:n abb1:s ?abb2:s longname:s base:n two_part_link:n min:f unit_size:f
)
|
number:n |
A number from 1..12 specifying which of the 12 different unit types you are defining. Units 1..7 are 3B2's default system units. |
abb1:s |
A two-character string representing the units abbreviation (e.g. "in" for inches). This abbreviation is used when entering unit measurements in 3B2. An alternative abbreviation for the same measurement. Intended for use on non-English systems where the abbreviations need to be translated. Long name of the measurement up to 12 characters. Used in the document preferences and ruler dialogue boxes. The natural 'divisor' for this measurement. This will be used on rulers for tick marks and will also be used to calculate the second part of two-part units. Links to a 2nd part of a two-part unit (e.g. "pc" would link to "pt" and "cc" would link to "dd"). Do not use this unit in non-strict mode unless the measurement is less than the given minimum size (in millimetres). A floating point number accurate to many decimal places which specifies the size in millimetres of the unit. Any of 3B2's default units of measurement can be cleared by entering unit followed by the appropriate number and no further parameters. This can make some dialogue boxes less daunting. |
abb2:s |
An alternative abbreviation for the same measurement. Intended for use on non-English systems where the abbreviations need to be translated. |
longname:s |
Long name of the measurement up to 12 characters. Used in the document preferences and ruler dialogue boxes. |
base:n |
The natural 'divisor' for this measurement. This will be used on rulers for tick marks and will also be used to calculate the second part of two-part units. |
two_part_link:n |
Links to a 2nd part of a two-part unit (e.g. "pc" would link to "pt" and "cc" would link to "dd"). |
min:f |
Do not use this unit in non-strict mode unless the measurement is less than the given minimum size (in millimetres). |
unit_size:f |
A floating point number accurate to many decimal places which specifies the size in millimetres of the unit. Any of 3B2's default units of measurement can be cleared by entering unit followed by the appropriate number and no further parameters. This can make some dialogue boxes less daunting. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Document created on 08-Feb-2003 (revision 1)