Template gives different length for reinforcing bar than when I inquire it
Question:
When I inquire the rebar, the length is 12550 mm, but when I make a report the length is 12554 mm. Why is this happening and how to solve this?
Inquire Object dialog window:
Report dialog window:
Answer:
This happens because when the Inquire Object command is performed to see the object properties, by default Tekla Structures uses report templates from this system folder:
..\ProgramData\Tekla Structures\<version>\environments\common\system
In this case it uses TS_Report_Inquire_Reinforcement.rpt
You can find a list of all the other Inquire object templates that are used by default here: Object property report templates.
And in this template a rounding function is used in the formula when the length of reinforcement is calculated.
if GetValue("ADVANCED_OPTION.XS_IMPERIAL")=="TRUE" then
format(GetValue("LENGTH"),"Length","inch-frac", 1/16)
else
format(round(GetValue("LENGTH"), 10),"Length","mm", 0)
endif
To achieve the same result in the report, you can add this formula to the desired value field.
The calculated length of reinforcement is also affected by settings used in advanced options: