Changing the Structure of the List Blocks 

Use

The drawing BOM blocks used by AutoCAD are blocks that comprise several sub-blocks (a basic block and several row blocks). AutoCAD uses several lists, each structured on the same principle. For example:

If you use one of the standard AutoCAD drawing blocks as a copy template, and want to give this block a different name, you cannot merely rename the *.DWG. The block name, footer block, and the row blocks must all have the same name (plus the corresponding sequential number). Therefore, always open, rename, and close the blocks in the block editor. If you do not, an error message will be issued when you go to output the BOM.

Names and Structure of List Blocks

The names of the sub-blocks (row blocks) are formed by taking the name of the main block and appending a whole number to this name.

If the main block is called RONNI, the basic block must be called RONNI0, the first row block RONNI1, the second row block RONNI2, and so on. In this section, the itemized BOM block GENBPOS will be used as an example in order to clarify this.

Inserting List Blocks

When inserted in the drawing, a list is inserted row by row (Y-axis-oriented). The BKS must be oriented in the same direction in which the list or table is to be created. In principle, the list block can be inserted anywhere on the screen. The values determined by the program for the attributes in the sub-blocks are written to the list.

Transferring Data to List Blocks

  1. The data that comes from the *:TXT file is separated into the corresponding data fields as defined in the *.DSK file.
  2. First, an attempt is made to insert the bottom row block (i.e. GENBPOS1) in the drawing.
  3. When the block is being inserted, the data is assigned to the various attributes of the BOM block (i.e. the value of the attribute 3GENPOS, for example, is written to 3GENST, etc.).
  4. If no data is available for this row block, the insertion process is suppressed for the row block unless you have specifically stated that empty lines should be inserted.
  5. Next, the same procedure is followed for the blocks GENBPOS2 and GENBPOS3.

The first data record has now been processed. The same process now starts for the next data record, and continues until no more data records are found in the *.TXT file.