Saving Defaults 

Use

If you press this button, the templates and BOM blocks currently selected will be saved as defaults in the configuration settings.

Procedure

If you click the Type pushbutton, all the command queries to which the script files (you can select these by clicking Script) can respond automatically will appear. You will be asked a sequence of questions about the dialog box options required. Since you will usually (or always) create BOMs with the same default settings, you can specify that a BOM should be created using responses from a script file that can be edited.

Script

AutoCAD contains three standard script files. These are stored in the directory ../GEN/MSK, and can be selected from a dialog box:

Script file

What the script file does

GENDWG.SCR

Creates a BOM in the drawing

GENASCII.SCR

Creates a BOM for ASCII printers.

You can also start this script under Windows. In this case, though, only an output file is created. The selected ASCII printer is used as the printer in this case.

GENWIN.SCR

This script creates and prints out a BOM for Windows printers.

A script file only contains responses to various queries from the BOM command. You enter the defaults either by selecting options for the "Create BOM" dialog box, or using a script file.

Command Sequence for Outputting to a Drawing (GENDWG.SCR)

  1. Name of the BOM <Proj1>:
  2. BOM file already exists – Overwrite? (Y/N) <N>: or BOM file not yet created – Create? (Y/N) <Y>:
  3. Summarized BOM/itemized BOM: <Itemized>
  4. Create BOM for (D)rawing / (A)SCII file / (W)indows printer <Drawing>:
  5. BOM Block <GENBPOS>:
  6. Expand subordinate BOMs in current BOM (Y/N)? <N>: Y

If the response was "Yes":

You can leave the question regarding the insertion point open in the script file – you will be asked automatically to specify the insertion point when you insert a BOM.

Example

We will take the standard AutoCAD drawing script file GENDWG.SCR as an example. By default, this file is stored in the directory ..\GEN\MSK.

Command

What the command does

Genpart

Starts the BOM creation process

"Enter"

Use the default BOM file name

_Y

Create or overwrite BOM file

_P

Create itemized BOM

_D

Create for drawing

"Enter"

Use default BOM block

_N

Do not expand

"Enter"

Do not filter

_Y

Print all groups without querying

_Y

Suppress empty line sections

 

Any blanks (spaces) in the script file means "Return". This is referred to as "Enter" in the table above.