A dynamic block has flexibility and intelligence. A dynamic block reference can easily be changed in a drawing while you work. You can manipulate the geometry in a dynamic block reference through custom grips or custom properties. This allows you to adjust the block in-place as necessary rather than searching for another block to insert or redefining the existing one.
For example, if you insert a door block reference in a drawing, you might need to change the size of the door while you're editing the drawing. If the block is dynamic and defined to have an adjustable size, you can change the size of the door simply by dragging the custom grip or by specifying a different size in the Properties palette. You might also need to change the open angle of the door. The door block might also contain an alignment grip, which allows you to align the door block reference easily to other geometry in the drawing.
You use the Block Editor to create dynamic blocks. The Block Editor is a special authoring area where you add the elements that make a block dynamic. You can create a block from scratch, or you can add dynamic behavior to an existing block definition. You can also create geometry, just as you would in the drawing area.
You add parameters and actions to a block to make it dynamic. When you add these elements to the block, you add flexibility and intelligence to the block geometry.
When you add a parameter to a block definition, custom grips and properties are automatically added to the block. You use these custom grips and properties to manipulate the block reference in the drawing.
To create quality dynamic blocks, so you get the results you expect, it is recommended that you follow the steps in the following process. This process will help you author dynamic blocks effectively.
Before you create a dynamic block, you should know what it will look like and how it will be used in a drawing. Decide which objects within the block will change or move when the dynamic block reference is manipulated. Furthermore, decide how these objects will change. For example, you might create a dynamic block that can be resized. In addition, when the block reference is resized, additional geometry may be displayed. These factors determine the types of parameters and actions you add to the block definition, and how you make the parameters, actions, and geometry work together.
You can draw the geometry for your dynamic block in the drawing area or the Block Editor. You can also use existing geometry in a drawing or an existing block definition.
Before you add parameters and actions to your block definition, understand their dependencies on each other and on the geometry within the block. When you add an action to the block definition, you will need to associate the action with a parameter and a selection set of geometry. This creates a dependency. When you add multiple parameters and actions to a dynamic block reference, you will need to set up the correct dependencies in order for the block reference to function properly in a drawing.
For example, you create a dynamic block that contains several objects. Some of the objects have a stretch action associated with them. You also want all the objects to rotate around the same base point. In this case, you should add the rotate action after adding all the other parameters and actions. If the rotate action isn't associated with all of the other objects (geometry, parameters, and actions) in the block definition, parts of the block reference may not rotate or manipulating the block reference may cause unexpected results.
.Add the appropriate parameters to the dynamic block definition, following the prompts at the command prompt. For more information about using parameters, see
.Add the appropriate actions to the dynamic block definition. Follow the prompts at the command prompt, making sure to associate the actions with the correct parameters and geometry. For more information about using actions, see
You can specify how the dynamic block reference will be manipulated in the drawing. You can manipulate a dynamic block reference through custom grips and custom properties. When you create a dynamic block definition, you define what grips are displayed and how they edit the dynamic block reference. You also specify whether or not custom properties for the block will be shown in the Properties palette and whether or not these properties can be changed through the palette or through custom grips.
Save the dynamic block definition and exit the Block Editor. Insert the dynamic block reference in a drawing and test the block's functionality.