In Rules, the attributes defined for types are displayed under each type under the special Attributes node . To add an attribute for a type, right-click on this icon and choose Add Attribute. You will have to set:
- The name (unique to each attribute)
- The type of the attribute (number, text, etc.)
- Whether the attribute is read-only for GUI changes, whether it should have a unique value
- Whether the attribute has a default value (applied to new object instances). If this is the case, you can set two aspects:
- The default value
- Whether or not the default value is modifiable
- Whether the attribute is displayed in the Internal Block Diagram
- Whether the icon and the value of the attribute are displayed in the Internal Block Diagram
- The icon used in the Internal Block Diagram and in Rules
- The font used in the Internal Block Diagram
For more information on different attribute types, see Available Attribute Types. For more information on other properties, see Type Attribute Properties.
When you have finished defining your attribute, click on the Add button.