Hide Table of Contents

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



Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   Managing Visibility States
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: 2022 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.