Hide Table of Contents

Testing CustomBlocks

At any time, you can test a CustomBlock definition without exiting the Block Editor.

The CBTestBlock command displays the current Block definition in a test window.

You can make changes to the CustomBlock definition and test the effect without saving the CustomBlock definition.

The test window closes automatically when you close the Block Editor. Alternatively, use the CBTestClose command to close only the test window.

 It is recommended to test the CustomBlock after each modification to prevent errors.

To test a CustomBlock:

  1. In the Block Editor, type CBTestBlock at the command prompt.

    The corresponding Block reference appears in a test window.

  2. In the test window, select the CustomBlock reference and do the following:
    • Test the grip points
    • Test the CustomBlock behavior when changing the properties in the Properties palette
    • Create additional copies

To close the test window:

  • Type CBTestClose at the command prompt.

Access

Command: CBTestBlock

Related Topics

Saving a CustomBlock

Parent Topic

Creating CustomBlocks



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:   Testing a CustomBlock
*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: 2024 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.