XS_SECTION_LINE_COLOR_RGB

Modified: 31 Oct 2025 Tekla Structures 2026

XS_​SECTION_​LINE_​COLOR_RGB

Category in Advanced options dialog: Hatching

Note:

The section line color defined for the advanced option XS_SECTION_LINE_COLOR_RGB overrides the section line color selected in the drawing, view, or object level properties.

Use this advanced option to add extra lines in different colors around automatic hatching in section views.

You can enter a single color index value (such as 160 for the standard Tekla Structures red color) or a specific custom RGB color. For an RGB color, enter three numeric values separated by spaces (each value in the range 0 to 255). For example, for a specific shade of green, enter 0 220 50.

Note:

To show lines around hatching, and to be able to add extra lines in different colors, you may need to set advanced option XS_DRAW_ALL_SECTION_EDGES_IN_DRAWINGS to TRUE in an initialization file.

This advanced option is model specific and the setting is saved in the options database. Reopen the model to activate the new value.

Legacy Tekla Structures index values and the corresponding colors:

0 Black
1 White
2 Red
3 Green
4 Blue
5 Cyan
6 Yellow
7 Magenta

Standard Tekla Structures index values and the corresponding colors:

152 Invisible
153 Black
160 Red
161 Green
162 Blue
163 Cyan
164 Yellow
165 Magenta
154 Brown
155 Dark green
156 Dark blue
157 Blue-green
158 Orange
159 Gray
130 Gray 30
131 Gray 50
132 Gray 70
133 Gray 90

In the image below, the advanced option has been set to 0:

In the next example, the value 160 is used:

Was this helpful?
Submit
Previous
Next