Specifications

Revision C 16/01/96
Chapter 8 "HP-GL2" 43
UL - User-defined Line Type
UL [
i
] [,
g
[...,]] [;]
i ; unit type
g : gap length
This command allows you to define line types which you can then subsequently select with the LT
command.
i must be in the range 1-8. i identifies the line type that is to be defined.
The index parameter uses absolute values.
g (the gap length) alternately specifies pen up and pen down parts of the defined line type. A maximum of
twenty line sections are permitted, the first of which is a pen down section. Numbers must be integers in
the range 0~32767. These numbers are converted to percentages by the LT command.
Maximum definition for the gap of each line type is 20.
The sum of the gap parameters must be greater than 0.
Specifying an index number with no gap parameters sets the line type to the default pattern for that index
number.
Using the command with no parameter sets all line types to the defaults.
10 '-User Defined Line Type-
20 WIDTH "LPT1:", 255
30 LPRINT CHR$(27); "E";
40 LPRINT CHR$(27); "%0B";
50 LPRINT "IN;SP1;;"
60 LPRINT "UL8,0,15,0,15,0,15,40,15;"
70 LPRINT "LT8,5;PA2000,2500;PDPA5000,2500;PU;"
80 LPRINT "UL4,40,15,0,15,0,15,40,15,0,15;"
90 LPRINT "LT4,10;PA2000,3000;PDPA5000,3000;PU;"
100 LPRINT "UL1,40,40,40,40,40;"
110 LPRINT "LT1,10;PA2000,3500;PDPA5000,3500;PU;"
120 LPRINT CHR$(27); "%0A";
130 LPRINT CHR$(27); "E";
140 END
<Sample 46>