Add UDAs in reference models

Tekla Structures
2023
Tekla Structures

Add UDAs in reference models

To use user-defined attributes in your reference models, you must add the UDAs to the objects.inp file if your environment does not contain the necessary reference model UDAs.

Note: Do not edit the original objects.inp file under the environments folder.

To define new user-defined attributes, create your own objects.inp file in the model, project or firm folder.

This example shows the text you must add to an objects.inp file to create the UDAs that is shown in the image of the side pane.

/***************************************************************************/
/* Reference attributes */
/***************************************************************************/
reference(0,"j_Reference_model")
 {
 tab_page("","jd_Parameters",10)
 {
   attribute("VENDOR", "Ref. Model Vendor", string, "%s", no, none, "0.0", "0.0")
   {
     value("", 0)
   }
   attribute("DISCIPLINE", "Discipline", string, "%s", no, none, "0.0", "0.0")
   {
     value("", 0)
   }
   attribute("PERCENT_COMPLETE", "% Complete", integer, "%s", no, none, "0.0", "0.0")
   {
     value("", 0)
   }
   unique_attribute("USER_PHASE", "User Phase", string, "%s", yes, none, "0.0", "0.0")
   {
     value("", 0)
   }
}
modify(1)
}
Was this helpful?
Previous
Next