TEKLA TEMPLATES - Basic Condition
Insert 2 rows in a template, the first as a CAST_UNIT content type and the second one with ASSEMBLY Content type.
After in add a Value Field GetValue("MAINPART.USERDEFINED.SM_Order_01") in the first Row.
and in the second GetValue("MAINPART.USERDEFINED.SM_Order_01"), so if the drawing type is Cast-Unit then get the info from SM-Order-01x, else if the drawing type is equal to Assembly then with get the info from SM-Order-02x.
if (GetValue("TYPE") == "C") then GetFieldFormula("SM-Order-01x")
else
if (GetValue("TYPE") == "A") then GetFieldFormula("SM-Order-02x")
else
endif
endif
After in add a Value Field GetValue("MAINPART.USERDEFINED.SM_Order_01") in the first Row.
and in the second GetValue("MAINPART.USERDEFINED.SM_Order_01"), so if the drawing type is Cast-Unit then get the info from SM-Order-01x, else if the drawing type is equal to Assembly then with get the info from SM-Order-02x.
if (GetValue("TYPE") == "C") then GetFieldFormula("SM-Order-01x")
else
if (GetValue("TYPE") == "A") then GetFieldFormula("SM-Order-02x")
else
endif
endif
Comentários
Enviar um comentário