Need to swap polybeam bent plate length & width in bill of material

Tekla Structures
Not version-specific
Tekla Structures
template
polybeam
bent plate
report
Environment
Not environment-specific
Question: We have modeled a bent plate as a polybeam (see below). In the bill of material, we are want the width of the bent plate in the length column & vice versa. 

  
Image
2017_02_09_07_36_182.png

Answer: The above requirement can be achieved by modifing the Bill of Material template. In the template, for the Profile & Length value fields, use the below formulas.

Profile:- 
if (GetValue("IS_POLYBEAM") == "1") && (GetValue("PROFILE_TYPE") == "B") then
  PL+format( GetValue("WIDTH"),"Length" ,"inch-frac" ,1/16)+"*"+format( GetValue("LENGTH"),"Length" ,"inch-frac" ,1/16)
else
  GetValue("PROFILE")
endif
Length:-
if (GetValue("IS_POLYBEAM") == "1") && (GetValue("PROFILE_TYPE") == "B") then
  GetValue("HEIGHT")
else
  GetValue("LENGTH")
endif

See the example below.

 
Image
2017_02_09_10_15_243.png


Was this helpful?