Professional Documents
Culture Documents
2006
Dynamic Blocks, you can create one block that Constraining Values
for Block Components
takes the place of all these related blocks and be ................................... 6
This first of three articles explains the basic concepts of Dynamic Blocks and ends with a
quick-start tutorial. Part two provides detailed documentation of the feature. Part three
introduces some of the advanced uses for Dynamic Blocks.
Dynamic Blocks in AutoCAD: Part 1
A door that can be stretched to increase its width without increasing its thickness
A bolt that can be lengthened without increasing its thickness
A bed that can be changed from twin to queen to king, adjusting the number of
pillows appropriately
A picket fence that allows for specific various post heights and then automatically
arrays those posts as the fence is stretched
A rectangular metal plate with a centered hole that stays centered as the plate is
stretched
A piece of equipment (such as a phone or a computer monitor) that can take one
of several forms that is chosen from a drop-down list
You can make any existing block dynamic by adding dynamic features to it. The office set
in the figure includes a desk, three chairs, a computer, and a phone. This block is
constructed so you can stretch the 6-foot desk to 7 feet or 8 feet. As you drag, the chair
behind the desk and the computer both move, always remaining centered between the
two sides of the desk. The right chair in front of the desk moves to remain aligned with the
right side of the desk. Without Dynamic Blocks, you would have to manually adjust all the
separate components when you stretched the desk.
Figure 1: Editing a
Dynamic Block
A multi-component block, such as the one above, can feature as much complexity as you
want. For example, the type of phone, the type of monitor (CRT or LCD), the size of the
monitor, or the type of computer (desktop or laptop) are all easily changed
www.autodesk.com/autocad-blocks 2
Dynamic Blocks in AutoCAD: Part 1
A Dynamic Block is created (authored) in the new Block Editor by starting from an existing
block or individual objects. When a block is opened in the Block Editor, you can select and
edit the individual objects that make up the block; you don’t have to explode it first. After
saving your changes in the Block Editor, you can insert your new Dynamic Block and test
it out!
To start authoring a Dynamic Block based on existing blocks, open the drawing that
contains the block. Then open the Block Editor using one of the following methods:
After the Edit Block Definition dialog box appears, you can choose any block in the
drawing. If you want to turn all of the objects into a Dynamic Block, choose <current
drawing> to work with the entire drawing. You’ll then be able to insert the entire drawing
Note: If you want to use the Design Center to insert the Dynamic Block (which
you would do for a block library drawing with more than one Dynamic Block),
choose the block you want to edit.
www.autodesk.com/autocad-blocks 3
Dynamic Blocks in AutoCAD: Part 1
Click OK, and you’re in the Block Editor. The Block Editor is a special
window for editing Dynamic Blocks. The Block Editor has its own
toolbar that provides commands for working with Dynamic Blocks. At
the same time, the Block Authoring Palettes window opens. The
palette has three tabs that are used for turning ordinary blocks or
objects into Dynamic Blocks.
Figure 3: A Dynamic
Block in the Block
Editor
One exception is the alignment parameter, which doesn’t require an action. An alignment
parameter in a Dynamic Block enables you to quickly align the block with other objects in
the drawing—either tangentially or perpendicularly. Many blocks can benefit from an
alignment parameter in addition to the other dynamic features they contain.
The simplest example is a Dynamic Block that allows you to independently move an
object in a block, based on a specified point on the object. You use the point parameter to
specify the point and then attach a move action to that parameter. When you insert and
select this Dynamic Block, you will find a grip on the point you specified. You can then
move the object from that point.
You choose a parameter based on the geometry you want to control and the position,
distance, and/or angle you want to specify. Then you choose an action that modifies that
parameter. Actions are similar to editing commands—they move, stretch, rotate, scale,
array, and mirror (flip) objects.
www.autodesk.com/autocad-blocks 4
Dynamic Blocks in AutoCAD: Part 1
To choose a parameter, click one of the parameters on the Parameters tab of the Block
Authoring palette and then respond to the prompts for that parameter. The prompts vary
with the parameter, but you generally specify the following:
Start point: The first point of the distance (a point parameter has only one point)
Endpoint: The end point of the distance, which may also define an angle
Label location: A place for the parameter’s label (the label location is for your
convenience)
For instance, you may want only one parameter point and grip, perhaps at the right side of
the distance parameter. You can right-click the parameter, and then choose the number of
grips you want from the Grip Display item on the shortcut menu. The example shows one
grip only. If you wanted to add two stretch actions—one to stretch from the left point and
another to stretch from the right point—you would use two grips.
When you finish your parameter, an exclamation point appears to remind you that an
action still needs to be added.
Figure 4: A linear
parameter without an
associated action
To assign an action, click the Actions tab and choose one of the actions. Some restrictions
apply—for example, you can only assign a rotate action to a rotation parameter. The first
prompt always asks you to select a parameter. The next prompt usually asks you to
specify which parameter point you want to associate with the action. For example, if you
want to stretch an object with a linear parameter, do you want to stretch from the left point
or the right point?
The next prompts depend on the action, but you generally need to select the objects you
want to include in the selection set for the action. If you want the parameter to move as
the object moves, you include the parameter in the selection set. Finally, you place the
action’s label. The label has no effect on the Dynamic Block and is simply for your
convenience when you edit the block. When you’re done, the exclamation point should
disappear, which signals that you’ve successfully assigned the action to the parameter.
www.autodesk.com/autocad-blocks 5
Dynamic Blocks in AutoCAD: Part 1
Let’s say that you only buy desks that are 4 feet, 5 feet,
or 6 feet 6 inches long. In this case, you can use a list
value set and simply supply these three values. Then
you can only stretch the desk to one of those three
values. On the other hand, you may have a part whose
length is in increments of 1 inch, but never less than 3
inches or more than 20 inches. In that case, you can
use an increment value set to specify those values and
constrain the length of the part accordingly.
The parameter sets combine the most commonly used pairs of parameters and actions,
such as a point parameter with a move action and a linear parameter with a stretch action.
You still have to choose the geometrical points for the parameter and place its label.
The only missing information is the selection set for the action. For this reason, when you
place a parameter set, you see one or more exclamation points to alert you that you need
to select objects. Double-click the action and then select the objects. That’s all there is
to it.
www.autodesk.com/autocad-blocks 6
Dynamic Blocks in AutoCAD: Part 1
on the Block Editor toolbar. Close it by clicking the Close Button Editor button.
Open a new drawing or any drawing in which you want to insert the Dynamic Block. If you
saved your block as one of a number of blocks in a drawing that functions as a block
library, insert the block from the DesignCenter™ function. If you edited the entire drawing
(choosing <current drawing> when you opened the block editor), choose Insert > Block
from the menu and insert the drawing.
Select the block, and then you will see one or more Dynamic Block grips, which are
usually clicked or dragged. For example, if you added a stretch or move action, the block
stretches or moves as you drag a grip. If you added a flip action, you just click the grip to
flip the block.
Click to flip
(mirror)
Drag to stretch door up/down
wall thickness
www.autodesk.com/autocad-blocks 7
Dynamic Blocks in AutoCAD: Part 1
Quick-start Tutorial
Although this white paper is not meant to be a complete tutorial, we’ve included a short,
simple lesson to help you get started with Dynamic Blocks. After you have created your
first Dynamic Block, you’ll see that the process is not as difficult as it first might seem.
3. In the Block Edit Definition dialog box, choose the deskset block. Click OK. The
Block Editor opens and the Block Authoring Palettes window appears.
4. Click the Parameters tab of the palette and choose Linear Parameter.
6. At the Specify endpoint: prompt, pick the upper-right corner of the desk.
7. At the Specify label location: prompt, pick a location above the desk for the label.
8. Select the parameter. Right-click and choose Grip Display > 1 from the shortcut
menu. The left grip disappears.
9. Click the Actions tab of the palette and choose Stretch Action.
10. At the Specify parameter: prompt, pick the Linear parameter you just inserted.
11. At the Specify parameter point to associate with action or enter [sTart
point/Second point] <Start>: prompt, move the cursor over the right grip. Click
when you see the red marker.
13. At the Specify first corner of stretch frame or [CPolygon]: prompt, click at Point 1
in the figure.
14. At the Specify opposite corner: prompt, click at Point 2 in the figure.
15. At the Specify objects to stretch Select objects: prompt, click near (but not
exactly on) Point 2.
16. At the Specify opposite corner: prompt, click near (but not exactly on) Point 1.
18. At the Specify action location or [Multiplier/Offset]: prompt, pick a point to the
right of the desk for the label.
www.autodesk.com/autocad-blocks 8
Dynamic Blocks in AutoCAD: Part 1
Figure 8: Creating a
stretch action for a
desk
21. In the Folder List, navigate to the drawing where you saved the Dynamic Block.
Double-click the drawing and choose the Blocks item.
22. In the content pane of the DesignCenter, double-click the deskset block. In the
Insert dialog box that opens, click OK. Close the DesignCenter.
23. Click anywhere in your drawing to insert the deskset block. Choose Zoom
Extents from the Zoom flyout of the Standard toolbar to display the entire block.
24. Select the block. The stretch action grip is a right-facing arrow. Drag the arrow to
stretch the desk. Click when the desk is the desired length.
Conclusion
Adding dynamic features to a block greatly increases the flexibility and usefulness of the
block. Take some time to think about how you could use this feature for your blocks and
then start creating some Dynamic Blocks!
Autodesk, AutoCAD and DesignCenter are registered trademarks of Autodesk, Inc., in the About the Author
USA and other countries. All other brand names, product names, or trademarks belong to
their respective holders. Autodesk reserves the right to alter product offerings and Ellen Finkelstein has been
specifications at any time without notice, and is not responsible for typographical or graphical
errors that may appear in this document.
using AutoCAD since 1986.
She is author of AutoCAD
© 2005 Autodesk, Inc. All rights reserved. 2006 and AutoCAD 2006 LT
Bible.
www.autodesk.com/autocad-blocks 9
AutoCAD®
2006
For those new to Dynamic Blocks, Part 1 of this series presents an overview of Dynamic
Blocks and a quick-start tutorial and can be found at www.autodesk.com-autocad-blocks.
Dynamic Blocks in AutoCAD: Part 2
Important additional features are the ability to connect changes, so that changing
one component automatically changes another one; set a multiplier so that one
object moves or stretches a percentage factor of another object; and specify
which grips can be used as insertion base points.
As you can see, Dynamic Blocks offer many capabilities, enabling you to create
blocks that are intelligent and flexible, yet easy to control. Instead of separately
changing numerous components of a block, you can maintain the integrity of the
block while modifying it within specific constraints.
www.autodesk.com/autocad-blocks 2
Dynamic Blocks in AutoCAD: Part 2
The Block Editor is a window and mode separate from the drawing area. You can execute
most commands from within the Block Editor, but not all. However, you can perform all
drawing and editing tasks there. The Block Editor displays all menus and toolbars.
Note: The colored background of the Block Editor indicates that you’re not in the regular Figure 2: Block Editor
drawing area. with the transformer
block open for editing.
Before using the Block Editor, you may find it helpful to familiarize yourself with its toolbar
buttons:
Edit or Create Block Definition: Opens the Edit Block Definition dialog box,
where you can choose another existing block to edit or enter a name to create a
new block in the Block Editor. Use this button to edit several Dynamic Blocks
(existing or new) without exiting the Block Editor.
Save Block Definition: Saves the current block.
Save Block As: Opens the Save Block As dialog box, where you can save the
current block under a new name. Use this procedure to define a new Dynamic
Block based on an existing one.
Block Definition Name: Lists the block you are currently editing.
Authoring Palettes: Toggles the display of the Block Authoring Palettes window.
Use this window to place parameters, actions, and parameter sets.
Parameter: Starts the BPARAMETER command, which enables you to use the
command line (or dynamic input tooltip) to place a parameter. The options are
the same as when you use the Block Authoring Palettes window.
Action: Starts the BACTION command, which enables you to use the command
line (or dynamic input tooltip) to place an action. The options are the same as
when you use the Block Authoring Palettes window.
www.autodesk.com/autocad-blocks 3
Dynamic Blocks in AutoCAD: Part 2
Define Attribute: Opens the Attribute Definition dialog box, where you define
attributes for the block.
Update Parameter and Action Text Size: Sometimes, the parameter and action
text becomes unusually large. When this happens, just click this button, and the
text resizes to normal.
Learn About Dynamic Blocks: Opens the New Features Workshop, where you
can view a tutorial on Dynamic Blocks.
Exit Block Editor and Return to Drawing: Closes the Block Editor.
Visibility Mode: Toggles the BVMODE system variable, which determines how
invisible objects display in the Block Editor. The default value (0) does not display
invisible objects for the current visibility state. If you change the value to 1 (by
clicking the Visibility Mode button), invisible objects are dimmed but still visible.
Make Visible: Makes selected objects visible for the current visibility state.
Make Invisible: Makes selected objects invisible for the current visibility state.
Manage Visibility States: Opens the Visibility States dialog box, where you
name visibility states.
Visibility States drop-down list: Displays the current visibility state. Choose a
visibility state from this list to change the current visibility state.
Note: Visibility states are discussed in more detail in Part 3 of this series of white papers
on Dynamic Blocks.
When you open the Block Editor, the Block Authoring Palettes window automatically
opens. This window has three tabs:
Parameters
Actions
Parameter Sets
The contents of these tabs are discussed in the rest of this white paper.
Using Parameters
The first step in creating a Dynamic Block is to add a parameter. You can find all the
parameters on the Parameters tab of the Block Authoring Palettes window. A parameter
defines the geometry of the block to which you add a parameter. In each case, you need
to specify geometric points on the block. Usually, you add an action to the parameter to
define how the geometry will change when you edit the Dynamic Block in a drawing.
www.autodesk.com/autocad-blocks 4
Dynamic Blocks in AutoCAD: Part 2
Note: Visibility states, lookup parameters, and many specific uses for these parameters
are discussed more in detail in Part 3 of this set of white papers on Dynamic Blocks.
www.autodesk.com/autocad-blocks 5
Dynamic Blocks in AutoCAD: Part 2
For example, you can attach an array action to an XY parameter. In Figure 4, the row and
column distances are defined to be one unit larger than the stepping-stone, so that there
are spaces between the stones when they are arrayed. If you know the X and Y distances
that need to be covered with stepping-stones, you can easily array the stones to cover the
area.
Figure 4: Arraying
stepping-stones. The
block contains one
stepping-stone with an
XY parameter and an
array action.
Using Actions
All actions are attached to a parameter. First, you add a parameter to a block, and then
you add an action to the parameter.
www.autodesk.com/autocad-blocks 6
Dynamic Blocks in AutoCAD: Part 2
Actions are similar to the commands on the Modify toolbar. They define the way objects
within the dynamic block change when you edit the block in a drawing. Actions need to
match up with an appropriate parameter. The following table explains each action and its
appropriate parameters.
The door shown in Figure 6 has many capabilities, including two flip parameters and
corresponding flip actions. (You can stretch it, set the opening angle, and change the wall
thickness.)
Flip parameters
www.autodesk.com/autocad-blocks 7
Dynamic Blocks in AutoCAD: Part 2
By flipping horizontally (across the vertical reflection line), you can insert a door that opens
from the left or from the right. By flipping vertically (across the horizontal reflection line),
you can insert a door that opens inward or outward.
The Parameter Sets tab is so long that it doesn’t fit on the screen; you need to scroll down
to see all the sets.
To see what the set contains, place the cursor over any parameter set to see a tooltip
explaining the set’s functioning.
When you place a parameter set, you still need to respond to the
parameter prompts by specifying one or more points and placing
the label. An exclamation point appears next to the action to
indicate that you still need to select objects for the action.
Double-click the action to display prompts for selecting objects.
Figure 8: The
Parameter Sets tab of
the Block Authoring
Palettes window.
www.autodesk.com/autocad-blocks 8
Dynamic Blocks in AutoCAD: Part 2
Name Description
Point Move A point parameter with a move action
Linear Move A linear parameter with one grip and a move action at the endpoint
Linear A linear parameter with one grip and a stretch action at the endpoint
Stretch
Linear Array A linear parameter with one grip and an array action at the endpoint
Linear Move A linear parameter with two grips and a move action at both the start
Pair point and endpoint
Linear A linear parameter with two grips and a stretch action at both the start
Stretch Pair point and endpoint
Polar Move A polar parameter with one grip and a move action at the endpoint
Polar A polar parameter with one grip and a stretch action at the endpoint
Stretch
Polar Array A polar parameter with one grip and an array action at the endpoint
Polar Move A polar parameter with two grips and move actions at both the start
Pair point and endpoint
Polar A polar parameter with two grips and stretch actions at both the start
Stretch Pair point and endpoint
XY Move An XY parameter with one grip and a move action at the endpoint
XY Move An XY parameter with two grips and move actions at both the start point
Pair and endpoint
XY Move An XY parameter with four grips and move actions at all four
Box Set coordinates defined by the start point and endpoint
XY Stretch An XY parameter with four grips and stretch actions at all four
Box Set coordinates defined by the start point and endpoint. Use this parameter
set to create a rectangular block that you can stretch from any corner,
without changing the shape of the block.
XY Array An XY parameter with four grips and array actions at all four
Box Set coordinates defined by the start point and endpoint
Rotation Set A rotation parameter and rotation action
Flip Set A flip parameter and flip action
Visibility Set A visibility parameter
Lookup Set A lookup parameter and lookup action
Figure 9: A rectangular
block with an XY
Stretch Box parameter
set, as shown in the
Block Editor.
www.autodesk.com/autocad-blocks 9
Dynamic Blocks in AutoCAD: Part 2
Autodesk, AutoCAD and DesignCenter are registered trademarks of Autodesk, Inc., in the About the Author
USA and other countries. All other brand names, product names, or trademarks belong to
their respective holders. Autodesk reserves the right to alter product offerings and
Ellen Finkelstein has been
specifications at any time without notice, and is not responsible for typographical or graphical using AutoCAD since 1986.
errors that may appear in this document.
She is author of AutoCAD
© 2005 Autodesk, Inc. All rights reserved.
2006 and AutoCAD 2006 LT
Bible.
www.autodesk.com/autocad-blocks 10
AutoCAD®
2006
Stretching a Block
Equally in Opposite
Directions.................. 7
Chaining Parameters
................................... 8
Using Lookup
Parameters
and Tables .............. 12
Conclusion.............. 14
1
Dynamic Blocks in AutoCAD: Part 3
To change a parameter label, use the Label option at the first parameter prompt when you
create the parameter. Or, you can create the parameter with the default label, select the
parameter, and change the label in the Properties palette.
Note that parameters also have a name, which doesn’t appear in the Block Editor and
simply denotes the type of parameter. For example, if you create a linear parameter, its
name is Linear. If you create a second linear parameter, its name is Linear1. Although you
can change a parameter name in the Properties palette, it’s probably best not to do so,
because these names can help you understand the type of parameter you’ve used when
creating the Dynamic Block.
Figure 1: A
parameter has
both a name and
a label.
Actions have names only (no labels), and you may want to change these to make them
more meaningful. If you create more than one of the same action type, they are also
numbered consecutively (for example, Stretch and Stretch1) as needed. If your stretch
action changes the width of the door, you could change the action name to Stretch Door.
www.autodesk.com/autocad-blocks 2
Dynamic Blocks in AutoCAD: Part 3
Actions also have a type (such as Stretch). The action type appears in the Properties
palette, but you can’t change it.
For example, let’s say that you have a desk with a linear parameter and a stretch action
so that you can stretch the width of the desk. You want to be able to move the chair
independently (so it has a point parameter and a move action), but you also want it to
move to the right when you stretch the desk to the right. To accomplish this, when you
select objects for the desk’s stretch action, you need to include the chair and its point
parameter. Therefore, you need to create the parameter for the chair before you create
the stretch action for the desk. In general, if you want to include another object in an
action that has a parameter of its own, you should create the two parameters first, before
adding the first action.
Figure 3: Create
different results by
changing the selection
set for the desk’s
stretch action.
www.autodesk.com/autocad-blocks 3
Dynamic Blocks in AutoCAD: Part 3
A common use for including a second parameter in the selection set of an action is for a
base parameter. Use a base parameter if you want the base point of the block reference
to remain in the same position relative to the block, for example, at the lower-left corner of
a rectangle, even when that position moves. If an action (such as stretch or move) moves
that lower-left corner, then you should include the base parameter in the selection set of
that action, along with its parameter. Then the base point of the block always remains in
its proper location when you edit the block in a drawing.
Figure 5: Upper-right
corner included in
stretch frame
www.autodesk.com/autocad-blocks 4
Dynamic Blocks in AutoCAD: Part 3
By default, insertion cycling is on. You can turn it off for any grip by selecting just the grip
and changing the Cycling property in the Properties palette to No. You can also use the
BCYCLEORDER command in the Block Editor to change the cycling order of the grips in
the Insertion Cycling Order dialog box.
www.autodesk.com/autocad-blocks 5
Dynamic Blocks in AutoCAD: Part 3
To create this angle offset, you author the Dynamic Block shown in the figure as follows:
1. Create the door by drawing a rectangle and an arc. Make a block from these objects,
and use the lower-left corner of the door as the base point.
2. Open the Block Editor, and select the door to edit.
3. Create a linear parameter as shown on the left side of the figure, to represent the
door width. Select the parameter, right-click it, and choose Grip Display>1 to show
only a grip on the right end of the parameter.
4. Add a stretch action to the linear parameter. For the stretch frame, specify a window
that covers the top part of the rectangle. When you select objects, select everything
except the arc.
5. Select the stretch action. In the Properties palette, change its Angle Offset value to
90.
6. Add a scale action to the linear parameter, and select the arc.
7. Save the block and close the Block Editor. When you grip-edit the block, click the
stretch grip to change the door opening. The door stretches in the 90-degree direction
and the arc scales correspondingly.
You can also create the angle offset while creating the action. At the Specify Action
Location or [Multiplier/Offset] prompt, use the Offset option and set its value to 90.
To keep a component centered, you use a distance multiplier of 0.5, so that the
component always moves half the distance of the rest of the block. In this example, you
can use a stretch action to change the diameter (a linear parameter) of the entire block.
The two vertical lines in the middle (the central hole) have a move action attached to the
same linear parameter, with a distance multiplier of 0.5.
To create a distance multiplier, you add an action as usual. After the prompt to select
objects, you see the Specify Action Location or [Multiplier/Offset] prompt. Use the
Multiplier option to specify the distance multiplier. You can also change the multiplier
afterward by selecting the action and using the Properties palette.
www.autodesk.com/autocad-blocks 6
Dynamic Blocks in AutoCAD: Part 3
The I-beam has a linear parameter and two stretch actions, both attached to the same grip
point on the right side of the parameter. Because you don’t need the grip on the left, select
the parameter, right-click it, and choose Grip Display>1. The Stretch Left action’s angle
offset is 180 degrees. A base point parameter at the upper-left corner, which is included in
the selection set of the Stretch Left action, keeps the base point at that corner, even when
that corner moves in the stretching action. As you drag the rectangular grip in a drawing,
both sides of the I-beam stretch by the same amount.
www.autodesk.com/autocad-blocks 7
Dynamic Blocks in AutoCAD: Part 3
Chaining Parameters
Sometimes, you need one action to cause another action to occur. If those two actions
can share a parameter grip, then you can accomplish this easily. For example, the door
shown in “Changing the Direction of an Action” earlier in this document has two actions: a
scale action that scales the arc and a stretch action that stretches the door. Because
these two actions can share one parameter and grip, when you stretch the door, you also
scale the arc.
However, sometimes your geometry is more complex and you need more than one
parameter. Yet you still want one action to activate another action. You do this using the
chaining feature. Because you want one action to activate another one, you need two
actions and two parameters. The principles of chaining are as follows:
When you grip-edit the block using the action of parameter 1, the action of parameter 2 is
activated at the same time.
Tip: Because parameter 2’s action is automatically activated, it doesn’t need any grips. To
avoid confusion during editing, you can remove all its grips. Select it, right-click it, and
choose Grip Display>0.
www.autodesk.com/autocad-blocks 8
Dynamic Blocks in AutoCAD: Part 3
In the following example, you want to stretch the cut-out sheet metal plate and create an
array from the small circle (the cutout) at the same time. You want the circles to have 0.5
units between them, and you also want to maintain equal spacing at either end of
the plate.
The stretch action is the main action that you want to be able to grip-edit. As you stretch to
lengthen the plate, you want the circle to create an array. Here’s how to set up this block:
www.autodesk.com/autocad-blocks 9
Dynamic Blocks in AutoCAD: Part 3
When you grip-edit the block in the drawing, you see only one grip, so you don’t have to
remember which grip to stretch.
You define visibility states, each of which is a variation of visibility or invisibility. You can
make one or more components visible or invisible. In the following figure, all the resistor
variations are one Dynamic Block. The components that are different are specified as
visible or invisible for each of five visibility states. You’ve just combined five blocks into
one!
www.autodesk.com/autocad-blocks 10
Dynamic Blocks in AutoCAD: Part 3
You can use visibility states to switch among objects. For example, you might want to
have two variations of a telephone on a desk—a single-line phone and a multiline phone.
By putting these two phones in the same location and setting two visibility states, you can
choose which phone to display when you edit the block.
4. Click the default visibility state, called VisibilityState0. Type the name of your first
visibility state, and press Enter.
5. Click New to open the New Visibility State dialog box. Enter the second visibility state
name, and click OK. Repeat for all the visibility states that you want to create.
6. Click OK to close the Visibility States dialog box. (The visibility state at the top of the
list will be the default state when you insert the block. You can choose a visibility state
and use the Move Up button to move it to the top of the list.)
7. Choose the first visibility state from the Visibility States drop-down list at the right side
of the Block Editor toolbar. Select all the components that you want to be invisible for
that state. Click the Make Invisible button on the Block Editor toolbar.
8. Repeat the previous step for each state. You can also select objects and make them
visible by clicking the Make Visible button. If you need to select an object that is
invisible, click the Visibility Mode button, which displays invisible objects in gray so
you can see and select them.
www.autodesk.com/autocad-blocks 11
Dynamic Blocks in AutoCAD: Part 3
When you’re done, select each state from the drop-down list and check that it displays the
correct objects. Save the block, and close the Block Editor.
When you select the Dynamic Block in the drawing, click the down arrow to display the list
of visibility states. Select a state to display it.
Visibility states are a powerful, yet simple way to add great flexibility to a block.
The lookup parameter and action are based on another parameter and action, such as a
linear parameter and stretch action. You may want to create a value set to preset the
values that you can use in the lookup table, but you can also set the values when you
create the lookup table.
www.autodesk.com/autocad-blocks 12
Dynamic Blocks in AutoCAD: Part 3
5. If you have values from a value set, click the first row of the Input Properties side
and click the drop-down arrow that appears. Choose the first value. Otherwise,
just enter values on each row. Click the corresponding row on the Lookup
Properties side, and enter the label that you want for that value.
6. Click the lower-right cell in the dialog box, which says Read Only by default.
Choose Allow Reverse Lookup. For this to work, all rows in the table must be
unique. Use this option in order to choose a value from a drop-down list when
you insert the block.
7. Click OK.
8. Save the block, and close the Block Editor.
Now, when you grip-edit the block, you’ll see a down arrow. Click the arrow to choose one
of the labels and apply its corresponding value to the block.
Tip: You can extract parameter values like attributes. For example, if you choose a desk
length of 7 feet, you can extract that value. You can also create invisible values that you
can extract using a lookup table. To do so, add a lookup parameter and action. Change
the label of the parameter to the property (like an attribute tag) that you want. For
example, you could label the parameter “Chair Color.” In the Property Lookup Table dialog
box, add the colors on the Lookup Properties side, leaving the Input Properties side blank.
In the drawing, you can choose a chair color by clicking the lookup parameter’s down
arrow. You don’t see any change in your drawing, but when you extract attributes, the
color appears in the output.
www.autodesk.com/autocad-blocks 13
Dynamic Blocks in AutoCAD: Part 3
Conclusion
Dynamic Blocks in AutoCAD 2006 software give you more control over your blocks,
helping you increase efficiency and get the job done faster. Dynamic Blocks enable you to
reduce the size of your block libraries while giving you more block options that are easier
to access, manipulate, and place. The advanced features detailed in this white paper help
to ensure that when you create blocks, you can place and manipulate correctly the first
time—and be more efficient every time.
Autodesk and AutoCAD are registered trademarks of Autodesk, Inc., in the USA and other About the Author
countries. All other brand names, product names, or trademarks belong to their respective
holders. Autodesk reserves the right to alter product offerings and specifications at any time Ellen Finkelstein has been
without notice, and is not responsible for typographical or graphical errors that may appear in using AutoCAD since 1986.
this document.
She is author of AutoCAD
www.autodesk.com/autocad-blocks 14