Add UDAs in reference models

Tekla Structures
2021
Tekla Structures

Add UDAs in reference models

If you wish to use user-defined attributes in your reference models, you need to add the UDAs in the objects.inp file if your environment does not contain any reference model UDAs.

For more information on the contents of the objects.inp file, see Properties of the objects.inp file.

For more information on adding content in the objects.inp file, see Define and update user-defined attributes (UDAs). For an example on how to add UDAs in the objects.inp file, see Example: Create and update a user-defined attribute (UDA).

Note that you should 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.

Below is an example of the text you need to add to an objects.inp file to create the UDAs which are 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)
}
Esta informação foi útil?
Anterior
Seguinte