Defining Value Tables for CustomBlock Definitions
Use the CBValueTable command to display or update the value table associated to a table activity in a CustomBlock definition.
You can add properties and values to the value table.
To display or update a value table for a table activity:
Note: Make sure that the CustomBlock definition contains at least one table element that has an associated table activity. Associating a table activity to a table element creates an empty value table.
- In the Block Editor, type CBValueTable at the command prompt.
- In the graphics area, specify a table element.
The Property Value Table dialog box displays the existing value table for the specified table activity.
You can do the following:
- Click OK.
To add properties to the value table:
- In the Property Value Table dialog box, click Add Properties.
- In the Add Element Properties dialog box, do the following:
- Specify the type of property to add to the table:
- Add input properties. The element properties list displays the available input properties that you can add to the table.
- Add table properties. The element properties list displays the available table properties that you can add to the table.
- From the list, select an element and click OK to add it to the table.
The corresponding column appears in the table.
- Repeat step 1 and 2 to add more properties and to complete the table.
To add values to a value table:
- In the Block Editor, type CBValueTable at the command prompt.
- In the graphics area, specify a table element.
The Property Value Table dialog box displays the value table defined for the associated table activity.
- In the States column, type the name of each value state.
- Click an empty cell.
- Do one of the following:
- Enter a value.
- Specify a value from the drop-down list.
Note: Drop-down lists are available only if the element has a value set.
- Repeat step 4 and 5 as necessary to complete the table.
- Click OK.
To delete value states from the value table:
- In the Property Value Table dialog box, select the lines corresponding to the value state to delete.
- Click Delete.
To check for errors a value table:
- In the Block Editor, type CBValueTable at the command prompt.
- In the graphics area, specify a table element.
- In the Property Value Table dialog box, click Check.
Command: CBValueTable