ILOG Rules for .NET User Guides > ILOG Rule Solutions for Office > Writing and editing rules > Store and retrieve rules using the Rule Gallery

The Rule Gallery provides a handy way to store and retrieve rule fragments that you can use later as building blocks for creating new rules. For example, you can store the whole content of a rule, just the Definitions part, or just a single Action statement.

To save a rule to the Rule Gallery
  1. Select the rule text you want to store in the Rule Gallery by clicking its name in the RuleDoc Outline section of the RuleDoc pane.
  2. On the Rules tab, in the Content group, click Save Text to Rule Gallery.
  3. images/ribbongroup_content.png
    The Save In Rule Gallery dialog appears.
  4. Type a name for the Rule Gallery entry in the Name box, and an optional description in the Description box, or just accept the default proposed text.
  5. Click OK.
  6. A copy of the selected rule is added to the Rule Gallery.
To insert a saved rule from the Rule Gallery
  1. Place your cursor where you want to insert the rule.
  2. On the Rules tab, in the Write group, click the lower half of the Insert New Rule button, then click Rule Gallery in the submenu.
  3. images/ribbon_rules_write_insertrule_menu.png
    A list of rules stored in the Rule Gallery is displayed.
  4. Click one of the items in the list to insert a new rule using the selected text as a starting point.
To delete an entry from the Rule Gallery
  1. On the Rules tab, in the Customize group, click Options > Rule Gallery Organizer.
  2. images/advancedoptions_plus_button.png
    The Building Blocks Organizer dialog appears.
    Rule fragments hat you save to the Rule Gallery are listed in the "ILOG Business Rules" category in the Building Blocks Organizer dialog.
  3. Select a building block, then click Delete.
  4. In the confirmation message box, click Yes.
To edit the properties of a Rule Gallery entry
  1. On the Rules tab, in the Customize group, click Options > Rule Gallery Organizer.
  2. images/advancedoptions_plus_button.png
    The Building Blocks Organizer dialog appears.
    Rule fragments hat you save to the Rule Gallery are listed in the "ILOG Business Rules" category in the Building Blocks Organizer dialog.
  3. Select the entry whose properties you want to edit, then click Edit Properties.
  4. In the Modify Building Block dialog, update the building properties, as required, then click OK.