Use
This processing group can appear in the template file, and comprise as many command lines as required. If you do not enter a command line, the drawing file is not divided up into separate groups. If you do enter command lines, the data records of the drawing file are grouped together into blocks and if, for example, you want to create a summarized BOM, these blocks are totaled up. A new grouping means a new page in the printout. If data records are not assigned to a group, they are printed out on a separate page. You can specify the group name for this separate page in the /definition processing group (for #r). If you do not, it remains empty.
There are two variants that are used for this processing group:
Variant |
Name |
Description |
1 |
/group |
The data field in which the threshold values of the grouping are to be found corresponds to the first data field that is used for sorting. |
2 |
/grouped by #[grouping_field] |
[Grouping field]: |
Syntax:
"[Minimum]","[Maximum]",#g,[Group Name 1];%Comment%
[Minimum]:
Smallest value in this group.
[Maximum]:
Largest value in this group.
[Group name 1]:
Group name that can be called up as a text in the printout using the key #g.
Example 1 (Variant 1):
/type
p;
/sort
#1,1,0;
; the first field of the data record is used for sorting
/group
"","100",#g,Production Parts;
; The grouping field is the first field of the data record
Example 2 (Variant 1):
/type
s;
/sort
#3>#1,1,0;
; the third field of the data record is used for sorting, if two are the same
;the first field will be used for the comparison and for sorting
/group
"","100",#g,Production Parts;
; The grouping field is the third field of the data record
Example 3 (Variant 2):
/type
p;
/sort
#1,1,0;
; the first field of the data record is used for sorting
/grouped by #1
"","100",#g,Production Parts;
; The grouping field is the first field of the data record
Example 4 (Variant 2):
/type
p;
/sort
#3,1,0;
; the third field of the data record is used for sorting
/grouped by #1
"","100",#g,Production Parts;
; The grouping field is the first field of the data record
Example 5 (Variant 2):
/type
s;
/sort
; no sorting
/grouped by #1
"","100",#g,Production Parts;
; The grouping field is the first field of the data record
Example 6:
/sort
; no sorting
/group
"","100",#g,Production Parts;
; The grouping field is automatically the first field of the data record (item number)
Example 7:
...
/definition
#r,separate page;
...
/grouped by #1
"0","99",#g,Production Parts;
"100","199",#g,Parts Purchased Externally;
; Data records greater than 199 through 299 are output on the separate page
"300","399",#g,Other Parts;
; Data records greater than 399 are output on the separate page
Explanation of Example 7:
The BOM is divided into 4 groups. A new page is started for each group (the remaining rows on a page that has not been filled can contain fillers as defined in the /filler processing group. The word "Separate Page" is printed on the separate page under #r. Values such as 99.5 are output on the separate page.
Example 8:
...
/definition
#r,separate page;
...
/grouped by #1
"","99",#g,Production Parts;
"","199",#g,Parts Purchased Externally;
; Data records greater than 199 through 299 are output on the separate page
"","399",#g,Other Parts;
; Data records greater than 399 are output on the separate page
Explanation of Example 8:
BOM is divided up as in Example 7. Unlike Example 7, data records between the threshold limits "99" and "100" (e.g. "99.5") are not output to the separate page, but to the parts purchased externally.
For an overview of all the commands available for changing templates for BOM evaluation, please refer to
Changing Templates for BOM Evaluation.