Use Parameters in Dynamic Blocks
 
 
 

You add parameters to a dynamic block definition to define custom properties for the block and to specify positions, distances, and angles for geometry in the block.

You add parameters to a dynamic block definition in the Block Editor. In the Block Editor, parameters have an appearance similar to dimensions. Parameters define custom properties for the block. Parameters also specify positions, distances, and angles for geometry in the block reference. When you add a parameter to a dynamic block definition, the parameter defines one or more custom properties for the block.

For example, when you add a rotation parameter to a dynamic block definition, the rotation parameter defines an Angle property for the block reference. So, if you have a block of a chair in your drawing, and you want to be able to rotate the block's position as you edit, the parameter defines the axis whereby the block can be rotated.

If you add a point parameter to a dynamic block definition, the point parameter defines two custom properties for the block reference: Position X and Position Y (relative to the base point of the block reference.)

A dynamic block definition must contain at least one parameter. When a parameter is added to a dynamic block definition, grips associated with key points of the parameter are automatically added. You must then add an action to the block definition and associate the action with a parameter.

In a drawing, you use a grip or custom property in the Properties palette to manipulate the block reference. When you manipulate the block reference in a drawing, by moving a grip or changing the value of a custom property in the Properties palette, you change the value of the parameter that defines that custom property in the block. When you change the value of the parameter, it drives the action that is associated with that parameter, which changes the geometry (or a property) of the dynamic block reference.

Parameters also define and constrain values that affect the dynamic block reference's behavior in a drawing. Some parameters can have a fixed set of values, minimum and maximum values, or increment values. For example, a linear parameter used in a window block may have the following fixed set of values: 10, 20, 30, and 40. When the block reference is inserted in a drawing, you can only change the window to one of these values. Adding a value set to a parameter allows you to limit how the block reference is manipulated in a drawing. For more information about parameter value sets, see Specify Value Sets for Dynamic Blocks.

The point, linear, polar, XY, and rotation parameters have a property called Chain Actions. For more information about allowing chained actions for a parameter, see Allow Chained Actions for Dynamic Blocks.

You can also extract parameter values through the Attribute Extraction wizard or through an attribute extraction template file.

The following table lists and describes the types of parameters you can add to a dynamic block definition and the types of actions you can associate with each parameter.

Parameter Type

Description

Supported Actions

Point

Defines an X and Y location in the drawing. In the Block Editor, looks similar to an ordinate dimension.

Move, Stretch

Linear

Shows the distance between two anchor points. Constrains grip movement along a preset angle. In the Block Editor, looks similar to an aligned dimension.

Move, Scale, Stretch, Array

Polar

Shows the distance between two anchor points and displays an angle value. You can use both grips and the Properties palette to change both the distance value and the angle. In the Block Editor, looks similar to an aligned dimension

Move, Scale, Stretch, Polar Stretch, Array,

XY

Shows the X and Y distances from the base point of the parameter. In the Block Editor, displays as a pair of dimensions (horizontal and vertical).

Move, Scale, Stretch, Array

Rotation

Defines an angle. In the Block Editor, displays as a circle.

Rotate

Flip

Flips objects. In the Block Editor, displays as a reflection line. Objects can be flipped about this reflection line. Displays a value that shows if the block reference has been flipped or not.

Flip

Alignment

Defines an X and Y location and an angle. An alignment parameter always applies to the entire block and needs no action associated with it. An alignment parameter allows the block reference to automatically rotate around a point to align with another object in the drawing. An alignment parameter affects the rotation property of the block reference. In the Block Editor, looks like an alignment line.

None (The action is implied and contained within parameter.)

Visibility

Controls the visibility of objects in the block. A visibility parameter always applies to the entire block and needs no action associated with it. In a drawing, you click the grip to display a list of visibility states available for the block reference. In the Block Editor, displays as text with an associated grip.

None (The action is implied and controlled by visibility states.)

Lookup

Defines a custom property that you can specify or set to evaluate a value from a list or table you define. It can be associated with a single lookup grip. In the block reference, you click the grip to display a list of available values. In the Block Editor, displays as text with an associated grip.

Lookup

Base

Defines a base point for the dynamic block reference relative to the geometry in the block. Cannot be associated with any actions, but can belong to an action's selection set. In the Block Editor, displays as a circle with crosshairs.

None

See Also