what draws through an anonymous block: DIMENSION (and its kinds ARC_DIMENSION, LARGE_RADIAL_DIMENSION) and
ACAD_TABLE (2: the block; 10 its insertion point for a table)
POLYLINE as a polyface mesh (70 bit 64: faces of up to four vertices, an edge invisible where its index is
negative) or a polygon mesh (70 bit 16: m by n vertices, closed in m or n)
a name of the file (a layer, linetype, text style, block, an entity’s kind): an index into Names; names that differ
only in the case of ASCII letters are one (AutoCAD’s rule)
a line family of a hatch pattern as the file stores it, already scaled and turned: angle (53, degrees), a base
point (43, 44), the offset to the next line (45, 46) and dashes (49: positive on, negative off, 0 a dot)
a vertex of a polyline: its point (OCS for 2D polylines, WCS for 3D), the bulge of the segment that starts here (the
tangent of a quarter of its arc’s angle, positive: counter-clockwise), the widths at its start and end
WIPEOUT (and IMAGE’s frame, read alike): insertion point, the u and v vectors of a pixel, the size in pixels, the
clip boundary in pixel coordinates (71: 1 a rectangle of two corners, 2 a polygon)
what a streaming read hands out, in the file’s order: the header (also an empty one, before anything else), the
tables (once, when the TABLES section ends, or empty before the first block or entity), each block when its ENDBLK
is read, each entity of ENTITIES (paper space too: Common::paper)
AutoCAD’s colour index (ACI) as 0xRRGGBB: 1 red, 2 yellow, 3 green, 4 cyan, 5 blue, 6 magenta, 7 white (black on a
light background: the caller decides), 8 and 9 greys, 10 to 249 24 hues of 15 degrees, each in five brightnesses
(255, 204, 153, 127, 76) and each of those mixed half with white of that brightness, 250 to 255 greys; 0 and 256
(by block, by layer) are white
\U+XXXX (four or five hex digits) as the character it names; \M+NXXXX as the double byte XXXX of the East Asian
page N (mbcs). Everything else stays (also “\”: TEXT has no escapes; MTEXT is parsed by mtext::parse)
the stand-in of a style’s font file (3) or TrueType family (its XDATA), compared without case and path: TrueType
names by their family, everything else (“.shx”, no extension, unknown) as an SHX font
a file read piece by piece: source fills a buffer and says how many bytes it put there (0: the end); the sink
gets what was read in the file’s order. Only the tables and the blocks are kept (Limits bound them); the entities
of ENTITIES go to the sink one by one
TEXT’s %% codes: %%c the diameter sign (U+2205), %%d the degree sign, %%p plus-minus, %%nnn the character of that
code (Windows-1252 above 127), %%% a percent sign; %%u, %%o and %%k switch underline, overline and strike-through on
and off (the runs they start). Unknown codes stay as they are