ellen finkelstein logo

Ellen Finkelstein.com
AutoCAD PowerPoint About Links
       

Over 130 AutoCAD tips and tutorials!

AutoCAD Tips
AutoCAD Tips Blog

Get free tips!
Sign up for our monthly tips newsletter. Free, bonus e-booklet!


RSS: What is it? Why do I want it? How do I get it?

Add to My Yahoo!
Subscribe with Bloglines

Buy a Book

E-mail This Page 
to a Friend

Submit a tip! If you include your name and I post your tip, I'll give you credit.

AutoCAD Tips & Tutorials

Chain dynamic blocks (AutoCAD 2006 and later)

Dynamic blocks, introduced in AutoCAD 2006, are very powerful, but sometimes they can get complicated. One of the more involved features of dynamic blocks is chaining. In this tip, I try to make chaining easy.

Sometimes, you want one action to execute a second action at the same time. If the relationship between the two actions is simple and direct, you can accomplish this easily -- without chaining. You just attach two actions to the same grip on the same parameter. When you grip-edit one action, the other happens at the same time.

For example, in this desk set, the desk has a linear parameter and a stretch action attached to the right grip of the parameter. The top-right chair has a move action attached to the same grip. The bottom chair also has a move action attached to that same grip, but the distance multiplier is set to 0.5.

So when you stretch the desk, the top chair moves the same distance, always remaining lined up with the right side of the desk. The bottom chair moves half the distance, always remaining centered behind the desk.

But, your geometry may require more than one parameter.  To activate one action with another in this situation, you use the chaining feature. Note that the secondary parameter, the one whose action will be activated by the primary action, must be a point, linear, polar, XY, or rotation parameter. There are some other limitations, too, but they're hard to explain, so just experiment.

Remember that you want one action (with its parameter) to activate another action, also with a parameter. So you need two actions and two parameters. Create a chained parameter as follows:

  1. Create the block and open it in the Block Editor.

  2. Decide on the parameters you'll need and their actions.

  3. Decide which action you'll grip-edit in the drawing. This is the primary action that will activate the other, secondary, action.

  4. Create both parameters first, before creating any actions.

  5. Create the primary action and attach it to its parameter (the primary parameter).

  6. When you specify the objects for the primary action, include the parameter of the secondary action. This is very important. But don't include the objects that will be in the selection set of the secondary action.

  7. Create the secondary action, attach it to its parameter, and select its objects.

  8. Select the secondary parameter, open the Properties palette, and set its chaining property to Yes.

To summarize, the basic principles of chaining are as follows:

  • The primary parameter has an action whose selection set includes the secondary parameter in addition to any other objects it will act on. (If the action is a stretch action, the stretch frame also needs to include the secondary parameter.)

  • The secondary parameter's chaining property is set to Yes.

Save your block, close the Block Editor and try out your chained dynamic block. When you grip-edit the primary action, the secondary action will be activated at the same time.

As you drag the primary parameter's grip, the secondary parameter's grip moves in response to the result of the primary action. For this reason, chaining is useful when you want to maintain a constant relationship between two components in a block. 

In this cover, the handle needs to stay the same distance from the top of the cover. The cover comes in three sizes (the linear parameter has a value set) and has a stretch action. As the cover is scaled, the handle moves up.

Note: Once you've perfected your block, you can remove the grips from the secondary parameter, because you don't need them. In the Block Editor, select the secondary parameter, right-click it, and choose Grip Display > 0.

The move action is attached to the top grip of its linear parameter. As the cover is scaled, this parameter (the secondary parameter) moves up, thereby moving the handle.

 

 

 

Back to main tips menu for more tips

Page copy protected against web site content infringement by Copyscape


Books by Ellen

New!
AutoCAD 2009 and AutoCAD LT 2009 Bible

This is the 9th edition of this book! Completely updated to conform to the new interface and, of course, it covers all the new features, such as the ribbon, Quick View, ShowMotion, the View Cube, the SteeringWheel, and more.

AutoCAD 2008 and AutoCAD LT 2008 Bible
Learn the great new features with wide application to all disciplines. Get the most comprehensive book on AutoCAD! DVD contains a 30-day trial of AutoCAD and AutoCAD LT. Thorough exercises guide you through each feature.

AutoCAD 2007 and AutoCAD LT 2007 Bible 
Discover the 2007 features, especially the radically improved 3D tools. CD has AutoCAD 30-day trial, 3rd-party software, and drawings for exercises.

AutoCAD 2006 and AutoCAD LT 2006 Bible 
Understand and use the 2006 features, including dynamic blocks and the new method of customizing menus and toolbars. CD-ROM has AutoCAD trial, software, and drawings for all exercises.


AutoCAD 2005 and AutoCAD LT 2005 Bible
Fully explains latest 2005 features:  tables, fields, and sheet sets. For the first time, covers AutoCAD LT! CD-ROM comes with software and drawings for all exercises.


AutoCAD 2004 Bible

Covers all features in detail. Hands-on exercises. Over 1300 pages + CD-ROM with software and drawings for all exercises.

                                  Home  |  AutoCAD  |  PowerPoint  | E-StoreAbout  | Links | Contact | Site Map
Copyright Ellen Finkelstein, Inc.