Create a template in HTML format

Tekla Structures
2019
Tekla Structures

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 Editor, 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 type 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
Oliko tästä apua?
Edellinen
Seuraava