Weld Attributes
Construction > Welds/Bevels > Weld Attributes
Manage weld attributes. The user-defined weld attributes are shown in Weld Manager.
Add new attributes by clicking Add and defining the following:
Name – The attribute will be referred to by this name in the Weld Manager interface. If the name contains spaces, you can enclose it in double quotation marks ("Att Name 1", for example). If you do not, the system will add the double quotation marks when you click OK.
Note: If you do not start or end the name with double quotation marks ("Att Name 1, for example), the attribute will not be accepted and an error message will be shown. Single quotation marks (') are considered to be part of the name; the system will add double quotation marks, if they are missing.
Type – The type of attribute: bool, integer, real, string, enum, date, or coded.
Default – The options for the default values which can be assigned are as follows:
- bool – true or false
- integer – <integer>
- real – <real>
- string – <string>
- date – now, or a date formatted according to the extended format described in ISO 8601, for example, YYYY-MM-DD, YYYY-MM, or YYYY-MM-DDTHH:MM (2021-05-28T09:00)
- coded – one of the specified integer indexes in the Values field
- enum – a zero based index related to the values in the Values field
Values – A list of strings defining the possible values for the attribute. For type coded, the index number is specified preceding each value in the array (1 "A" 2 "B" 4 "C" 8 "D", for example); you can define the numbers for each value as you prefer and you do not need to follow a specific order.
Important: If the values for types coded and enum contain spaces, make sure to enclose them in double quotation marks ("). Single quotation marks (') are not supported.
An example of attributes in the Weld Attributes dialog:
Note: For the first attribute, the 0 indicates that the default value is the first value (IA-1). A value of 1 would indicate the default value to be the second value (IA-2), and a value of 2 would indicate the default value to be the third value (IA-3).
An example of the resulting values in Weld Manager:
All attribute definitions are validated. If there are errors in the definitions, the attribute is not accepted and an error message is shown. If attributes read from a configuration file contain errors, they are handled in System Management as follows:
- When the default value for type bool has not been set, it is forced to true.
- When an attribute has an unknown type, it is forced to string, and any values in the definition after the default are ignored.
An error message will also be shown explaining how the system has handled the configuration file errors. For more information on the user-defined attributes in the configuration file, see User-defined attributes.