A Somewhat Complete Listing of the SHP File Codes

,0

end of the line

0,0

lift the pen after multiple up or down pen sequences

1,8

make one move with in pen down mode

1,9

make a series of moves in pen down mode

2,8

make one move with the pen up

4,

multiply by

3,

divide by

5,

push position on to stack (remember position of pen)

6,

pop position off stack (return to previously remembered position)

7,

load a character at this position (ex. 7,65 will draw the character defined as code 65 at this location)

,8

continue in pen up mode

This listing uses the term pen to refer to the concept of moving the cursor around as the character is created. This analogy is similar to the method a pen plotter works by placing a pen on the paper and moving and/or lifting the pen to draw the character. Refer to the tutorial on creating fonts for more information.

The multiplication and divide codes can be used to get around the limits of the SHP file with regard to the need for whole number coordinates.

The character loading function can be used to create compound letter codes. For example a centerline character might be a C with an L imposed over it. If these characters are defined in the SHP file you could use the codes for both C and L to create this symbol rather than redrawing this new shape.



Thank you for printing this page. Please feel free to contact us for further assistance. You can call our sales department at +1 (800) 394-2231, Monday through Friday from 8:00 a.m. to 5:00 p.m. Eastern time or send an e-mail message to info@datacad.com.