Hatch pattern settings (.htc) for automatic drawing hatches

Tekla Structures
Modified: 14 Nov 2024
2025
Tekla Structures

Hatch pattern settings (.htc) for automatic drawing hatches

The hatch patterns for material types and names in drawings are defined in a hatch schema file .htc. Different drawing types (general arrangement, assembly, single-part, and cast unit drawings) have their own schema files.

The hatch patterns defined in schema files are used when you set Type to Automatic in the Fill section in the part or shape properties.

Hatch schema file name and location

The name of the schema file Tekla Structures uses for each drawing type is defined in the Hatching category of the Advanced options dialog:

  • XS_DRAWING_GA_HATCH_SCHEMA=general.htc

  • XS_DRAWING_ASSEMBLY_HATCH_SCHEMA=assembly.htc

  • XS_DRAWING_SINGLE_PART_HATCH_SCHEMA=single.htc

  • XS_DRAWING_CAST_UNIT_HATCH_SCHEMA=cast_unit.htc

The default schema files are located in the ..\Tekla Structures\<version>\environments\common\system folder. The environment-specific schema files are located under the environments. The exact file location may vary depending on the folder structure of you environment files.

If you modify the hatch files and you want to used the modified settings file in the current model only, save them to the model folder. If you want to use the settings in all models, save the modified settings file in the firm folder.

Schema file syntax

Material type, Cast unit type, Material name, Hatch name, Scale, Color, Automatic scaling and rotation

Examples:

CONCRETE,,hardware_SOLID,,130 (gray shade)

CONCRETE,Precast,C25/30,CONC,0.3,1 ("traditional" concrete Precast)

CONCRETE,CIP,C25/30,CONCRE,0.3,1 ("traditional" concrete CIP)

CONCRETE,,CROSS,2,1 (small crosses)

MISCELLANEOUS,Insulation,HARD_INS1,1,,1 (straight lines)

MISCELLANEOUS,Insulation,SOFT_INS,1,,1 (rounded lines)

MISCELLANEOUS,Insulation,SOFT_INS2,1,,1 (completely round)

Option

Description

Material type

STEEL, CONCRETE, TIMBER, MISCELLANEOUS (case sensitive)

Cast unit type

Precast or CIP. You also need to define the cast unit type for concrete parts in part properties.

Material name

The material name defined for the part in part properties in the model.

The character limit for the material name is 32 characters.

Hatch name

To check the hatch pattern names and related hatch patterns, do the following, for example: Go to the Fill tab in view-level Part properties and click the ... button next to the Type list. Then click a pattern to see its name in the Type list. The selected hatch pattern is marked with a red frame. Hatch names are case sensitive.

If you do not want to use any hatch pattern for a material, leave the hatch name field blank in the schema file.

Color

You can enter a single color index value (such as 160 for the standard Tekla Structures red color) or a specific custom RGB color. To specify a custom color, enter the HEX value of the color. For example, for a specific shade of green, enter 0x00DC32.

Legacy Tekla Structures index colors:

BLACK: 0 (default)

WHITE: 1

RED: 2

GREEN: 3

BLUE: 4

CYAN: 5

YELLOW: 6

MAGENTA: 7

Standard Tekla Structures index colors:

INVISIBLE: 152

BLACK: 153

RED: 160

GREEN: 161

BLUE: 162

CYAN: 163

YELLOW: 164

MAGENTA: 165

BROWN: 154

DARK GREEN: 155

DARK BLUE: 156

DARK CYAN: 157

ORANGE: 158

GRAY: 159

GRAYSCALE 1: 130

GRAYSCALE 2: 131

GRAYSCALE 3: 132

GRAYSCALE 4: 133

NOTE: The hatch color defines the line width for the printer. If you do not define a color for a hatch in the schema file, Tekla Structures uses the default color black (0).

Scale

Scale is a numeric value that Tekla Structures uses to scale hatches.

Automatic scaling and rotation

Automatic scaling and rotation defines whether you want to use automatic scaling and rotation.

TRUE: 1

FALSE: 0 (default)

Automatic scaling and rotation requires additional processing, so use it only when necessary.

Example of the cast_unit.htc file:
/**************************************/
/* Tekla Structures hatch schema file */
/**************************************/

/******************************************************************************************************

	Purpose
	-------
	This file is used to define the hatch patterns for different materials for
	Tekla Structures automatic hatching functionality. These settings will be used
	when the hatching option is set to "Automatic" in the drawing.

	Syntax
	-------
	Material Type, Cast unit type, Material Name, Hatch name, Scale, Color, Automatic scaling and rotation

	Available options
	-----------------
	Material Type:
	STEEL
	CONCRETE
	TIMBER
	MISCELLANEOUS

    Cast unit type:
	CIP
	Precast

	Colors:
	BLACK      	0 (default)
	WHITE      	1 
	RED        	2
	GREEN      	3 
	BLUE       	4 
	CYAN       	5 
	YELLOW     	6
	MAGENTA    	7
       GRAYSCALE 1	130
	GRAYSCALE 2	131
	GRAYSCALE 3	132
	GRAYSCALE 4	133
	INVISIBLE:	 152
	BLACK:	     153
	RED: 	      160
	GREEN: 	    161	
	BLUE: 	     162
	CYAN: 	     163
	YELLOW: 	   164
	MAGENTA: 	  165
	BROWN: 	    154
	DARK GREEN:       155
	DARK BLUE: 	156
	DARK CYAN: 	157
	ORANGE: 	   158
	GRAY: 	     159
	GRAYSCALE 1:      130
	GRAYSCALE 2:      131
	GRAYSCALE 3:      132
	GRAYSCALE 4:      133 
	- To use an RGB color, enter the HEX value of the color. For example, for a specific 
	shade of green, enter 0x00DC32.

	Automatic scaling and rotation:
	TRUE	   1
	FALSE	  0 (default)

	Instructions for use
	--------------------
	- material and hatch names are case sensitive
	- automatic scaling and rotation option requires additional processing, so use it only when necessary

	Examples
	--------
	CONCRETE,,hardware_SOLID,,130			(gray shade)
	CONCRETE,Precast,C25/30,CONC,0.3,1 		 ("traditional" concrete Precast)
	CONCRETE,CIP,C25/30,CONCRE,0.3,1 		   ("traditional" concrete CIP)
	CONCRETE,,CROSS,2,1 			 	 (small crosses)
	MISCELLANEOUS,Insulation,HARD_INS1,1,,1    	(straight lines)
	MISCELLANEOUS,Insulation,SOFT_INS,1,,1     	(rounded lines)
	MISCELLANEOUS,Insulation,SOFT_INS2,1,,1    	(completely round)

******************************************************************************************************/
Was this helpful?
Previous
Next