Working with Variables

Variables are the key to keeping a tidy Notebook. Any block or input can be turned into a variable, allowing for easy access, reference, and manipulation. Once made into a variable, the block or input will remain in your Notebook. The variable is represented as a simple chip when used in other blocks. Use variables to drive your workflow with key parameters and streamline your design process. 

Creating a Block Variable

Select the block and right-click along the top of the block, then select “Make Variable”

A block variable never “nests” inside another block. Instead, it creates a “chip” to show that the variable is in that block.  All chip locations are highlighted in blue when you select the variable.

Creating a Parameter Variable

Right-click over a parameter name and select “Make Variable”

 A parameter variable is a useful way to quickly change a specific aspect of a block. It makes it clear what input can change.

Creating Property Variables Using the Block Details

Go to the Properties tab in the Block Details panel by clicking on the question mark icon at the top right of the block. Drag any property into the Notebook to create a variable of that property. These properties are linked to the block they came from.

You can also drag any chip directly into an input of another block instead of the Notebook.

Removing Variable Contents

Right-click on the variable and select “Remove Contents”.

Emptying a variable allows you to quickly change the contents of that variable while keeping the variable chip inserted as inputs in other blocks.

In the example below, the contents of a Cube block variable are being removed. In order to allow any Implicit Body input, the variable block type icon needs to change from Cube to Implicit Body. To do this, click on the icon, and search for the desired input type. 

Changing the Sphere and Cube into variables allows you to quickly replace them without having to right-click and remove contents.