home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 13 / 13.iso / p / p082 / 6.img / DOCUMENT / PCB-ACAD.DOC < prev   
Encoding:
Text File  |  1989-03-05  |  22.5 KB  |  608 lines

  1. THE DXF FORMAT
  2. **************
  3. The DXF file (Drawing Interchange File) is an ASCII text file with a file
  4. type of ".dxf" and specially formatted text. The overall organisation of a
  5. DXF file is as follows:
  6.  
  7. 1.    HEADER SECTION -
  8.     General information about the drawing is found in this section of
  9.     the DXF file. Each parameter has a variable name and an associated
  10.     value.
  11.  
  12. 2.    TABLES SECTION -
  13.     This section contains definitions of named items
  14.          - Linetype (LTYPE) table
  15.          - Layer table
  16.          - Style table
  17.          - View table
  18.  
  19. 3.    BLOCKS SECTION -
  20.     This section contains Block Definition entities describing the
  21.     entities comprising each Block in the drawing.
  22.  
  23. 4.    ENTITIES SECTION -
  24.     This section contains the drawing entities, including any Block
  25.     references.
  26.  
  27. 5.    END OF FILE
  28.  
  29. A DXF file is composed of multiple groups, each of which occupies two 
  30. lines in the DXF file. The first line of a group is a 'group code', which
  31. is a positive nonzero integer output in FORTRAN "13" format (ie, right
  32. justified and blank filed in a three character field). The second line of
  33. the group is the 'group value', in a formatwhich depends on the type of 
  34. the group as specified by the group code.
  35.  
  36. The specific assignment of group codes depends on the item being described 
  37. in the file. However the type of the value in this group supplies is derived
  38. from the group code in the following way:
  39.  
  40.     Group Code Range        Following Value
  41.  
  42.      0 - 9                String
  43.     10 - 59                Floating point
  44.     60 - 79                Integer
  45.     999                             Comments within DXF file
  46.  
  47. The appearance of values in the DXF file is not affected by the settings of
  48. the UNITS command; coordinates are always represented as decimal (or possibly 
  49. scientific notation if very large) numbers and angles are always represented
  50. in decimal degrees with zero degrees to the east of the origin.
  51.  
  52. Entites, table entries, and file separators are always introduced with a 0
  53. group code followed by a name descibing the item.
  54.  
  55.  
  56. GROUP CODES
  57. ***********
  58. Group codes are used both to indicate the type of value of the group and to
  59. indicate the general use of the group. The specific function of the group 
  60. depends on the actual variable, table item or entity description. 
  61.  
  62. This section indicates the general use of groups, noting as "(fixed)" any
  63. that always have the same function.
  64.  
  65. 0    Identifies the start of an entity, table entry or file separator
  66.     The text value that follows indicates which
  67. 1    The primary text value of an entity
  68. 2    A name; Attribute tag, Block name etc.
  69. 3-5    Other textual or name values
  70. 6    Line type name (fixed)
  71. 7    Text style name (fixed)
  72. 8    Layer name (fixed)
  73. 9    Variable name identifier (used only in HEADER section of DXF file)
  74.  
  75. 10    Primary X coordinate (start point of a Line or Text entity, centre
  76.     of a Circle etc.)
  77. 11-18    Other X coordinates
  78. 20    Primary Y coordinate. 2n values always correspond to 1n values and
  79.     follow them in a file.
  80. 21-28    Other Y coordinates
  81. 30    Primary Z coordinate. 3n values always correspond to 1n and 2n 
  82.     values and follow them in a file.
  83. 31-36    Other Z coordinates (future)
  84. 38    The entity's elevation if nonzero (fixed)
  85. 39    The entity's thickness if nonzero (fixed)
  86. 40-48    Floating point values (text height, scale factors, etc.)
  87. 49    Repeated value -- multiple 49 groups may appear in one entity for
  88.     variable length tables (such as the dash lengths in the LTYPE table).
  89.     A 7x group always appears before the first 49 group to specify the
  90.     table length
  91. 50-58    Angles
  92.  
  93. 62    Colour number (fixed)
  94. 66    "Enities follow" flag (fixed)
  95. 70-78    Integer values such as repeat counts, flag bits, or modes
  96.  
  97. 999    Used to include comments (DXFIN ignores the following line)
  98.  
  99. The DXF file is subdivided into four sections. File separator groups are
  100. used to delimit these file sections. The following is an example of a void
  101. DXF file where only the section markers and table headers are present.
  102.  
  103.   0
  104. SECTION                (Begin HEADER section)
  105.   2
  106. HEADER
  107.     <<<< Header variables go here >>>>
  108.   0
  109. ENDSEC                (End HEADER section)
  110.   0                (Begin TABLES section)
  111. SECTION
  112.   2
  113. TABLES
  114.   2
  115. LTYPE
  116.  70
  117. (Line type table maximum item count)
  118.     <<<< Line type items go here >>>>
  119.   0
  120. ENDTAB
  121.   0
  122. TABLE
  123.   2
  124. LAYER
  125.  70
  126. (Layer table maximum item count)
  127.     <<<< Layer table items go here >>>>
  128.   0
  129. ENDTAB
  130.   0
  131. TABLE
  132.   2
  133. STYLE
  134.  70
  135. (Text style table maximum item count)
  136.     <<<< Text style table items go here >>>>
  137.   0
  138. ENDTAB
  139.   0
  140. TABLE
  141.   2
  142. VIEW
  143.  70
  144. (View table maximum item count)
  145.     <<<< View table type items go here >>>>
  146.   0
  147. ENDTAB
  148.   0
  149. ENDSEC                (End TABLES section)
  150.   0                (Begin BLOCKS section)
  151. SECTION
  152.   2
  153. BLOCKS
  154.     <<<< Block definition entities go here >>>>
  155.   0
  156. ENDSEC                (End BLOCKS section)
  157.   0                (Begin ENTITIES section)
  158. SECTION
  159.   2
  160. ENTITIES
  161.     <<<< Drawing entities go here >>>>
  162.   0
  163. ENDSEC                (End ENTITIES section)
  164.   0
  165. EOF                (End of file)
  166.  
  167.  
  168. HEADER SECTION
  169. **************
  170. The header section of the DXF file contains settings of variables associated
  171. with the drawing. These variables are set with various commands and are the
  172. type of information displayed by the STATUS command. Each variable is
  173. specified in the header section by a 9 group giving its name, followed by
  174. groups that supply its value. 
  175.  
  176. The header variables, the groups that follow and their meanings are as 
  177. follows:
  178.  
  179. $ACADVER     1    (The AutoCAD drawing database version number)
  180. $ANGBASE    50    (Angle 0 direction)
  181. $ANGDIR        70    (1 = clockwise, 0 = counterclockwise)
  182. $ATTMODE    70    (Attribute visibility: 0 = none, 1 = normal, 2 = all)
  183. $AUNITS        70    (Units format for angles)
  184. $AUPREC        70    (Units precision for angles)
  185. $AXISMODE    70    (Axis on if nonzero)
  186. $AXISUNIT    10 20    (Axis X and Y spacing)
  187. $BLIPMODE    70    (Blip mode on if nonzero)
  188. $CECOLOR    62    (Entity colour number, 0 = BYBLOCK, 256 = BYLAYER)
  189. $CELTYPE     6    (Entity linetype name, or BYBLOCK or BYLAYER)
  190. $CHAMFERA    40    (First chamfer distance)
  191. $CHAMFERB    40    (Second chamfer distance)
  192. $CLAYER         8    (Current layer name)
  193. $COORDS        70    (0 = static, 1 = continuous update, 2 = "d<a")
  194. $DIMALT        70    (Alternate unit dimensioning performed if nonzero)
  195. $DIMALTD    70    (Alternate unit precision, number of decimal places)
  196. $DIMALTF    40    (Alternate unit scale factor)
  197. $DIMAPOST     1    (Alternate text suffix)
  198. $DIMASO        70    (Associative dimensioning mode 1 = on, 0 = off)
  199. $DIMASZ        40    (Dimensioning arraow size)
  200. $DIMBLK         2    (Arrow block name)
  201. $DIMCEN        40    (Size of centre marks/lines)
  202. $DIMDLE        40    (Dimension line extension)
  203. $DIMDLI        40    (Dimension line increment)
  204. $DIMEXE        40    (Extension line extension)
  205. $DIMEXO        40    (Extension line offset)
  206. $DIMLFAC    40    (Linier measurements scale factor)
  207. $DIMLIM        70    (Dimension limits generated if nonzero)
  208. $DIMPOST     1    (General text suffix)
  209. $DIMRND        40    (Rounding  value for dimension distances)
  210. $DIMSCALE    40    (Overall dimensioning scale factor)
  211. $DIMSE1        70    (First extension line suppressed if nonzero)
  212. $DIMSE2        70    (Second extension line suppressed if nonzero)
  213. $DIMSHO        70    (Update dimension entities while dragging if nonzero)
  214. $DIMTAD        70    (Text above dimension line if nonzero)
  215. $DIMTIH        70    (Text inside horizontal if nonzero)
  216. $DIMTM        40    (Minus tolerance)
  217. $DIMTOH        70    (Text outside horizontal if nonzero)
  218. $DIMTOL        70    (Dimension tolerances generated if nonzero)
  219. $DIMTP        40    (Plus tolerance)
  220. $DIMTSZ        40    (Dimensioning ticksize, 0 = no ticks)
  221. $DIMTXT        40    (Dimensioning text height)
  222. $DIMZIN        70    (Include zero inches in text if nonzero)
  223. $DRAGMODE    70    (0 = off, 1 = on, 2 = auto)
  224. $DRAGP1        70    (Regen-drag input sampling rate)
  225. $DRAGP2        70    (Fast-drag input sampling rate)
  226. $ELEVATION    40    (Current elevation set by ELEV commannd)
  227. $EXTMAX        10 20    (Drawing extents upper right corner)
  228. $EXTMIN        10 20     (Drawing extents lower left corner)
  229. $FASTZOOM    70    (0 = off, 1 = on)
  230. $FILLETRAD    40    (Fillet radius)
  231. $FILLMODE       70    (Fill mode on if nonzero)
  232. $GRIDMODE    70    (Gridmode on if nonzero)
  233. $GRIDUNIT    10 20    (Grid X and Y spacing)
  234. $HIGHLIGHT    70    (1 = highlight selected objects, 0 = don't highlight)
  235. $INSBASE    10 20    (Insertion base set by BASE command)
  236. $LIMCHECK    70    (Nonzero if limits checking is on)
  237. $LIMMAX        10 20    (Drawing limits upper right corner)
  238. $LIMMIN        10 20    (Drawing limits lower left corner)
  239. $LTSCALE    40    (Global linetype scale)
  240. $LUNITS        70    (Units format for coordinates and distances)
  241. $LUPREC        70    (Units precision for coordinates and distance)
  242. $MENU         1    (Name of menu file)
  243. $MIRRTEXT    70    (Mirror text if nonzero)
  244. $ORTHOMODE    70    (Ortho mode on if nonzero)
  245. $OSMODE        70    (Running object snap mode)
  246. $PDMODE        70    (Point display mode)
  247. $PDSIZE        40    (Point display size)
  248. $PLINEWID    40    (Default polyline width)
  249. $QTEXTMODE    70    (Quick text mode if nonzreo)
  250. $REGENMODE    70    (RegenAuto mode on if nonzero)
  251. $SKETCHINC    40    (Sketch record increment)
  252. $SKPOLY        70    (0 = sketch lines, 1 = sketch polylines)
  253. $SNAPANG    50    (Snap grid rotation angle)
  254. $SNAPBASE    10 20    (Snap grid base point)
  255. $SNAPISOPAIR    70    (Isometric plane 0 = left, 1 = top, 2 = right)
  256. $SNAPMODE    70    (Snap mode on if nonzero)
  257. $SNAPSTYLE    70    (0 = standard, 1 = isometric)
  258. $SNAPUNIT    10 20    (Snap grid X and Y spacing)
  259. $TDCREATE    40    (Date / time of drawing creation)
  260. $TDINDWG    40    (Cumulative editing time for this drawing)
  261. $TDUPDATE    40    (Date / time of last drawing update)
  262. $TDUSRTIMER    40    (User elapsed timer)
  263. $TEXTSIZE    40    (Default text height)
  264. $TEXTSTYLE     7    (Current text style name)
  265. $THICKNESS    40    (Current thickness set by ELEV command)
  266. $TRACEWID    40    (Default trace width)
  267. $USRTIMER    70    (0 = timer off, 1 = timer on)
  268. $VIEWCTR    10 20    (Centre of current view on screen)
  269. $VIEWDIR    10 20 30  (Current viewpoint set by VPOINT command)
  270. $VIEWSIZE    40    (Height of current view on screen)
  271.  
  272. The date / time variables ($TDCREATE and $TDUPDATE) are output as real
  273. numbers in the format:
  274.  
  275.     <Julian date>.<Fraction>
  276.  
  277. The elapsed time variables ($TDINDWG and $TDUSRTIMER) have a similar format:
  278.  
  279.     <Number of days>.<Fraction>
  280.  
  281.  
  282. TABLES SECTION
  283. **************
  284. The Tables section of the DXF file contains up to four tables each of which
  285. in turn contains a variable number of table entries. The tables always 
  286. appear in the order given above (Ltype, Layer, Style, View).  Each table in
  287. the TABLES section is introduced with a 0 group with the label "TABLE". 
  288. This is followed with a 2 group naming the table ("LTYPE", "LAYER", "STYLE"
  289. or "VIEW"), and a 70 group that specifies the maximum number of table 
  290. entries that may follow. The tables in a drawing may contain deleted items 
  291. but these are not written to a DXF file.Thus the actual number of tables may
  292. be less than the number given in the 70 group, so the count cannot be used 
  293. as an index. It is provided so additional programs can allocate an array in 
  294. advance to hold all the table items which follow. 
  295.  
  296. Following the header for each table are the table entries. Each table item
  297. consists of a 0 group identifying the item type (same as the table name, 
  298. eg. "LTYPE" or "LAYER"), a 2 group giving the name of the table entry, a 70
  299. group specifying flags relevant to the table entry (defined for each table
  300. below), and additional groups that give the value of the table entry. The 
  301. end of each table is indicated by a 0 group with the value "ENDTAB".
  302.  
  303. The following are groups used for the each type of table item. All groups 
  304. are present for each table item.
  305.  
  306. LTYPE     3     (Descriptive text for linetype),
  307.     72    (Alignment code),
  308.     73    (Number of dash line items),
  309.     40    (Total pattern length),
  310.     49    (Dash length 1),
  311.     49    (Dash length 2),....
  312.  
  313. LAYER    62    (Colour number, negitive if layer is off),
  314.      6    (Linetype name).
  315.         The 1 bit is set in the 70 group flags if the layer is frozen
  316.  
  317. STYLE    40    (Fixed text height; 0 if not fixed),
  318.     41    (Width factor),
  319.     50    (Obliquing angle),
  320.     71    (Text generation flags),
  321.     42    (Last height used),
  322.      3    (Primary font file name),
  323.      4    ("Bigfont" file name; blank if none)
  324.         If the third bit (4) is set in the 70 group flags, this is
  325.         a vertically orientated text style.
  326.  
  327.     A STYLE table item is used to record shape file LOAD requests also.
  328.     In this case the first bit (1) is set in the 70 group flags and
  329.     only the 3 group (shape file name) is meaningful. (All other groups
  330.     are output, however).
  331.  
  332. VIEW    40 41        (View height and width)
  333.     10 20        (View centre point)
  334.     11,21,31    (View direction from the origin)
  335.  
  336.  
  337. BLOCKS SECTION
  338. **************
  339. The BLOCKS section of the DXF file contains all the Block Definitions. 
  340. This section contains all the entities that make up the Blocks used in the 
  341. drawing. The format of the entities in this section is identical to those
  342. in the ENTITIES section described below, so refer to that section for
  343. details. All entities in the BLOCKS section appear between the BLOCK and
  344. ENDBLK entities. BLOCK and ENDBLK only appear in the BLOCKS section. Block
  345. definitions are never nested (ie. no BLOCK or ENDBLK entity appears within
  346. another BLOCK-ENDBLOCK pair).
  347.  
  348.  
  349. ENITIES SECTION
  350. ***************
  351. Entity items appear in both the BLOCK and ENTITIES sections of the DXF file.
  352. The appearance of the entities in the two sections is identical. 
  353. The following gives the format of each entity as it appears in the file.
  354. Some groups that define an entity always appear and some are optional and
  355. appear only if they differ from their default values. In the following
  356. discussion, groups that always occur are given by their group number and
  357. function, while optional groups are indicated by "-optional N" following
  358. the group desciption. "N" is the default value if the group is omitted.
  359.  
  360. Programs that read DXF files should not assume that the groups describing
  361. an entity occur in the order given here. The end of the groups that make 
  362. up an entity is indicated by the next 0 group, beginning the next entity or
  363. indicating the end of the section.
  364.  
  365. Remember a DXF file is a complete representation of the drawing database,
  366. and that as AutoCAD is further enhanced new groups will be added to entities
  367. to accommodate additional features. Writing your DXF processing program in
  368. a table driven way, making no assumptions about the orders of groups in an
  369. entity, and ignoring any groups not presently defined, will make it much
  370. easier to accommodate DXF files from future releases of AutoCAD.
  371.  
  372. Each entity begins with a 0 group identifying the entity type. The name for
  373. the entities are given in the table that follows. Every entity contains an
  374. 8 group that gives the name of the layer on which the entity resides. Each
  375. entity may have elevation, thickness, linetype or colour associated with it.
  376. The following groups are included only if the entity has non default values
  377. for these properties.
  378.  
  379.      6    Linetype name (if not "BYLAYER"). the special name "BYBLOCK"
  380.         indicates a floating line type.
  381.     38    Elevation (if nonzero)
  382.     39    Thickness (if nonzero)
  383.     62    Colour number (if not "BYLAYER"). 0 indicates the "BYBLOCK"
  384.         (floating) colour.
  385.  
  386. The rest of the groups that make up an entity are as follows:
  387.  
  388. LINE        10 20    (start point)
  389.         11 21    (end Point)
  390.  
  391. POINT        10 20
  392.  
  393. CIRCLE        10 20    (centre)
  394.         40    (radius)
  395.  
  396. ARC        10 20    (centre)
  397.         40    (radius)
  398.         50    (start angle)
  399.         51    (end)
  400.  
  401. TRACE        10 20    11 21    12 22    13 23     
  402.         (Four points defining the corners of the trace)
  403.  
  404. SOLID        10 20    11 21    12 22    13 23     
  405.         (Four points defining the corners of the solid.    If the solid 
  406.         has only 3 sides, then the coordinates 12 22, 13 23 are equal)
  407.  
  408. TEXT        10 20    (insertion point)
  409.         40    (height)
  410.          1    (text value)
  411.         50    (rotation angle -optional 0)
  412.         41    (relative X value -optional 1)
  413.         51    (obliquing angle -optional 0)
  414.          7    (text style name -optional "STANDARD")
  415.         71    (text generation flags -optional 0)
  416.         72    (justification type -optional 0)
  417.         11 21    (alignment point -optional, appears only if the 
  418.             72 group is present and nonzero)
  419.  
  420. SHAPE        10 20    (insertion point)
  421.         40    (size)
  422.         50    (rotation angle -optional 0)
  423.         41    (relative X scale factor -optional 1)
  424.         51    (obliquing angle -optional 0)
  425.  
  426. BLOCK         2    (Block name)
  427.         70    (Block type flags)    Appears only in BLOCK section
  428.         10 20    (Block base point)
  429.  
  430. ENDBLK        No groups            Appears only in BLOCK section
  431.  
  432. INSERT        66    ("Attributes follow" flag -optional 0)
  433.          2    (Block name)
  434.         10 20    (insertion point)
  435.         41    (X scale factor -optional 1)
  436.         42    (Y scale factor -optional 1)
  437.         43    (Z scale factor -optional 1)
  438.         50    (rotation angle -optional 0)
  439.         70 71    (column and row counts -optional 1)
  440.         44 45    (column and row spacing -optional 0)
  441.  
  442. ATTDEF        10 20    (text start)
  443.         40    (text height)
  444.          1    (default value)
  445.          3    (prompt string)
  446.          2    (tag string)
  447.         70    (Attribute flags)
  448.         73    (field length -optional 0)
  449.         50    (text rotation -optional 0)
  450.         41    (relative X scale factor -optional 1)
  451.         51    (obliquing angle -optional 0)
  452.          7    (text style name -optional "STANDARD")
  453.         71    (text generation flags -optional 0)
  454.         72    (justification type -optional 0)
  455.         11 21    (alignment point -optional, appears only if the 
  456.             72 group is present and nonzero)
  457.  
  458. ATTRIB        10 20    (text start)
  459.         40    (text height)
  460.          1    (value)
  461.          2    (Attribute tag)
  462.         70    (Attribute flags)
  463.         73    (field length -optional 0)
  464.         50    (text rotation -optional 0)
  465.         41    (relative X scale factor -optional 1)
  466.         51    (obliquing angle -optional 0)
  467.          7    (text style name -optional "STANDARD")
  468.         71    (text generation flags -optional 0)
  469.         72    (justification type -optional 0)
  470.         11 21    (alignment point -optional, appears only if the 
  471.             72 group is present and nonzero)
  472.  
  473. POLYLINE    70    (Polyline flags)
  474.         40    (default starting width)
  475.         41    (default ending width)
  476.  
  477.         The flags currently have the bit values 1 (closed polyline)
  478.         and 2 (curve fit information has been added) The default 
  479.         widths apply to any vertex that does not supply widths (see
  480.         below)
  481.  
  482. VERTEX        10 20    (location)
  483.         40    (starting width -optional, see above)
  484.         41    (ending width -optional, see above)
  485.         42    (bulge)
  486.         70    (vertex flags)
  487.         50    (curve fit tangent direction -optional)
  488.  
  489.         The bulge is the tangent of 1/4 the included angle for an
  490.         arc segment, made negative  if the arc goes clockwise from
  491.         the start point to the end point; a bulge of 0 indicates
  492.         a straight segment, and a bulge of 1 is a semi-circle.
  493.         Currently the vertex flags are 1 (extra vertex created by
  494.         curve fitting) and 2 (curve fit tangent defined). A curve
  495.         fit direction of 0 may be omitted from the DXF output, but
  496.         is significant if the "tangent defined" bit is set in the
  497.         vertex flags.
  498.  
  499. SEQEND        No fields
  500.  
  501.         This entity marks the end of the vertices (VERTEX type name)
  502.         for a Polyline, or the end of Attribute entities (ATTRIB 
  503.         type name) for an INSERT entity that has Attributes 
  504.         (indicated by 66 group present and nonzero in INSERT entity).
  505.         
  506.  
  507. ENTITY FLAG DEFINITIONS
  508. ***********************
  509. The entity items listed above use various "flag" values. These are integer
  510. codes (6x or 7x groups) that encode various pieces of information regarding
  511. the entity. The following paragraphs describe the meaning of the various
  512. flag groups used in entities. In this discussion, the term "bit coded"
  513. means that the flag contains various true/false values coded as the sum of
  514. the bit values given. If any of the group 70 flags of all symbol table 
  515. entries (Layers, Linetypes, Text Styles, Block Definitions and Named Views) 
  516. is set to 64, the table entry was referenced by at least one entity in the 
  517. drawing the last time the drawing was entered to edit the drawing. This 
  518. "referenced" flag is for the benefit of the PURGE command; it can be ignored
  519. by most programs that read DXF file, and need not be set by programs that
  520. write DXF files. Any bits not defined in the following section should be
  521. ignored in these fields and set to zero when constructing a DXF file.
  522.  
  523.  
  524. "Attibutes Follow" Flag
  525. -----------------------
  526. This is an optional 66 group presently used only in an INSERT entity. If 
  527. the value that follows is 1, Attributes (ATTRIB) entities are expected 
  528. to follow the INSERT entity.
  529.  
  530.  
  531. Attribute Flags
  532. ---------------
  533. This is a 70 group flag that appears in ATTDEF and ATTRIB entities. This is
  534. a bit coded field in which 
  535.     1  means the Attribute is invisible (does not display)
  536.     2  means the Attribute is constant
  537.     4  means that verification is required on input for this Attribute
  538.  
  539.  
  540. Text Generation Flags
  541. ---------------------
  542. This is an optional 71 group that appears in TEXT, ATTDEF and ATTRIB entities.
  543. It is a bit coded field in which
  544.     2  means the text is mirrored in the X direction (eg. regular image)
  545.     4  means the text is upside down
  546.  
  547.  
  548. Text Justifiaction Type
  549. -----------------------
  550. This is an optional 72 group that appears in TEXT, ATTDEF and ATTRIB entities.
  551. Its value (NOT bit coded) indicates the text justification style used on this 
  552. entity in which
  553.     0  means left justified
  554.     1  means baseline centered text
  555.     2  means right justified
  556.     3  means "aligned" text
  557.     4  means "middle" (fully) centered text
  558.     5  means "fit" text
  559.  
  560. If this group appears with a nonzero value 11 and 21 groups will also appear
  561. in the entity and specify the alignment point of the text (centre, rightmost
  562. or second alignment point)
  563.  
  564.  
  565. Block Type Flags
  566. ----------------
  567. This is a 70 group that appears in BLKDEF entities. It is a bit coded field
  568. in which
  569.     1  means this is an "annonymous block generated by hatching or other 
  570.        internal operations
  571.     2  means this block has Attributes
  572.  
  573.  
  574. WRITING DXF INTERFACE PROGRAMS
  575. ******************************
  576. Writing a program that contructs a DXF file can be difficult, because you 
  577. must maintain consistancy within the drawing in order for AutoCAD to find
  578. it acceptable. AutoCAD allows you to omit many items in a DXF file and 
  579. still obtain a usable drawing. The entire HEADER section can be omitted 
  580. if you don't need to set any header variables. Any of the tables in the
  581. TABLES section can be omitted if you dont' need to make any entries, and
  582. in fact the entire TABLES section can be dropped if nothing in it is
  583. required. If no Block Definitions are used in the drawing,the BLOCKS 
  584. section can be omitted. If present however, it must appear before the
  585. ENTITIES section. Within the ENTITIES section you can reference layer
  586. names even though you haven't defined them in the LAYER table. Such layers
  587. will be automatically created with the colour 7 (white) and the CONTINUOUS
  588. linetype. The EOF item must be present at the end of the file.
  589.  
  590.  
  591.  
  592. LOADING A DXF FILE
  593. ******************
  594. A drawing interchange file can be loaded into an AutoCAD drawing by means
  595. of the DXFIN command. First enter the Drawing Editor with the "Create new
  596. drawing" task from the main menu. Then issue the DXFIN command.
  597.  
  598.     Command: DXFIN  File name (name)
  599.  
  600. Enter the name of the drawing interchange file to be loaded.
  601.  
  602. In order to load a complete DXF file you must use a newly created drawing,
  603. before any entities have been drawn. If any errors are detected during the
  604. input the new drawing will be discarded. Otherwise an automatic "ZOOM All"
  605. is performed to set the drawing extents.
  606.  
  607.  
  608.