Hello!

Did you know that logged in users can see a lot more content?

Create a template in HTML format

Last updated March 12, 2019 by Tekla User Assistance tekla.documentation@trimble.com

Software version: 
2019

Create a template in HTML format

Create a template in HTML format

Templates in HTML format give you more possibilities for different layout, fonts, and images. Templates that generate output in HTML format are graphical and have the file name extension *.html.rpt.

  1. On the File menu, click Editors > Template Editor.
  2. In Template Editortool in Tekla Structures that is used for creating and modifying templates to be used in drawings and reports

    , click File > New.

  3. Select Graphical template and click OK.
  4. Add new rows in the template.

    1. Click Insert > Component > Row to add a new row.
    2. Select a content typedetermination of which template attributes can be used in the template object value fields for a template component row

      Content types are mainly based on object types.

      for the row and click OK.

    3. Repeat steps a–b for each new row.
  5. Add value fields to get the required data from your Tekla Structures database.

    1. Click Insert > Value field .
    2. Click a point to define the location of the field within the row.

      The Select Attribute dialog box appears prompting you to select an attribute for the value field.

    3. Select an attribute and click OK.
    4. Repeat steps a–c for each value field.
  6. Add a header for each value field.
    1. Click Insert > Component > Header...
    2. Click Insert > Text...
    3. Enter a heading for the template, and then click OK.
    4. Click a point to define the location of the heading in the header row.
    5. Repeat steps a–d to create headings for all the value fields.
  7. Save the template:
    1. Click File > Save as
    2. Browse to the template folder defined for the advanced option XS_TEMPLATE_DIRECTORY.
    3. In the File name field, enter a name for the template.

      Include the extension *.html.rpt in the file name. For example, Part_list.html.rpt.

    4. Click OK.
Note:

If you add images in your HTML template, the images should be located in ..\Program Files\Tekla Structures\<version>\nt\TplEd\bitmaps folder, otherwise they are not shown in the HTML output.

Example

  1. Header that contains text fields
  2. Row that contains two value fields

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: 
No votes yet