Need to swap polybeam bent plate length & width in bill of material
Not version-specific
Tekla Structures
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.
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
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