First, define a custom color table:
- From the TenGun menu, go to Edit ➔ Settings, or click on the toolbar.
- Select the "Discrete Colors" tab.
- Add a new table. You can name it anything you want, such as "MatColors".
- Create some color entries. The easiest way is to use one of the "Preset" color schemes.
Next, set up a field definition:
- Switch to the Fields tab in the settings.
- TenGun predefines a field named "Material", but if your field name is different (e.g., Mat, MatType, Type, etc.) you can add a new field name to match your particular input data.
- Near the middle the Fields tab, set the data type (usually "int"), and check the "Discrete" option. Other options are of minor importance at this point.
- For the "Color Table" option, select the name of the table that you defined above (e.g., "MatColors").
- Add a Value and Label for each material. For example, 1 Cast Iron, 2 Push Plate, and 3 Aluminum Powder.
- Select OK to save and to activate the settings.