Tutorials CadCraft help Walkthroughs

Parametric blocks

Blocks whose shape follows their values. Place one from the Library, drag its grips or type sizes in Properties, choose from its size table, and make your own.

Written for CadCraft 0.12. The same help is inside the app: press F1.

A parametric block is one block that can be many sizes. A table that is 1500 or 2400 wide, a door of any leaf size that opens to any angle, a parking row of 6 or 40 stalls: each is a single block, and every reference you place keeps its own values.

Place one

  1. Click Library in the Blocks group, or type LIBRARY and press ReturnEnter.
  2. Click the Parametric tab. It lists the parametric blocks.
  3. Click Place on a block, then click where it goes.

The blocks come from the Library. With no connection, the tab shows the starter set that comes with this build.

Change a placed block

Click the block to select it. Its own grips show beside the square grip that moves it.

GripWhat it does
ArrowClick it, then click where it goes. The size follows, held to the steps and limits the block allows.
RoundClick it, then click a direction. The angle follows.
Double arrowClick it to flip the block (hinge side, left or right hand).
Down triangleClick it for a list: a size table, the values a size may take, or the block's states.

The same values are in Properties under Custom. Type a number, or a formula such as Width / 2. A value the block does not allow is refused, and the message says what it takes. A value marked "(worked out)" comes from the others; you can still give it your own.

Each change is one undo step.

Size tables

Some blocks carry a size table: a hexagon head by thread size, a steel section by its name, a bed by mattress size. Choosing a row sets several values at once. Change one value by hand afterwards and the table shows Custom.

Make your own

  1. Make a block (BLOCK) and open it in the block editor (BEDIT).
  2. Type BPARAMS and add the parameters: a name, a type and a starting value. In Values it takes write 300..2400 step 50 for a range, or 6, 8, 10 for a list.
  3. Type PBLOCK and say what the parameters do. Each answer that asks for a distance, an angle or a count takes a formula.
ActionWhat it does
StretchThe points inside a frame you pick move by a distance, as STRETCH does. Use Width - 900 when the block is drawn 900 wide.
Move, Rotate, ScaleThe objects move, turn or scale whole.
MirrorThe objects flip across a line while a yes/no parameter is on.
Array, PolarThe objects repeat a number of times, in a row or round a center.
GripA handle on the placed block: linear, angle, flip or list. Its place is two formulas, so it follows the block.
TableA size table: the parameters it sets, then a row at a time as name = value, value.
  1. Save the block editor. Place the block and try its grips.

The actions run in the order listed. BPARAMS lists them under What the parameters do, where each can be removed.

Share one

PBEXPORT writes the block as a Library item file. Open that file from Library › Files… to place it in another drawing. The drawing must be in millimeters when you export.

It asks for a name, a kind, a Library category, an IFC class (what other software reads it as: IfcAnnotation for a drawing-only symbol) and a sentence about it. Press ReturnEnter to take the answer shown in brackets. The block's base point becomes the item's insertion point, and text keeps its alignment.

A Library item holds lines, arcs, circles, ellipses, polylines, solid hatches, text and points. A spline is written as the polyline CadCraft draws for it. Multi-line text comes back as one text when the item is placed in CadCraft, so a size written into it still follows the values; BimCraft draws its lines in the same places, and programs that do not read parametric blocks show it as one text per line. A patterned hatch is left out, and polyline widths are drawn as thin lines: PBEXPORT says how many.

To use a parametric block in another drawing without a file, copy it and paste it there: it keeps its parameters, its grips and the values you set.

In the file

DWG and DXF keep the parameters, the actions, the grips, the size tables and each reference's own values in CadCraft's own records. Open the file again in CadCraft and every block is as you left it.

Not there yet

  • The item number of a Library block stays where the block was first drawn; it does not follow a stretch.
  • A size written in the block (a label) follows the values; a dimension inside the block does not.
  • In BimCraft the sizes are set in the Library tab before the block is placed; it has no grips there.
  • Blocks from another program's own dynamic blocks keep their visibility states only. See Dynamic blocks.