InsertBlockTool
Tool |
A block is a group of objects in a file that behave as one piece. Blocks can be many different things, including calculation modules and chart types. In general, they are great for work you find yourself repeating.
There are two parts to a block - the inputs and the block definition. The block definition determines what the block does - the calculations, processes, or components. The inputs determine the specific values that the block manipulates.
In the example below, a Steel Tube Properties block definition is used, and the inputs are the values for width, height, and thickness
When you insert a block, you choose the block definition and then set the inputs. Only the inputs are changeable from that block. The calculations are fixed.
Block definitions are created and modified outside of the blocks that use them. When a block definition is modified, all of the blocks that use the definition are changed with it.
There are a few ways to create a block definition, but the easiest is to make a scenario block, which is done using normal Blockpad calculations and features. Scenario blocks are typically used to create your own calculation modules.
Insert a library block:
- Click Insert Block (or press ctrl+B).
- In the window that appears, select the library that contains the block definition.
- On the right side of the window, select the block definition.
- Click Set Input Values.
- Type in the input values.
- Click Insert Block.
Insert a scenario block:
- Have your calculations ready in a frame or section.
- Click Insert Block (or press ctrl+B).
- In the window that appears, select the file that contains the frame or section.
- On the right side of the window, select the frame or section that contains your calculations.
- Click Choose Parameters and Outputs.
- Specify the inputs and outputs.
- Click Set Input Values.
- Type in the input values.
- Click Insert Block.
See also:
You can refer to this tool in any formula, macro, module, or other script in Blockpad. You can use either its name or its full path:
-
To refer to it by name, use
InsertBlockTool
(make sure the library Library.Tools.Objects is included with Include Libaries) - To refer to it by its full path, use
Library.Tools.Objects.InsertBlockTool
See also: