Create a graphical template
You can insert graphical templates (.tpl) in drawing layouts as tables, text blocks, or drawing headers, for example. You can also add graphical templates as elements in marks and associative notes.
-
On the Tekla Structures File menu, click Editors > Template editor.
You can also open Template Editor from the Windows Start menu.
- In Template Editor, click File > New.
-
Select
Graphical template.
To create a new template based on a pre-defined template, select a file from the pre-defined templates section in the Template types dialog box.
-
Click
OK.
An empty template opens in the template work area, and you can start adding content. If you selected a pre-defined template, the work area contains pre-defined content.
-
Set or modify the template page settings and margin settings:
- Double-click the template to open the Template Page Properties dialog box.
- In the Output,
Workarea, and Margins
areas, modify the following:
- Width and Height: Set in graphical units. The option to use page breaks if the page height is exceeded is selected by default. If this is not selected, no page breaks appear in the output.
-
View height: Set the page height for template design, but does not affect template output.
-
Margins: Set the margins for the left, right and bottom of the template in graphical units.
-
Use font CAP height: Set how the font size is calculated and output in graphical templates. It means that the text size will output exactly as defined. See Control font height in graphical templates for more information.
- Click OK to save the changes.
-
Add a row in the template for the drawing title block.
- Click Insert > Component > Row.
-
Select the content type
for the row, and click OK.
The content type that you select affects the template attributes that you can add in the value fields. In this example, we select DRAWING.
-
Add the needed text labels
to the row.
- Select the row and click Insert > Text.
-
Type the needed text
and click OK.
- Pick a location for the text in the row.
-
To modify the text
properties, double-click the text, adjust the properties, and click
OK.
For example, enter a name for the text object and change the font size. The name will be shown in the content browser.
Pay attention to the content browser on the left while you are adding content to the template. It shows you the added content objects and allows you to quickly select and work with the content objects. When you select an object from the content browser, the object is also selected in the template.
You can change the color of a text object. To do this, double-click a text object in the template, and in the object properties, click the button next to the font setting. Then click the color box and select a custom color.
- Add the rest of the text labels to the row in the same way.
-
Add the necessary value
fields to the row.
- Select the row, click Insert > ValueField and pick a location for the value field in the row.
-
Select an attribute
to add in the value field from the list of available attributes and
click OK.
In this example, we select NAME under PROJECT.
- Add other value fields in the same way.
-
To modify the value
field properties, double-click the value field.
For example, change the value field name, font size, and allowed text length. The value field name will be shown in the content browser and in the template.
- Click OK.
Here we have added the needed value fields to the row and modified the value field properties:
The content browser shows the added content:
-
Finalize the template.
When you have the desired content in the template, you can make the template look nicer by repositioning labels and value fields, cropping the rows, or adding lines to separate the columns and rows. Cropping removes any unnecessary space from around the rows.
- To crop the row, select the row, right-click, select Crop, and then select the desired crop option.
- Drag the text labels and value fields to reposition them if necessary.
- Draw lines in the template between columns and rows by using the
graphical tools. You can double-click the created objects to change
the color and other properties.
You can change the color of a shape object. To do this, double-click a shape object, such as a line, and in the object properties, click the color box and select a standard color or a custom color.
Here is the final template content:
-
Save the template.
- Click File > Save as.
-
Save the template in the model folder. If you want to use the
template in other projects as well, save the template in the
template folder defined for the advanced option
XS_FIRM
orXS_PROJECT
. - In the File name field, enter a name for the template.
- Click OK.
In graphical templates, you can also import DWG/DXF files and use those as title blocks. For more information, see "Import DWG into Template Editor to create custom Title blocks".