Hide Table of Contents

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.

  1. In the Block Editor, type CBValueTable at the command prompt.
  2. 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:

  3. Click OK.

To add properties to the value table:

  1. In the Property Value Table dialog box, click Add Properties.
  2. In the Add Element Properties dialog box, do the following:
    1. 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.
    2. From the list, select an element and click OK to add it to the table.

      The corresponding column appears in the table.

  3. Repeat step 1 and 2 to add more properties and to complete the table.

To add values to a value table:

  1. In the Block Editor, type CBValueTable at the command prompt.
  2. In the graphics area, specify a table element.

    The Property Value Table dialog box displays the value table defined for the associated table activity.

  3. In the States column, type the name of each value state.
  4. Click an empty cell.
  5. 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.

  6. Repeat step 4 and 5 as necessary to complete the table.
  7. Click OK.

To delete value states from the value table:

  1. In the Property Value Table dialog box, select the lines corresponding to the value state to delete.
  2. Click Delete.

To check for errors a value table:

  1. In the Block Editor, type CBValueTable at the command prompt.
  2. In the graphics area, specify a table element.
  3. In the Property Value Table dialog box, click Check.

Access

Command: CBValueTable



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:   Defining Value Tables for CustomBlock Definitions
*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: 2025 SP2

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.