Templates and Reports Guide 211 Enu
Templates and Reports Guide 211 Enu
1 Templates............................................................................................................3
1.1 Creating a template..................................................................................................................4
Creating a template in HTML format............................................................................................................................5
Creating a template for nested assemblies.................................................................................................................6
Creating a template for bending schedules or pull-outs ................................................................................... 10
Bending schedule attributes...................................................................................................................................11
Adding images in a template........................................................................................................................................12
1.2 Content types..........................................................................................................................14
1.3 Template attribute files......................................................................................................... 17
User-defined template attributes................................................................................................................................18
Adding user-defined template attributes.......................................................................................................... 19
Adding comments to user-defined template attributes................................................................................ 21
Adding hierarchy to user-defined template attributes.................................................................................. 22
2 Reports..............................................................................................................23
2.1 Creating a report.................................................................................................................... 24
Creating a report of selected drawings..................................................................................................................... 25
Creating a report of nested assemblies..................................................................................................................... 25
2.2 Viewing a report .................................................................................................................... 26
Defining how reports are displayed............................................................................................................................ 26
Adding tabs to reports....................................................................................................................................................27
2.3 Printing a report ....................................................................................................................28
2.4 Report settings........................................................................................................................29
4 Disclaimer.........................................................................................................34
2
1 Templates
Templates are descriptions of forms and tables that can be included in Tekla Structures.
Templates are either graphical or textual. Graphical templates can be included in drawings as
tables, text blocks, and drawing headers. Textual templates can be used as reports. The
contents of the template fields are filled in by Tekla Structures at run time.
Tekla Structures includes a large number of standard templates you can use. Use Template
Editor to modify existing templates, or create new ones to suit your needs. Graphical
template definitions have the file name extension .tpl. Textual template definitions have
the file name extension .rpt.
Example
For more information on using templates, see the Template Editor Help or the Template Editor
User's Guide
To access Template Editor Help, open Template Editor and click Help --> Contents .
To open the guide in .pdf format, click Template Editor User's Guide.
See also
Creating a template on page 4
Reports on page 23
Templates 3
Templates on page 3
Tables
See also
Templates on page 3
Example
See also
Templates on page 3
Adding images in a template on page 12
Example
Below is an example textual template and a report that has been created using the template:
See also
Templates on page 3
Example
See also
Creating a template for bending schedules or pull-outs on page 10
NOTE • Do not add really large images, as they update very slowly.
• The image may look different in the image editor than in the printout or in the
exported DWG file.
• When you export the drawing to DWG, Tekla Structures copies the images in the
same folder as the DWG file. If the image for some reason is not in the same
folder, only the name of the image is displayed together with an empty frame
instead of the image in the DWG.
• If environments have local symbols, the local symbol folder is also included in
the search path with the common\symbols folder. If the local symbols folder
Example
Below are some examples of the Select Picture File dialog box showing folder structure in
different environments.
See also
Templates on page 3
You cannot have any rows below SIMILAR_* row content type
in the row hierarchy.
Note: Used in drawings to collect similar object information from
the model. All the other attribute information is collected from
visible drawing objects.
SINGLE_REBAR Use to create lists of individual bars in reinforcing bar groups.
For example, use it to the get the lengths of the individual bars in
tapered reinforcing bar groups.
SINGLE_STRAND Use to create lists of individual prestressed strands.
STRAND Use to create lists of prestressed strands.
STUD Use to create lists of studs.
SURFACING Use to create lists of surfacings.
SUMMARY Use to summarize the contents of the row(s) that are above
SUMMARY in the hierarchy.
See also
Template attribute files on page 17
When you output the template, Tekla Structures replaces the attribute with the actual value
of the corresponding object property. For example, if you include the attribute WEIGHT in a
report template, Tekla Structures displays the weight of the model object in the report.
Template attributes are defined in the following files:
See also
User-defined template attributes on page 18
See also
Adding user-defined template attributes on page 19
Adding comments to user-defined template attributes on page 21
Adding hierarchy to user-defined template attributes on page 21
Before you start, add the user-defined attribute to the objects.inp file. For example, you
might add an attribute named MY_ATTRIBUTE to the user-defined properties for drawings.
To add a comment:
1. Open your copy of the contentattributes_userdefined.lst file.
For example, MY_contentattributes_userdefined.lst. Do not modify the
original contentattributes_userdefined.lst file.
2. Scroll down to the list of attributes assigned to content types.
3. Add your comment inside quotation marks, after the attribute name.
For example:
See also
User-defined template attributes on page 18
To add hierarchy:
1. Open your copy of the contentattributes_userdefined.lst file.
For example, MY_contentattributes_userdefined.lst. Do not modify the
original contentattributes_userdefined.lst file.
2. Scroll down to the list of attributes assigned to content types.
3. Define the hierarchy in square brackets, between USERDEFINED. and the attribute
name.
For example:
NOTE Notice the full stops after the brackets, and between the hierarchies.
WARNING User-defined attributes are case sensitive. Ensure that you enter the attribute name
using the correct case for all characters.
See also
User-defined template attributes on page 18
You can create reports of the information included in models. These could be lists of
drawings, bolts, and parts, for example. Tekla Structures creates reports directly from the
model, so the information is always accurate. Reports can contain information about selected
parts or the entire model.
Tekla Structures includes a large number of standard report templates. Use Template Editor to
modify the existing report templates, or create new ones to suit your needs. The report
templates are located in the folder ..\ProgramData\Tekla Structures
\<version>\environments\<environment>\system. Report templates have
the file name extension .rpt.
Example
For more information on using templates, see the Template Editor Help or the Template Editor
User's Guide
To access Template Editor Help, open Template Editor and click Help --> Contents .
To open the guide in .pdf format, click Template Editor User's Guide.
To create a report:
1. Open the model.
2. If needed, number the model.
3. Click Drawings & Reports --> Create Report... .
4. Select a report template from the list.
5. If needed, enter the report titles you want to use under Titles in reports.
6. If needed, enter a new name for the report file in the Name box.
7. If needed, set the report options on the Options tab.
8. Unless you want to create a report of the entire model, select the objects you want to
include in the report.
9. Do one of the following:
• To run a report on the entire model, click Create from all.
• To run a report on the selected model objects, click Create from selected.
TIP You can create reports without numbering the model objects. This is useful when you need to
produce draft reports from large multi-user models. Tekla Structures still warns you if numbering
is not up to date.
See also
Reports on page 23
Report settings on page 29
Creating a report of selected drawings on page 24
Creating a report of nested assemblies on page 25
TIP To select multiple drawings, hold down Ctrl and then click the drawings you want
to select.
See also
Report settings on page 29
See also
Report settings on page 29
See also
Defining how reports are displayed on page 26
TIP To do this in Windows 7 or Windows Vista, click Control Panel --> Default
Programs --> Associate a file type or protocol with a program .
2. In Tekla Structures, click Drawings & Reports --> Create Report... and go to the
Options tab.
3. In the Show report list, select With associated viewer.
4. Click Save in the Report dialog box.
See also
Viewing a report on page 26
See also
Viewing a report on page 26
Option Description
Titles in reports Optional report titles.
You can enter up to three report titles. All the titles are not used
in every standard report. Title1, for example, is used to show
phase information in the Assembly_list report.
Browse... Use to change the folder where the report will be stored. By
default, reports are stored in the current model folder.
Show report Defines how Tekla Structures displays reports.
On dialog displays the report in a new window.
With associated viewer displays the report in the associated
program. For example, you can have Tekla Structures open all
HTML reports in a web browser.
Show created report Defines whether or not the report is automatically shown on the
screen after it has been created.
See also
Reports on page 23
This section provides useful hints and tips that help you use templates and reports more
efficiently.
Click the links below to find out more:
• Selecting objects included in reports on page 30
• Useful shortcuts in viewing logs and reports on page 31
• Using text type attribute in calculations on page 32
• Changing value field content if using imperial units on page 32
• Defining customized date format on page 32
• Assembly or cast unit drawing sheet number on page 33
See also
Creating a template on page 4
Creating a report on page 24
To Do this
Zoom to the selected objects 1. Hold down Z.
2. Click a row that contains an ID number.
Tekla Structures zooms to the corresponding objects in
the active model view.
Fit the work area to include only the 1. Hold down F.
selected objects
2. Click a row that contains an ID number.
Tekla Structures zooms to the corresponding objects in
the active model view.
See also
Tips for templates and reports 31 Useful shortcuts in viewing logs and reports
3.3 Using text type attribute in calculations
Change text to numeric format
double(GetValue("ASSEMBLY_TOP_LEVEL"))
Change into correct format for calculation (double=decimals)
format(double(GetValue("ASSEMBLY_TOP_LEVEL")),"Length", "mm",
1)
Add all above into calculation formula
format(double(GetValue("ASSEMBLY_TOP_LEVEL")),"Length", "mm",
1)+15000
Another example of the same for part elevation
(double(GetValue("TOP_LEVEL"))-
(double(GetValue("BOTTOM_LEVEL"))))*1000
Tips for templates and reports 32 Using text type attribute in calculations
3.5 Defining customized date format
Use mid function to find year, month and day.
mid("","","") string, offset, n
year
mid(format(GetValue("DATE"),"Date","dd.mm.yyyy", ),"6","4")
month
mid(format(GetValue("DATE"),"Date","dd.mm.yyyy", ),"3","2")
days
mid(format(GetValue("DATE"),"Date","dd.mm.yyyy", ),"0","2")
Combine all above in rule
mid(format(GetValue("DATE"),"Date","dd.mm.yyyy", ),"6","4")
+"-"+
mid(format(GetValue("DATE"),"Date","dd.mm.yyyy", ),"3","2")
+"-"+
mid(format(GetValue("DATE"),"Date","dd.mm.yyyy", ),"0","2")
Tips for templates and reports 33 Assembly or cast unit drawing sheet number
4 Disclaimer
A G
assemblies graphical templates.......................................................5,10
in reports......................................................................25
in templates...................................................................6
attributes
in bending schedules.................................................11
H
in templates................................................................ 17 hierarchy
in templates................................................................ 21
HTML templates................................................................... 5
B
bending schedule...............................................................10
bending schedules
I
attributes and values................................................ 11 images
in templates................................................................ 12
imperial units..................................................................... 32
C
calculations.........................................................................32
comments
L
in templates................................................................ 21 log files
content types......................................................................14 viewing......................................................................... 31
creating
reports.....................................................................24,25
templates.................................................................... 4,5 P
pictures
in templates................................................................ 12
D printing
date reports...........................................................................28
format........................................................................... 32 pull-out pictures................................................................10
drawings pullout pictures..................................................................10
in reports......................................................................24
R
F reports.................................................................................. 23
fonts adding tabs..................................................................26
reports...........................................................................28 creating........................................................................ 24
free attributes............................................................... 10,11 drafts.............................................................................24
fonts.............................................................................. 28
of drawings..................................................................24
37
of nested assemblies.................................................25 in calculations............................................................ 32
printing.........................................................................28 textual templates................................................................ 6
settings......................................................................... 29 tips
tips................................................................................. 30 templates and reports.............................................. 30
titles.............................................................................. 29 useful shortcuts in viewing logs and reports.....31
viewing....................................................................26,31 titles in reports.................................................................. 29
S U
saving user-defined attributes
templates........................................................................4 in templates.....................................................18,19,21
selecting
objects included in reports..................................... 30
settings
reports...........................................................................29
V
sheet numbers....................................................................33 value fields
shortcuts imperial units..............................................................32
in viewing logs and reports.....................................31 viewing
reports...........................................................................26
T
tabs
in reports......................................................................26
template attributes...........................................................17
Template Editor.............................................................. 3,23
templates............................................................................... 3
adding images............................................................ 12
aligning objects............................................................ 6
attributes..................................................................... 17
comments.................................................................... 21
content types..............................................................14
creating...........................................................................4
free attributes.............................................................10
graphical templates......................................... 5,10,12
headers and footers................................................. 5,6
hierarchy...................................................................... 21
in HTML format............................................................ 5
moving objects..............................................................6
of bending schedules...........................................10,11
of nested assemblies................................................... 6
rows............................................................................... 14
saving.............................................................................. 4
sorting order..................................................................6
textual templates.........................................................6
tips................................................................................. 30
user-defined attributes................................ 18,19,21
text type attributes
38