Stratal CAD

Parametric blocks

Help centre · Drawing and editing

Parametric blocks change shape or content per reference: a desk that stretches to any width, a door that flips, a symbol with named views. This article is for users who build reusable smart blocks.

Before you start

Parameters and actions

Parameter What it holds Actions
Linear A distance along a direction, for example a width Stretch, Move, Scale, Array
Angular An angle about a centre Rotate
XY Two distances along the block's axes Stretch, Move, Array
Polar A distance and a direction Stretch, Move, Rotate, Scale, Array
Flip A reflection line Flip (mirrors its objects)
Visibility Named states, each showing some of the objects (choose objects per state)
Lookup Named rows that set several parameters at once (none)

Steps: make a stretchy desk

  1. Click Insert > Parameters > -BPARAMETER. At "Select a block reference or enter a block name" pick a reference of DESK (points are read through its placement) or type the name (points relative to the base point).
  2. At "Enter an option [Linear/Angular/Visibility/LOokup/XY/POlar/Flip/Delete/List] <List>" type L.
  3. Type the parameter name Width, click the base point of the distance, then the end point (direction and default distance).
  4. At "Limit the values? [Minimum/MAximum/Values/Increment/Done] <Done>" set Minimum 1200, MAximum 1800 and Increment 100, then Done.
  5. Click -BACTION, pick the reference, type Width, choose Stretch at "Enter action [Stretch/Move/Scale/Array] <Stretch>", and give two corners: objects crossing the frame are acted on, and for Stretch the frame decides which points move.
  6. Set a reference's width with -BPARAMVALUE (select references, choose the parameter, type the value), in the Properties panel, or by dragging the parameter's grip.

Visibility and lookup

Setting values

Kind How you type it
Linear, angular A number; angles in degrees
XY x,y
Polar distance<angle (degrees)
Flip Flipped or Not flipped
Visibility, lookup A state or row name

Values outside the minimum and maximum, not in the allowed list, or off the increment are refused with the reason.

Grips

A selected reference shows grips for its parameters: at the end of a linear distance, on an angular parameter's angle, at an XY corner or polar end, and a flip grip. Drag one, or click it and then where it goes; values stay within their limits and snap to allowed values and increments. Visibility and lookup parameters have list grips past the top right corner of the block: click one and choose from the options the command line lists. Each grip edit is one undo step.

Arrays and chains

Tips and common mistakes

Troubleshooting

Message or symptom What it means and what to do
A value is refused with a reason It is outside the limits or not an allowed value; check the limits with -BPARAMETER List.
An action moves the wrong objects Run -BACTION again with a frame that crosses only the objects and points that should move.

Related

Related

Still stuck? Open a support ticket or use Help, then Contact support in Stratal CAD.