home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-05-26 | 2.0 KB | 50 lines | [TEXT/ttxt] |
- {
- Sample bill of materials report.
-
- Requires an attribute field "Part" to be defined in every part or library
- entry with the catalog part number, and another called "Value" with the
- component value, if needed.
-
- Everything in curly braces in this file is a comment and
- has no effect on the output.
- }
- $IF($NOT($ISFLAT))
- $NULL($ALERT1(This report script will only work in Flat hierarchy mode!))
- $ABORT
- $END
- { The following line will create an output file with the same name
- as the design with .BOM appended }
- $CREATEREPORT($DESIGNNAME.BOM) $PROMPT $CREATOR(ttxt)
- { The following line says that we want all devices with the same Part
- and Value attributes to be combined on one line. }
- $COMBDEVSON
- { The following line says we want a maximum of 12 items listed on
- a line before wrapping around to the next line }
- $MAXITEMSPERLINE(12)
- { The following line inserts a bunch of blanks at the front of any
- continuation line generated as a result of the previous line }
- $CONTSTART( )
- { The following line sorts the devices by the value in their
- Part and Value attributes. You can add any extra fields you
- want to sort by just by adding &fieldName to this line }
- $SORT $DEVICES &Part $LEXICAL &Value
- { The following lines from $HEADER to $ENDHEADER specify a page
- header to be inserted every time a new page is generated }
- $HEADER
- Circuit: $DESIGNNAME
- Date: $DATE - $TIME
-
- Device Type Num. Used Value References
-
- $ENDHEADER
- { Following is the maximum number of lines to print on a page }
- $ROWS(50)
- { The following line is really the heart of the report. It says to
- generate a list of devices. Each line will contain the Part value,
- a count of all devices with the same Part and Value fields
- (i.e. the same sort value specified by $SORT above), followed
- by the Value attribute and a list of device names having
- these values. You can add more attributes to this line by
- adding &fieldName anywhere. }
- $DEVICES&Part$COL(23)$COUNT$COL(32)&Value$COL(40)$DEVNAME
-