Managing Visibility States

Use the CBVisibility command to manage visibility states of a CustomBlock definition.

To define a new visibility state in a CustomBlock definition:

Note: Before defining any visibility state, make sure that the visibility element exists in the CustomBlock definition.

  1. Do one of the following:

    • Type CBVisibility.

    • Double-click a visibility element.

  2. In the Visibility States dialog box, click New.

  3. In the dialog box, do the following:

    • Type the name of the visibility state.

    • Specify an option:

      • Hide all existing entities in new state

      • Show all existing entities in new state

      • Use visibility of existing entities from the active state.

    • Click OK.

    In the Visibility States dialog box, the new visibility state appears in the list.

  4. Click OK.

    The Visibility States drop-down list displays all defined visibility states.

To rename or delete a visibility state from a CustomBlock definition:

  1. In the Block Editor, do one of the following:

    • Type CBVisibility.

    • Double-click a visibility element.

  2. In the Visibility States dialog box, specify the visibility state to rename or to delete.

  3. Click Rename or Delete.

To specify the default visibility state for a CustomBlock:

Note: The default visibility state is the first one in the Visibility States list.

  1. In the Block Editor, do one of the following:

    • Type CBVisibility.

    • Double-click a visibility element.

  2. In the Visibility States dialog box, specify a visibility state from the list.

  3. Click Move Up until the specified visibility state is the first in the list.

To specify the current visibility state:

  1. In the Block Editor, do one of the following:

    • Type CBVisibility.

    • Double-click a visibility element.

  2. In the Visibility States dialog box, specify a visibility state.

  3. Click Activate.

To specify the set of entities for a visibility state:

  1. In the Block Editor, do one of the following:

    • Type CBVisibility.

    • Double-click a visibility element.

  2. In the Visibility States dialog box, specify the active visibility state.

  3. Click OK.

  4. Do one of the following:

    • Use the CBShow command to specify the entities to display.

    • Use the CBHide command to specify the entities to hide.

Access

Command: CBVisibility

Ribbon: Edit Block > Display State > Visibility States

Related Topics

About Visibility States

Adding Entities to a Visibility State

Hiding Entities from a Visibility State

-CBVisibility (command window variant)

Parent Topic

Controlling Visibility of CustomBlocks Entities