Changing a Drawing Template File (*.DSK) 
Use
All of the changes that you make in the *.DSK file must also be taken into account in the drawing BOM block.
All of the rows in the *.DSK file start in the first column, and end with a return character. This is important since every row in the *.DSK file is processed individually.
Generally speaking, every *.DSK file must contain specific commands. For information on the commands, and how to use them correctly, please refer to the topic entitled
Changing Templates for BOM Evaluation.You should use the mask editor (template editor) and the commands from the menu to edit the file.
Syntax
Spaces (blanks) between a command and the return character can lead to unexpected errors!
The following table is an overview of the commands available for the drawing template file.
Command |
What the command does | |
| /type |
Defines the type of BOM (P for itemized BOM, or S for summarized BOM). | |
| /group |
Is used to define grouping criteria (e.g. group on basis of "Filter" field). | |
| /sort |
Is used to define sorting criteria (e.g. sort by price within a group). | |
| /math |
Used to define variables for performing mathematical operations in the data fields, and outputting the results. | |
| /definition |
Can be used to assign variables to texts. The appropriate, evaluated variable contents are placed in the BOM. | |
| /line |
Defines the position of every field within a line (for output). It is not possible to include mathematical operations here. The *.DSK file has a /line section that looks as follows: '#0', '#1', '#2', '#3', '#4', '#5', '#6', '#7', '#8', '#9', '#10', '#11', '#12', '#13', '#14', '#15', '#16', '#17', '#18', '#19', '#20', '#21', '#22', '#23','#24'' If, for example, you create an itemized BOM, the values of the data record item in the *.TXT file are written to the corresponding attributes of the drawing BOM block. If, for example, field #15 in the /line section were replaced with ‘AutoCAD’, the value for 15GENST in the drawing BOM would be replaced with "Genius". | |
DSK field |
BOM block attributes | |
#1 |
1GENST | |
#2 |
2GENST | |
#3 |
3GENST | |
… #X |
… XGENST | |
If, for example, field #15 in the /line section were replaced with ‘AutoCAD’, the value for 15GENST in the drawing BOM would be replaced with "Genius". | ||
| /start, /filler, /header and /footer sections |
Must be contained in the file, but must not be given values. | |
What should I bear in mind when I make changes?
As we already mentioned, the *.DSK file has a /line section that looks as follows:
'#0', '#1', '#2', '#3', '#4', ...,'#24'
This /line section contains the attribute numbers that appear in the BOM block. If another attribute (e.g. 105GENST) is to appear in the BOM block, then ‘#105’ must also be added to the *.DSK file.
You must specify additional attributes in sequential order:
'#0', '#1', '#2', '#3', '#4', ...,'#24', '#25',.......,'#102','#103','#104',''105'

You must also enter all additional attribute in the info point/item number.