Tips for reports and report templates

Tekla Structures
Tekla Structures

Tips for reports and report templates

There are some things that you might consider to be able to create reports more efficiently.

Select objects to include in a report using GUIDs

You can select objects to be included in reports by using their GUIDs (globally unique identifiers).

  1. In Template Editor, create a template that is used for creating the report:
    1. In Tekla Structures, on the File menu, click Editors > Template Editor.
    2. In Template Editor, click File > New.
    3. Select Textual template and click OK.
    4. Add a row for the GUID.
      • Click Insert > Component > Row.

        Select a content type for the row and clicking OK.

      • Click Insert > Text and enter the text guid:, Guid: or GUID:. Click OK.

        This enables the selecting of objects in the model.

      • Click Insert > Value Field. 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.

        Select the attribute GUID and click OK.

    5. Add the required amount of other rows in the template.
    6. Click File > Save As .

      Enter a name for the template and browse to the folder that has been defined templates for the advanced option XS_​TEMPLATE_​DIRECTORY. Use the file name extension .rpt.

  2. Create a report based on the report template you saved.
    1. On the Drawings & reports tab, click Reports.
    2. Select the report template you created from the list.
    3. Click Create from all.

      Tekla Structures displays the report.

  3. Click a row that contains an GUID number in the report.

    Tekla Structures selects the corresponding object in the active model view.

Show report content in correct cells

You can associate Tekla Structures to open reports of a certain type in Microsoft Excel. When you open such reports in Microsoft Excel, the report template rows might not be divided correctly into cells. To correct this, you can add tabs between the cells.

  1. Open an existing report template in Template Editor.
  2. Add \t between the text and value fields. For example:

  3. Save the report.

    The output in Microsoft Excel:

    The output in a text editor:


Alternatively, you can use a comma or semicolon as a delimiter between the text fields. However, the default delimeter may vary between users, and the output might not be readable in all text editors.

Was this helpful?