Colour a GIS table by an attribute and place a legend in the drawing
Open the GIS Controller (GIS tab, Layers group). Select one table in the list and click Thematic Map on the controller toolbar.
| Control | What it does |
|---|---|
| Attribute | The field to colour by. The values are read from the table's attributes. |
| Method | Unique values: one colour per distinct value (the only method for text). Equal interval: the value range is cut into classes of equal width. Quantile (equal count): each class holds about the same number of features. |
| Classes | Number of classes for the two graduated methods, 2 to 20. |
| Colours | The colour ramp for graduated classes, light to dark or between two hues. |
| Class list | Preview of every class with its colour, label and feature count. |
| Legend text height | Text height of the legend in drawing units. The default suits the current plan zoom. |
The colour is set on each feature's own entity, so the table's layer colour is left as it was. Features whose attribute is empty keep the layer colour. The choice of attribute, method, classes and colours is stored with the table and offered again the next time you open Thematic Map for it. Remove returns every feature to the layer colour and the table's own fill setting, and clears the legend.
The legend is drawn from ordinary CAD entities on the layer GIS_LEGEND_table: a frame, the attribute name as title, and a colour box with label and feature count per class. Placing the legend again replaces the previous one for that table. It prints and exports with the drawing.
| Symptom | Fix |
|---|---|
| “Select one GIS table” | Tick or focus exactly one table in the GIS Controller. |
| Only Unique values is offered | The attribute holds text in at least one record. Graduated methods need every non-empty value to be a number. |
| A class named (other) appears | The attribute has more than 60 distinct values. The most frequent get their own colour and the rest share one. |
| Colours are lost after reopening a file geodatabase table | Tables linked to an external geodatabase are redrawn on open. Open Thematic Map for the table and click Apply; the settings are remembered. |
| New or edited features are not coloured | Click Apply again after editing attributes. |