Macro Language Reference > Typecodes > Typecode Values and Meanings
  
Typecode Values and Meanings
Typecode
Meaning
b
String not enclosed in double quotes, e.g. A. The string can be enclosed within single quotes, e.g. 'A'.
c
Colour, e.g.:
red
25% blue
100/25 blue
25% blue+5
none
{101,101,101,100}
d
Number with optional decimal part, e.g.:
100
141.421
f
Percentage or ratio size
i
Single character, e.g. b, Z.
L
A literal character, or characters, with no enclosing delimiters, e.g.:
1
^
+
pb
m
Multiple type – the parameter of this command can be one of various components including a string, variable, tag, or expression, depending on the purpose for which you are using this macro
n
Integer number, e.g. 0, 1, 15.
The number can also be represented as a single character enclosed within single quotes to yield the character’s ASCII value. For example, entering 'A' will yield the value 65.
o
Use 1 or 0 to indicate on or off, respectively
p
Page number or numbers
rh
Number with optional decimal part followed by optional unit relative to the current text width, e.g.:
12mm
2pt+w
2*w
120%w
The default unit of text measurement is set up using the tdpref macro.
rt
Number with optional decimal part followed by optional unit relative to the current text height or width, e.g.:
12mm
2pt+h
2*w
120%h
The default unit of text measurement is set up using the tdpref macro.
rv
Number with optional decimal part followed by optional unit relative to the current text height, e.g.:
12mm
2*h
120%h
The default unit of text measurement is set up using the tdpref macro.
s
String enclosed in double quotes, e.g.:
"c:/3d/myfile.3m"
"~hm"
"Hello"
sw
An PTC ALD showstring
t
Tag name of up to 30 characters within double quotes, beginning with one of underline (_), forward slash (/), both (_/) or a letter (a-z, A-Z) and followed by letters, digits, underlines or hyphens, e.g.:
"body2"
"_LR-body"
"/body2"
"_/LRbody"
uh
Number with optional decimal part followed by an optional unit of horizontal measurement, e.g.:
12
24pt
8.5in
The default unit of horizontal measurement is set up using the tdpref macro.
um
Number with optional decimal part followed by an optional unit of measurement, e.g.:
12 – note that this will be processed as 12mm, since the default unit of measurement is millimeters (mm), unless specified.
24pt
8.5in
ut
Number with optional decimal part followed by an optional unit of text measurement, e.g.:
12
24pt
8.5in
The default unit of text measurement is set up using the tdpref macro.
uv
Number with optional decimal part followed by an optional unit of vertical measurement, e.g.:
12
24pt
8.5in
The default unit of vertical measurement is set up using the tdpref macro.
w
A string of characters not enclosed in double quotes. Cannot contain a comma, but may contain spaces, e.g.:
LPT1
My Device