Create a template in HTML format

Tekla Structures
2023
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.

Note:

If you add images to your HTML template, the images must be in the ..\Program Files\Tekla Structures\<version>\bin\applications\Tekla\Tools\TplEd\bitmaps folder. Images in other folders are not shown in the HTML output.

  1. On the File menu, click Editors > Template Editor.
  2. In the Template Editor, click File > New.
  3. Select Graphical template, then click OK.
  4. Add new rows in the template.
    1. To add a new row, click Insert > Component > Row.
    2. Select a content type for the row, then click OK.
  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 open and prompts you to select an attribute for the value field.

    3. Select an attribute, then click OK.
  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.
  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.

Example

  1. Header that contains text fields
  2. Row that contains two value fields
Bylo to užitečné?
Předchozí
Další