Properties of the objects.inp file
User-defined attribute definitions in the objects.inp file follow this structure.
For general information about modifying the definitions, such as file locations and reading order, see Define and update user-defined attributes (UDAs).
This example shows the main properties of objects.inp:
attribute("MY_INFO_1", "My Info 1", string, "%s", no, none, "0.0", "0.0")
{
value ("", 0)
}
picture("image_name", 8, 2, 260, 25)
General properties
Property | In the example | Description |
---|---|---|
|
|
Specifies whether the attribute is a regular attribute or a non-copyable attribute.
|
attribute_name |
|
The attribute name is used to find the attribute value. Ensure that Tekla Structures does not already use the attribute name that you use. Consider using a prefix that ensures the name is unique, such as your initials, or an abbreviation of your company name. The attribute name is case-sensitive. Do not use spaces or reserved characters in attribute names. The maximum length of the name can be 19 characters. To include the attribute in a report or template, add the name of the attribute to your layout in the Template Editor. When you run a report or create a drawing, Tekla Structures shows the current value of the attribute. |
label_text |
|
A label that Tekla Structures shows in the dialog box. Some default attributes have prompts like |
value_type |
|
The type of value that the field can contain:
If you need to change the When the advanced option XS_DIAGNOZE_AND_REPAIR_WRONG_UDA_TYPE is set to |
field_format |
|
Definition of the field format in the dialog box
|
special_flag |
|
For parts: consider in numbering For drawings: show the attribute value in Document manager For other elements: no effect |
check_switch |
|
This option is not used. |
attribute_value_max |
|
This option is not used. |
attribute_value_min |
|
This option is not used. |
Picture properties
Property | In the example | Description |
---|---|---|
|
|
|
image name | image_name |
The name of the image |
width | 2 |
The width reserved for the image |
height | 8 |
The height reserved for the image |
horizontal offset | 260 |
The horizontal distance of the left edge of the image from the left edge of the dialog box |
vertical offset | 25 |
The vertical distance of the top edge of the image from the top edge of the dialog box counted from the lower edge of the tab section |
You can also hide or dim user-defined attributes. For more information, see How to hide and grey out user-defined attributes.