The SetVectorPen transaction defines the color, width, units, and dashing pattern for a particular vector pen line. Pen settings are used in HPGL, HPGL/2, and Calcomp 906/907 vector files.
Type XTYP_EXECUTE
Syntax [SetVectorPen(penNumber, color, width, units, <dashCnt>, <dash1>, <dash2>, <dash 3>, <dash4>)]
|
Parameter |
Data type |
Values |
Meaning |
|
penNumber |
WORD |
0 to 255 |
number of the pen to define |
|
color |
WORD |
pen color | |
|
width |
WORD |
0 | 1 | 2 | ... |
pen width in the specified units |
|
units |
WORD |
1 |
inches |
|
|
|
5 |
mm |
|
|
|
7 |
points |
|
dashCnt |
WORD |
0 to 4 |
number of dash instructions being used. Optional parameter. |
|
dash1 to dash4 |
WORD |
1 | 2 | 3 | ... |
length of the dashes in the line pattern. The number of dash parameters used must match the number specified by dashCnt. |
Release information
Added in Release 4.53.
See also