To create an attribute:
1. Access the Registry - System - Attributes menu
2. Select the group within entity.attributes where you want to create the attribute;
3. Click New - Create Attribute;
4. Fill in the ID and Name fields;
5. Fill in the Description field, describing the function of the attribute;
6. In Parameters, fill in the fields as desired;
Grouping | This field informs the category to which the attribute belongs when it was created. You can change this setting as desired. |
Type | Allows you to choose the type of attribute value, which can be: Text, True / False, Integer, Decimal number, Image. |
Default value | Fill in the default value of the attribute. |
Minimum value | The minimum numerical value is filled. The field is only enabled when the Type is Integer or Decimal number. |
Maximum value | The maximum numerical value is filled. The field is only enabled when the Type is Integer or Decimal number. |
Visible Checkbox | With this option checked, when an item has the attribute applied, the option will be visible in the module's property bar, when inserted into the environment. |
Edit Checkbox | When checking the Visible checkbox, if the option must be editable by the properties, it is necessary to check the Editable checkbox. The attribute values are always editable in the modules register, regardless of this checkbox. |
7. The Group Tag Group can be used when you want to group one or more attributes and apply them to all child groups that have it.
Example: to select the material that will be used in the construction of the furniture, on the Features Configurator tool, this field can be configured, so that the user selects and applies this same material in all groups, it is not necessary to register material in each group of the library.
For this, it is necessary to fill the same name in the field of the Grouping Tag of all the Material attributes of the libraries. If the Description field is filled, the value filled in this field will be displayed, instead of the name.
8. In Proposed Values it is possible to fill in the proposed values for the attribute. In addition, it is possible to check the Accept only default values checkbox, to restrict the values.
9. In Behavior it is possible to check some checkboxes:
Launch event when changing value | With this function active, when applying the attribute through the module register, it is possible to apply the event When changing attribute value, to be able to apply an action. In this way, when the attribute value is changed, the action of the created event will be applied. |
Automatic creation | With this function active, the attribute in question will be created automatically for all items invisibly, with the default value configured. Example: The Calculated attribute is set to the default value of True and the Automatic creation function is active. In this way, all items in the library will be calculated by default (Calculated: True). For an item not to be calculated it will be necessary to apply the attribute and change the value to False. |
Change shape | With this function active, when changing the attribute value, Promob triggers a series of events such as Load Entity, Set Entity Visibility, Change Shape, Drill Entity, Change Dimension, Change Position, Select Entity without having to register events at the entities. Whenever an attribute is used to influence visibility, shape, position, etc., this property can be used when registering the attribute, instead of registering events. As an example, we have the attributes of Dimension A and B, which are used in corner modules and use this property. |
Dynamic update | When the option is checked, the attribute's value is recalculated. When it is not checked, it is calculated only once. Used for attributes whose values have variables. Example: the Description attribute needs this active property since, sometimes, variables are filled in the Description fields, for example, ‘Branch $ W $’. Thus, this attribute needs to be updated dynamically. |
Advanced property | If the Visible option is active, with the Advanced Property function active, the attribute will be available for viewing (and editing, if Editable is active) in the item's property bar, with the Advanced mode active. |
10. After making these settings, click the Refresh icon and restart Promob to apply the changes.