Conditions

Conditions

A condition is an option defined by the user, with a name and an enabled or disabled state. The name of the condition is used to identify the conditions. The state of the condition (enabled or disabled) is used to set the visibility of an object or the activation of a group of styles.

Conditions are stored with styles, and are managed in a similar way as styles. Conditions can be created, selected and managed using the Conditions panel. When using styles of an other document, or importing or exporting style files, conditions are also included in the style collection. Conditions also share the same folder hierarchy as styles and symbols.

Defining and using conditions for object visibility, creates a single place of visibility selection for multiple unrelated objects. These objects can be in different groups, layers or canvases. The condition acts as a style for the visibility option of these objects.

Condition Panel

The Conditions panel

Conditions can be created, selected and changed, using the Conditions panel, opened from the Panels - Styles menu. The Conditions panel works in a similar way as the Styles panel, with a few minor differences, including the limitation to working with conditions only.

The conditions defined in the current document are listed in the Conditions panel. Each condition is shown as a check box with the condition name. The check box is used to set the condition value to be enabled or disabled. New conditions can be created using the button.

  • - Clear the visibility conditions from the selected objects.
  • - Apply the highlighted condition as a visibility condition for the selected object.
  • - Edit the name of the selected condition.
  • - Duplicate the selected condition into a condition with a new name.
  • - Create a new condition.
  • - Remove the selected conditions.

Using Conditions

Conditions can be used for object visibility as follows:

  • Create one or more new conditions, that will be used as object visibility conditions. Existing conditions can also be used. New conditions can be created using the button of the Conditions panel.
  • Select the objects whose visibility will be controlled by a condition.
  • Select the condition in the Conditions panel.
  • Click on the button of the panel, or double click on the condition name, to set the condition as the visibility condition of the selected objects.
  • These objects will be visible if the condition is checked, and invisible otherwise.
  • The objects visibility can be controlled by the check box of the condition.
  • To remove the visibility condition from the selected objects, click on the button of the panel.

Conditions can be used for style activation as follows:

  • Create one or more new conditions, that will be used as style activation conditions. Existing conditions can also be used.
  • Open the style activation option menu, depending on the subject to be activated:
    • For style groups, the conditions will be shown in the Activation Mode sub-menu of the Styles panel menu. Select the conditions, that must be enabled, to activate the style group.
    • For canvases, the conditions will be shown in the menu opened with the Enable Mode button, of the Canvas Options view.
    • For linked documents, the conditions will be shown in the menu opened with the Enable Mode button, of the Linked Documents view.
    • The conditions are assigned to style groups, canvases, or linked documents by selecting the condition in the menu.
  • Enabling or disabling the condition in the Conditions panel will activate or deactivate the style group, canvas, or linked document using the condition.