Tekla Structures - Templates and Reports Guide
Tekla Structures - Templates and Reports Guide
A TRI MBLE C O M P A N Y
Tekla Structures
Templates and Reports Guid
P ro d u c t v e rs io n 18.1
A ugust 2012
Font Usage
Bold Any te x t th a t you see in the user interface appears in bold. This
fo n t is used, fo r example, fo r w in do w and dialog box title s, box
and b u tto n names, and list items.
Italic bold New term s are in italic bold when th e y appear in the cu rre n t
co n te xt fo r the firs t tim e.
You should always read very im portant notes and warnings, like
(
Contents
1 T e m p la t e s ................................................................................................................................................. 5 C
2 R e p o r t s .................................................................................................................................................... 2 1
4
o
o
o
o 1 Templates
o
Templates are descriptions o f form s and tables th a t can be included in Tekla Structures. Templates
o are either graphical or te xtual. G raphical tem plates can be included in draw ings as tables, te x t
o blocks, and draw ing headers. Textual tem plates can be used as reports. The contents o f the tem plate
fields are fille d in by Tekla Structures at run tim e.
Tekla Structures includes a large num ber o f standard tem plates you can use. Use Tem plate Editor to
m od ify existing tem plates, or create new ones to su it your needs. Graphical te m pla te defin itio n s
o have the file name extension . t p l . Textual tem plate d e fin itio n s have the file name extension
.rpt.
o Example
o ASS.POS PROFILE MATER NUM LENGT AREA WEIGHT
o M O DELLED BY D E S IG N E R IS S U E D IS S U E _ D A T
i
o C O N TR A C T NO
D R A W IN G No
PRO JECT
BASE_N A M E
SC A LE SCALE 1
R E V IS IO N No.
JBESL
S C A LE 2 S C A LE 3
For more inform a tio n on using tem plates, see the Template Editor
Help.
O To access Help, open Tem plate Editor and click Help > Contents.
Tem plate Editor Help is also available in PDF fo rm a t on the Tekla
O Structures installa tio n DVD.
Templates
O
U
n
1.1 Creating a tem plate
To create a te m plate:
1. Click Drawings 8t Reports > Template Editor...
2. In Tem plate Editor, click File > New.
3. Select the tem plate type and click OK. A new em pty tem plate is created.
4.. Add new rows in the tem plate.
a Click Insert > Component > Row to add a new row.
b Select a co n te n t type fo r the row and click OK.
c Repeat steps a -b fo r each new row.
5. Add value fields to get the required data from yo ur Tekla Structures database.
a Click Insert > Value field.
b Click a p o in t to define the location o f the field w ith in the row.
The Select Attribute dialog box appears prom pting you to select an a ttrib u te fo r the
value field.
c Select an a ttrib u te and click OK.
d Repeat steps a -c fo r each value field.
6. Save the tem plate.
a Click File > Save as...
b Browse to the te m pla te folder
..\environment\<your_environrnent>\template.
c In the File name fie ld , enter a name fo r the tem plate,
d Click OK.
Example
P o s itio n r e p o r t : : : : : : : : : : : : : :
.............................................................................{ T )
Partpo:sitioa' : : : : M aterial: : : : : : V .
- B-
P A R T _ P O S _ f : m a t e r i a ::
If you add images in your HTML tem plate, the images should be
located in . .\Program Files\Tekla
Structures\<version>\nt\TplEd\bitmaps folder,
otherw ise they are n ot shown in the HTML outpu t.
c
Templates Creating a template
c
L.
The Select Attribute dialog box appears prom pting you to select an a ttrib u te fo r the
value fie ld .
c Select an a ttrib u te and click OK.
d Repeat steps a -c fo r each value field.
7. M o d ify the layout o f the tem plate. For exam ple:
a Move objects to display the nested assembly stru ctu re in the printed report. To do this,
select the obje ct you w a n t to move and drag it to the desired position,
b A lign objects. To do this, select all the objects you w a n t to align, rig h t-c lic k and select
the appropriate option from the pop-up menu, fo r exam ple Align > Right,
c Add a header and a footer. To do this, click Insert > Component > Page header and Page
footer. Add the required in fo rm a tio n to the header and footer.
8. Save the tem plate.
Example Below is an exam ple te xtu a l tem plate and a report th a t has been created using the te m pla te :
TOP/1 1 67 7 . 5
SUBTRUSS/S 2 338. 7
1001 2 3.6
1002 2 3.4
T/2 2 10.3
T/3 2 12. 5
T/4 2 14. 8
T/6 2 12.2
T/7 2 14. S
T/8 2 17. 0
T/9 2 16. 3
T/10 2 9.3
T/ll 2 11.9
T/12 2 14. S
T/1S 2 73.1
T/16 4 62. 7
Example S tu c ira I
( w T H OtxpwatScn 0 -. 0 * 0 1 2007
P:4*o> Gltfe loror\ Inml VVtOH (til W oW Tct Pul o.< t o u o
1 ii t M W 2J1DO 21 21
3 V/ t U > 0 00 09
f
4 M t 0CI1W 0 1.0 10
7 1* 1 4C<0 *3 M
a 12 1 OCI<W is n o 11 1.
9 (2 t k MCi w fK M 15 15
RotationAxis 2 0 = by view
1 = by global Z
2 = by local axis
Exaggeration 1 0 = no
1 = yes
EndMark 1 1 = stra ig h t
2 = h a lf arrow
3 = fu ll arrow
Dimensions 1 0 = no
1 = yes
BendingRadius 0 0 = no
1 = yes
BendingAngle l 0 = no
1 = yes
Example Below are some examples of the Select Picture File dialog box showing folder structure in different
environments.
rrr
In the fo llo w in g exam ple, the Tekla Structures logo has been added in a tem plate.
T E K IA ' Structures 1 6
DRAWING TITLE A3
MODELLED BY ISSUED
CONTRACT NO 1 SCALE
DRAWING NO REVISION NO 0
in
BOLT Use to create screw and b o lt lists. Includes all bolts connected to
selected parts.
COMMENT Use to create em pty rows or rows th a t only have te xtu a l data or
lines anywhere on a tem plate.
DRAWING Use to create draw ing lists w ith o u t revision h istory inform ation.
Use fo r reports and included drawings.
HISTORY Use to retrieve history info rm a tio n o f the model. You can use this
co n te n t type w ith p a r t , r e b a r ,c o n n e c t i o n and d r a w i n g rows.
The fo llo w in g te m plate a ttrib u te s can be used w ith this co ntent
type:
type :the type o f the historical action, fo r exam ple update or
num bering.
user :the user who made the change.
time :the tim e the change was made.
c o m m e n t :the com m ent w hich was entered upon clicking Save.
r e v i s i o n _ c o d e : the revision code w hich was entered upon
clicking Save.
NUT Use to create lists o f nuts. Contains all nuts fo r bolts associated
w ith the selected parts.
o PART
() _L
| s im il a r _ p a r t |
o
o You cannot have any rows below s i m i l a r _* row co nten t type in
the row hierarchy.
o Note: Used in draw ings to co llect sim ilar object in fo rm a tio n from
o the model. A ll the other a ttrib u te info rm a tio n is collected from
visible draw ing objects.
o SINGLE_REBAR Use to create lists o f individual bars in reinforcing bar groups.
o For example, use it to the get the lengths o f the individual bars in
tapered reinforcing bar groups.
SUMMARY Use to sum m arize the contents o f the row(s) th a t are above
summary in the hierarchy.
o
PART
o 1
o SUMMARY I
o
For example, use p a r t - s u m m a r y hierarchy to sum m arize the
contents o f the p a r t rows.
(J WASHER Use to create lists o f washers. Contains all washers fo r all bolts
associated w ith the selected parts.
o WELD Use to create lists o f welds.
o See also Tem plate a ttrib u te s (16)
o
o
( )
1.3 Template attributes
Template a ttrib u te s represent object properties. You can use tem plate a ttrib u te s in value fields,
form ulas, and row rules to get the required data from your Tekla Structures database.
When you o u tp u t the tem plate, Tekla Structures replaces the a ttrib u te w ith the actual value o f the
corresponding obje ct property. For example, if you include the a ttrib u te w e i g h t in a report
tem plate, Tekla Structures displays the w e ig h t o f the model object in the report.
Template a ttrib u te s are defined in the fo llo w in g files:
(p a r t )
PART
C ASSEMBLYHAIWPART.USERDEFINED ^[Parameters'.comment
ASSEMBLY, HAINPART. USERDEFINED .[Parameters] xs_shorten
PART ASSEMBLY, MAINPART. USERDEFINED .[Parameters] cambering
PART ASSEMBLY. HAINPART. USERDEFINED .[Parameters] PRELIH_HARK
PART ASSEMBLY. MAINPART. USERDEFINED .[Parameters] OB JECT_LOCKED
PART ASSEMBLY, HAINPART. USERDEFINED .[Parameters] fabricator
PART ASSEMBLY. HAINPART. USERDEFINED .[Parameters] USER_FIELD_1
PART ASSEMBLY. HAINPART. USERDEFINED .[Parameters] USER_FIELD_2
PART ASSEMBLY, HAINPART. USERDEFINED .[Parameters] USER_FIELD_3
PART ASSEMBLY. HAINPART. USERDEFINED .[Parameters] USER_FIELD_4
PART ASSEMBLY. HAINPART. USERDEFINED .[Parameters] USER PHASE
C om m ent u
[ My attribute
User fie ld 2 M
User fie ld 3 m i
To add user-defined a ttrib u te s to the a ttrib u te tree:
1. Open the contentattributes_userdefined. 1st file in a te x t editor.
2. Save the file w ith an appropriate name, fo r example
MY_contentattributes_userdef ined. 1st, in the same folder.
3. Add m y _a t t r i b u t e to the list o f a ttrib u te names and, define the settings as fo llo w s:
MORTAR, WIDTH_____________________ FLOAT_______ RIGHT TRUE
(MY_ATTRIBUTE CHARACTER LEFT TRUE*)
OBJ ECT_LOCKED CHARACTER LEFT TRUE
/ / = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
// Drawing attributes
// --------------------------------------
// tab_page("DR_Parame ters")
/ / = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
o a
B fil
REVISION
USERDEFINED
Q D RAW IN G_U S E R FI E LD_1
o
D RAW IN G_U S E R FI E LD_2
o Q
Q
DRAW ING_USERFIELD_3
DRAW ING_USERFIELD_4
o
D RAW I NG_USERFIELD_5
D RAW I NG_USERFIELD_6
o
H
D RAW I NG_USERFIELD_7
D RAWI N G_U S E R FI E LD_8
M Y_ATTRIBUTE
o
o See also User-defined te m plate a ttrib u te s (16)
o The com m ent you added is displayed in the a ttrib u te tree in Tem plate Editor:
o B ft USERDEFINED
D R A W IN G JJS E R F IE L D J
o Q
DRAW ING_USERFIELD_2
D RAW I N G_U S E R FI E LD_3
D RAW I NG_USERFIE LD_4
Q D RAW I NG_USERFIE LD_5
o Q
DRAW ING JJSERFIELD_6
D RAW I NG_USERFIE LD_7
o H DRAW ING_USERFIELD_8
Q (M Y_ATTRIBUTE -m y com m ent)
o
See also User-defined tem plate a ttrib u te s (16)
Q
Adding hierarchy to user-defined tem plate attributes
o You can add your own hierarchy to the Template Editor a ttrib u te tree.
To add hierarchy:
o
1. Open your copy o f the contentattributes_userdef i n e d .1st file.
o For example, MY_contentattributes_userdef i n e d .1st. Do n ot m odify the original
contentattributes_userdef i n e d .1st file.
o 2. Scroll down to the list o f a ttrib u te s assigned to co nten t types.
3. Define the hierarchy in square brackets, between u s e r d e f i n e d . and the a ttrib u te name.
o
o
Templates 19 Template attributes
o
()
For exam ple:
E l - f i l USERDEFINED
D DRAW IN G JJ S E R FI E LD_1
d DRAW ING_USERFIELD_2
D RAWI NG_USERFIE LD_3
D RAWI NG_USERFIELD_4
I...| ] D FiAVv'l N G_U S E R FI E LD_5
D RAWI N G_U SERFIELD_6
D RAWI N G_U SERFIELD_7
j...1 D RAWI NG_USERFIELD_8___________
rQ [Folder 1 '
a f i i Folder 2]
1...1 MY_AT T RIB U T E -m y comment
You can create reports o f the in fo rm a tio n included in models. These could be lists o f draw ings, bolts,
and parts, fo r example. Tekla S tructures creates reports d ire ctly from the model, so the inform a tio n
is always accurate. Reports can contain info rm a tio n a bout selected parts or the entire model.
Tekla Structures includes a large num ber o f standard report tem plates. Use Tem plate Editor to
m od ify the existing report tem plates, or create new ones to su it your needs. The report tem plates
are located in the fo ld e r . . \ProgramData\Tekla
Structures\<version>\environments\<environment>\system. Report tem plates have
the file name extension . rpt.
You can create reports w ith o u t num bering the model objects. This is
To select m ultip le draw ings, hold down Ctrl and then click the
C
draw ings you w a n t to select.
2. In Tekla Structures, click Drawings Et 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.
A I B C D E F G H
1 Tekla Structures MATERIAL LIST
2
3 Project number:
4 Project name:
5 Project address:
6
7
8 Date: 07.12.2009
9
10 Profile
11 175*600
Material NUM Length [mm] Length sum Weight! kg]
K40-1 2 6050 12100 0.0
Weight sum
0.0
Area [m2]
9.59 <q
12 175*9000
13 1800*1800
K40-1
K40-1
2
7
9000
650
18000 0.0
4550 0.0
0.0
0.0
168.30
11.16
c
14 2700*2700 K40-1 17 850 14450 0.0 0.0 23.76
15 D6400 S355JR 2 18000 36000 4543782.8 9087565.7 426.19
16 D7000 K40-1 2 800 1600 0.0 0.0 94.53
17 HEA300 S355JR 72 13400 964800 1183.4 85203.9 23.01
The o u tp u t in a te x t editor:
c
( j
-------------------------------------------
| M aterialJist.E x c e l - N o te p a d
Project number:
Project name:
Project address:
Date: 0 7 .1 2 .2 0 0 9
Option Description
Titles in reports O ptional report title s.
You can enter up to three report titles. All the title s are not
used in every standard report. T itle l, fo r example, is used to
show phase info rm a tio n in the Assemblyjist report.
Show created report Defines w h e th er or not the report is a u to m a tica lly shown on
the screen a fte r it has been created.
This section provides useful hints and tips th a t help you use tem plates and reports more e fficie n tly.
Tips for tem plates and reports 27 Selecting objects included in reports
r
Tekla Structures selects the corresponding object in the active model view.
To Do this
Zoom to the selected objects 1. Hold dow n Z.
2. Click a row th a t contains an ID number.
Tekla Structures zooms to the corresponding objects in
the active model view.
format( G e t V a l u e ("DIAMETER"),"Length","mm", 1)
Tips for templates and reports 28 Useful shortcuts in viewing logs and reports
if GetValue("ADVANCED_OPTION.XS_IMPERIAL")==1 then
else
GetValue{"TranslatedText("albl_Diameter_")")+
format(GetValue("DIAMETER"),"Length","mm", 1)+" mm"
endif
year
mid (format {GetValue ("DATE" ) , "Date" , "dd.mm.yyyy", ) , "6 " , "4 ")
month
m i d {format{GetValue("DATE"},"Date"," d d .m m . y y y y " , ), "3 ", "2 " )
days
mid{format{GetValue("DATE"),"Date","dd.mm.yyyy", ), " O " ,"2")
Combine all above in rule
mid {format {GetValue ("DATE") , "Date11, "dd. mm. yyyy" , ) , "6" , ,'4M) + +
mid{format{GetValue("DATE"),"Date","dd.mm.yyyy", ),"3" ,"2 ")+"-"+
mid(format{GetValue("DATE"),"Date","dd.mm.yyyy", ) , "0" , "2")
else ""
endif
d
o
Index
a h
assemblies hierarchy
in re po rts.....................................................................23 in te m p la te s .............................................................. 19
in te m pla te s..................................................................8 HTML te m p la te s .................................................................. 6
a ttrib u te s
in bending schedules.............................................. 11
in tem plates................................................................16 I
images
in te m p la te s .............................................................. 12
b imperial u n its .................................................................... 28
bending schedule............................................................. 10
bending schedules
a ttrib u te s and va lu es.............................................. 11 I
log files
v ie w in g ....................................................................... 28
c
c a lc u la tio n s ....................................................................... 28
com m ents
in tem plates............................................................... 19
P
pictures
conten t ty p e s .................................................................... 14 in te m p la te s .............................................................. 12
creating p rinting
repo rts.......................................................... 21, 22, 23 reports......................................................................... 25
te m p la te s ......................................................................6
d r
reports................................................................................. 21
date adding ta b s................................................................ 24
fo rm a t..........................................................................29 c re a tin g ...................................................................... 21
draw ings d ra fts ........................................................................... 21
in re po rts.................................................................... 22 o f draw ings................................................................ 22
o f nested assemblies............................................... 23
p rin tin g ....................................................................... 25
f s e ttin g s ....................................................................... 26
free a ttrib u te s ................................................................... 10 tip s ............................................................................... 27
title s ............................................................................. 26
v ie w in g ............................................................... 23, 28
g
graphical te m p la te s ................................................... 6, 10
s
saving
te m p la te s ...................................................................... 6
selecting
30
c
(
o
o
( ) objects included in reports.....................................27 rows..............................................................................14
settings saving..............................................................................6
( reports..........................................................................26 sorting order..................................................................8
sheet numbers...................................................................29 textual tem plates........................................................8
5 ' shortcuts tips................................................................................27
^ in viewing logs and reports....................................28 user-defined attributes........................... 16, 18, 19
text type attributes
in calculations...........................................................28
O textual templates................................................................ 8
tips
O tabs
templates and reports.............................................27
in reports.....................................................................24
useful shortcuts in viewing logs and
( ') template attributes..........................................................16
reports................................................................. 28
Template Editor............................................................5, 21
titles in reports............ .................................................... 26
() tem plates........ ....................................................... ..............5
adding images............................................................12
0 aligning objects...........................................................8
attributes.....................................................................16 u
1) comments....................................................................19 user-defined attributes
content types.............................................................14 in tem plates............................................... 16, 18, 19
W creating..........................................................................6
free attributes....................... ....................................10
1 -1 graphical tem plates................................... 6, 10, 12
headers and footers..............................................6, 8
V
value fields
X-J hierarchy.....................................................................19 imperial units.............................................................28
in HTML fo rm a t...........................................................6 viewing
; moving objects............................................................8 reports..........................................................................23
, , of bending schedules.......................................10, 11
of nested assemblies..................................................8
o
o
o
o
o
o
o
o
(j
( }