AutoCAD slide files are screen images written by the MSLIDE command and read by the VSLIDE command. This section describes the format of slide files for the benefit of developers who wish to incorporate support for slides into their programs.
A slide file consists of a header portion (31 bytes) and one or more data records of variable length. All coordinates and sizes written to the slide file reflect the drawing area of the display device from which the slide was created, with point (0,0) located at the lower-left corner of the drawing area. For AutoCAD Release 9 and later, the slide file header consists of the following fields:
Data records follow the header. Each data record begins with a 2-byte field whose high-order byte is the record type. The remainder of the record may be composed of 1-byte or 2-byte fields as described in the following table. To determine whether the 2-byte fields are written with the high-order byte first or the low-order byte first, examine the Test number field of the header that is described in the previous table.
If a slide contains any vectors at all, a New color record will be the first data record. The order of the vectors in a slide and the order of the endpoints of those vectors may vary.
For example, the following is an annotated hex dump of a simple slide file created on an IBM PC/AT with an IBM Enhanced Graphics Adapter. The slide consists of a white diagonal line from the lower-left corner to the upper-right corner of the drawing area, a green vertical line near the lower-left corner, and a small red rectangle at the lower-left corner.
41 75 74 6F 43 41 ID string (“AutoCAD Slide” CR LF ^Z NUL)
44 20 53 6C 69 64
65 0D 0A 1A 00
56 Type indicator (56)
02 Level indicator (2)
3C 02 High X dot (572)
24 01 High Y dot (292)
0B 80 DF 00 Aspect ratio (14,647,307 / 10,000,000 = 1.46)
02 00 Hardware fill (2)
34 12 Test number (1234 hex)
07 FF New color (7 = white)
3C 02 24 01 00 00 00 00 Vector from 572,292 to 0,0. 572,292 becomes “last”point
3 FF New color (3 = green)
0F 00 32 00 0F 00 13 00 Vector from 15,50 to 15,19. \x1115,50 becomes
“last” point
01 FF New color (1 = red)
12 FB E7 12 CE Offset vector from 15+18,50-25 (33,25) to 15+18,
50-50 (33,0). 33,25 becomes “last” point
DF FE 00 Common-endpoint vector from 33,25 to 33-33,25+0
(0,25). 0,25 becomes “last” point
00 FE E7 Common-endpoint vector from (0,25) to 0+0,25-25
(0,0). 0,0 becomes “last” point
21 FE 00 Common-endpoint vector from (0,0) to 0+33,0+0
(33,0).33,0 becomes “last” point
00 FC End of file