How to use templates created with newer versions


Software version: 2020 - 2021

Last updated February 5, 2021 by Area Finland Service tekla.support.fi@trimble.com

Environment: 
Not environment-specific

How to use templates created with newer versions

If you've created a template that you want to use in older versions as well, you may notice that the template is not appearing in the drawing. And if you try to open the template with older version's Template editor, you may get error messages such as below:
    
To work around these errors, you can simply delete the properties that were added in newer Template editor versions, by opening the file in Notepad and erasing the lines containing the attributes. Obviously these settings are then not applied in the converted template. In case of the second picture, the error message points out the lines that you need to remove in the file, but if not, here is a list of added features that are present in template files created with versions after Tekla Structures 2017:

2017i:

Organize data in columns

You can now organize data in columns that start from top left, top right, bottom left or bottom right. These settings can be modified in the Row Properties dialog box. To use columns, select the Use columns check box, and then define the order:

This feature is written on template attribute fillstartfrom.

Support for multiple lines of values

You can now enter multiple lines of values in the Name field in the Value Field Properties dialog box. You also need to enter the number of lines. The lines will be reserved even if you do not enter multiple lines.

To get the end result to go to multiple lines press Enter at the end of the row.
"Profile:" + "\n"
+ GetValue("PROFILE")
If you do not press Enter , and if the value does not fit in one value field cell due to length limitations, the value continues to the next line if you have set the line count to more than 1 and the row height allows that.

This property is written in valuefield attribute maxnumoflines.

2018:

Use page headers/footers as column headers/footers

You can now use page headers as column headers in template output. To do this, select the new page header component option Use columns. Page footers can also be used as column footers.

These properties are written in pageheader and pagefooter attribute usecolumns.

2020:

Template object colors can now be overridden in row rules by defining an override parameter for the Output() function. For more information, see “Overriding template object colors with row rules in Template” in Template Editor 4.0 User's Guide.
The following rule overrides the colors when the LENGTH attribute is longer than 1000. Value fields are orange, text objects are yellow and the drawing color is blue (i.e. lines are blue).

Choose from the 14 colors that you can use in Template Editor. Valid color names are black, white, red, green, blue, cyan, yellow, magenta, brown, darkgreen, navyblue, greenblue, orange and gray. The color names are case-insensitive.

For this feature, template attribute colors is added in the .tpl files.

Multiline value field should have its content attached to the top, so the data is filled from top to bottom. Default will remain from bottom so as not to break old behavior.
This property is written in valuefield attribute aligncontenttotop

Tags: 
edit templates
drawing template
modifying template

Quick feedback

The feedback you give here is not visible to other users. We use your comments to improve our content.
We use this to prevent automated spam submissions.
Content rating: 
Average page rating: 5 (3 votes)
Refresh page after voting to show updated result.