Professional Documents
Culture Documents
2007
A
AutoCAD
--- u t o
00127-050008-1720A
®
--- d e
--- s k
(AOTC)
--- ®
--- O f
--- f i c
Be
®
No --- i a l
tV ta --- T
al --- r a i
id M --- n i n
--- g
fo at --- C o
rS --- u r
al er --- s e
--- w a
Autodesk Official
eo ia --- r e
rR ls ---
es
Training Courseware
al
e
Designing and Managing Dynamic Blocks
© Copyright 2006 Autodesk, Inc.
All rights reserved.
This publication, or parts thereof, may not be reproduced in any form, by any method, for any purpose.
AUTODESK, INC., MAKES NO WARRANTY, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
FITNESS FOR A PARTICULAR PURPOSE REGARDING THESE MATERIALS, AND MAKES SUCH MATERIALS AVAILABLE SOLELY ON AN “AS-IS” BASIS.
IN NO EVENT SHALL AUTODESK, INC., BE LIABLE TO ANYONE FOR SPECIAL, COLLATERAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES IN CONNECTION WITH OR
ARISING OUT OF PURCHASE OR USE OF THESE MATERIALS. THE SOLE AND EXCLUSIVE LIABILITY TO AUTODESK, INC., REGARDLESS OF THE FORM OF ACTION,
SHALL NOT EXCEED THE PURCHASE PRICE OF THE MATERIALS DESCRIBED HEREIN.
Autodesk, Inc., reserves the right to revise and improve its products as it sees fit. This publication describes the state of this product at the time of its publication,
and may not reflect the product at all times in the future.
Autodesk Trademarks
The following are registered trademarks of Autodesk, Inc., in the USA and other countries: 3DEC (design/logo), 3December, 3December.com, 3D Studio, 3D Studio
MAX, 3D Studio VIZ, 3ds Max, ActiveShapes, Actrix, ADI, AEC-X, Alias, Alias (swirl design/logo), Alias|Wavefront (design/logo), ATC, AUGI, AutoCAD, AutoCAD LT,
Autodesk, Autodesk Envision, Autodesk Inventor, Autodesk Map, Autodesk MapGuide, Autodesk Streamline, Autodesk WalkThrough, Autodesk World, AutoLISP,
AutoSketch, Backdraft, Bringing information down to earth, Buzzsaw, CAD Overlay, Can You Imagine, Character Studio, Cinepak, Cinepak (logo), Civil 3D, Cleaner,
Combustion, Constructware, Create>what’s>Next (design/logo), DesignStudio, Design|Studio (design/logo), Design Your World, Design Your World (design/
logo), EditDV, Education by Design, FBX, Filmbox, Gmax, Heidi, HOOPS, HumanIK, i-drop, IntroDV, Kaydara, Kaydara (design/logo), Lustre, Maya, Mechanical
Desktop, ObjectARX, Open Reality, PortfolioWall, Powered with Autodesk Technology (logo), ProjectPoint, RadioRay, Reactor, Revit, SketchBook, Visual, Visual
Construction, Visual Drainage, Visual Hydro, Visual Landscape, Visual Roads, Visual Survey, Visual Toolbox, Visual Tugboat, Visual LISP, Voice Reality, Volo, WHIP!,
--- r e
and WHIP! (logo).
--- w a
The following are trademarks of Autodesk, Inc., in the USA and other countries: AliasStudio, AutoCAD Learning Assistance, AutoCAD Simulator, AutoCAD SQL
---
Extension, AutoCAD SQL Interface, AutoSnap, AutoTrack, Built with ObjectARX (logo), Burn, CAiCE, Cinestream, Cleaner Central, ClearScale, Colour Warper,
--- s e
Content Explorer, Dancing Baby (image), DesignCenter, Design Doctor, Designer’s Toolkit, DesignKids, DesignProf, DesignServer, Design Web Format, DWF,
--- u r
DWG, DWG Linking, DWG (logo), DWG TrueConvert, DWG TrueView, DXF, Extending the Design Team, GDX Driver, Gmax (logo), Gmax ready (logo), Heads-up
Design, Incinerator, LocationLogic, MotionBuilder, ObjectDBX, Plasma, PolarSnap, Productstream, RealDWG, Real-time Roto, Render Queue, ShowCase,
--- C o
StudioTools, Subcontractor Desktop, Topobase, Toxik, Visual Bridge, Visual Syllabus, and Wiretap.
ls
Autodesk Canada Co. Trademarks
--- g
--- n i n
The following are registered trademarks of Autodesk Canada Co. in the USA and/or Canada and other countries: Discreet, Fire, Flame, Flint, Flint RT, Frost, Glass,
e
ia
Inferno, MountStone, Riot, River, Smoke, Sparks, Stone, Stream, Vapour, Wire.
--- r a i
al
The following are trademarks of Autodesk Canada Co., in the USA, Canada, and/or other countries: Backburner, Multi-Master Editing.
--- T
es
er
Third Party Trademarks
--- i a l
rR
All other brand names, product names, or trademarks belong to their respective holders.
--- f i c
at
Third Party Software Program Credits
eo
--- O f
Microsoft and Windows are registered trademarks of Microsoft Corporation in the United States and/or other countries.
M
--- ®
al
ACIS copyright © 1989–2001 Spatial Corp. Portions copyright © 2002 Autodesk, Inc.
--- s k
AnswerWorks 4.0 ©; 1997–2003 WexTech Systems, Inc. Portions of this software © Vantage-Knexys. All rights reserved.
rS
--- d e
id
AutoCAD ® 2007 and AutoCAD LT ® 2007 are produced under a license of data derived from DIC Color Guide ® from Dainippon Ink and Chemicals,
Be
Inc. Copyright © Dainippon Ink and Chemicals, Inc. All rights reserved. DIC and DIC Color Guide are registered trademarks of Dainippon Ink and
al
Chemicals, Inc.
tV
International CorrectSpell™ Spelling Correction System © 1995 by Lernout & Hauspie Speech Products, N.V. All rights reserved.
InstallShield™ 3.0. copyright © 1997 InstallShield Software Corporation. All rights reserved.
No
Macromedia ® and Flash ® are registered trademarks or trademarks of Adobe Systems Incorporated in the United States or other countries.
PANTONE ® Colors displayed in the software application or in the user documentation may not match PANTONE-identified standards. Consult current
PANTONE Color Publications for accurate color.
PANTONE ® and other Pantone, Inc. trademarks are the property of Pantone, Inc. © Pantone, Inc., 2002.
Pantone, Inc. is the copyright owner of color data and/or software which are licensed to Autodesk, Inc., to distribute for use only in combination with
certain Autodesk software products. PANTONE Color Data and/or Software shall not be copied onto another disk or into memory unless as part of the
execution of this Autodesk software product.
Portions copyright © 1991–1996 Arthur D. Applegate. All rights reserved.
Portions of this software are based on the work of the Independent JPEG Group.
RAL DESIGN © RAL, Sankt Augustin, 2002.
RAL CLASSIC © RAL, Sankt Augustin, 2002.
Representation of the RAL Colors is done with the approval of RAL Deutsches Institut für Gütesicherung und Kennzeichnung e.V. (RAL German Institute
for Quality Assurance and Certification, re. Assoc.), D-53757 Sankt Augustin.
Typefaces from the Bitstream ® typeface library copyright 1992.
Typefaces from Payne Loving Trust © 1996. All rights reserved.
Printed and Help produced with Idiom WorldServer™.
GOVERNMENT USE
Use, duplication, or disclosure by the U.S. Government is subject to restrictions as set forth in FAR 12.212 (Commercial Computer Software-Restricted Rights) and
DFAR 227.7202 (Rights in Technical Data and Computer Software), as applicable.
Contents
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v
--- r e
Lesson: Using Dynamic Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
--- w a
---
Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
--- s e
About Dynamic Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
--- u r
About the Block Editor Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
--- C o
Using the Block Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
ls
--- g
Exercise: Use Dynamic Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
--- n i n
e
ia
--- r a i
al
Lesson: Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
--- T
es
Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
er
--- i a l
About Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
rR
--- f i c
Adding Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
at
eo
Exercise: Add Parameters to a Dynamic Block . . . . . . . . . . . . . . . . . . . . . . . 24
--- O f
Lesson: Actions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
M
--- ®
al
Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
--- s k
rS
About Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
--- d e
Adding Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
ta
fo
--- u t o
id
Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
tV
iii
Chapter 2: Beyond the Basics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Lesson: Chaining Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
About Chaining Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Chain Actions Property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Exercise: Chain Actions in a Dynamic Block . . . . . . . . . . . . . . . . . . . . . . . . . 78
Lesson: Attributes and Dynamic Blocks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
About Chaining Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
About Dynamic Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
About Dynamic Attribute Definitions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Creating Dynamic Attributes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Exercise: Create Dynamic Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Lesson: Managing Dynamic Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
--- r e
Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
--- w a
---
Storing Dynamic Block Libraries. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
--- s e
Accessing Dynamic Block Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
--- u r
Disabling the Block Editor Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
--- C o
Exercise: Manage Dynamic Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
ls
--- g
Chapter Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
--- n i n
e
ia
--- r a i
al
Appendix A: Additional Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
--- T
es
er
--- i a l
at
eo
Autodesk Certification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
--- O f
al
rS
ta
fo
--- u t o
A
id
Be
al
tV
No
iv ■ Contents
Introduction
Welcome to the AutoCAD 2007: Designing and Managing Dynamic Blocks Autodesk Official Training
Courseware (AOTC), a training course for use in Authorized Training Center (ATC) locations, corporate
training settings, and other classroom settings.
--- r e
Although this courseware is designed for instructor-led courses, you can also use it for self-paced
--- w a
---
learning. The courseware encourages self-learning through the use of the AutoCAD® Help system.
--- s e
This introduction covers the following topics:
--- u r
--- C o
■
Course objectives
■ Prerequisites
ls
--- g
--- n i n
■
Using this courseware
e
ia
--- r a i
al
■
CD contents
--- T
es
■ Completing the exercises
er
--- i a l
■
rR
Installing the exercise data files from the CD
--- f i c
at
■
Imperial and metric datasets
eo
--- O f
al
■
Feedback
--- s k
rS
--- d e
id
Be
al
Course Objectives
tV
■
Create dynamic blocks including parameters and actions.
■
Use some of the more advanced features and properties of dynamic blocks, and restrict
unauthorized editing.
v
Prerequisites
This course is designed for the AutoCAD user who possesses an Intermediate level knowledge of
AutoCAD or has been using AutoCAD for some time and understands how standard blocks are created
and used.
It is recommended that you have a working knowledge of:
■
The current or a previous release of AutoCAD.
■
Creating and editing basic AutoCAD objects.
■ Field text.
■
Static blocks.
■
Attributes.
■ Microsoft® Windows® 2000 or Microsoft® Windows® XP.
--- r e
--- w a
---
Using This Courseware
--- s e
--- u r
The lessons are independent of each other. However, it is recommended that you complete these
--- C o
lessons in the order that they are presented unless you are familiar with the concepts and functionality
described in those lessons.
ls
--- g
--- n i n
e
ia
--- r a i
al
■
Lessons
--- T
es
Usually two or more lessons in each chapter.
er
--- i a l
■ Exercises rR
--- f i c
at
Practical, real-world examples for you to practice using the functionality you have just learned.
eo
--- O f
Each exercise contains step-by-step procedures and graphics to help you complete the exercise
M
--- ®
al
successfully.
--- s k
rS
--- d e
CD Contents
ta
fo
--- u t o
The CD attached to the back cover of this book contains all the data and drawings you need to
A
id
Be
vi ■ Introduction
Completing the Exercises
You can complete the exercise in two ways: using the book or online.
■
Using the book
Follow the step-by-step exercises in the book.
■ Online
Click the AutoCAD 2007 Designing and Managing Dynamic Blocks AOTC icon on your desktop,
installed from the CD, and follow the step-by-step exercises online. The online exercises are the
same as those in the book. The online version has the advantage that you can concentrate on the
screen without having to glance down at your book.
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
M
--- ®
al
--- s k
rS
--- d e
ta
fo
--- u t o
A
id
Be
al
After launching the online exercises, you might need to alter the size of your application window to
tV
Unless you specify a different folder, the exercise files are installed in the following folder:
C:\Documents and Settings\All Users\Autodesk Learning\AutoCAD 2007\
Designing and Managing Dynamic Blocks
After you install the data from the CD, this folder contains all the files necessary to complete each
exercise in this course.
Introduction ■ vii
Imperial and Metric Datasets
In exercises that specify units of measurement, alternative files are provided as shown in
the following example:
■
Open i_stair_settings.dwg (imperial) or m_stair_settings.dwg (metric).
In the exercise steps, the imperial value is followed by the metric value in parentheses as shown in the
following example:
■
For Length, enter 13'2" (4038 mm).
For exercises with no specific units of measurement, files are provided as shown in the
following example:
■
Open c_stair_settings.dwg (common).
--- r e
In the exercise steps, the unitless value is specified as shown in the following example:
--- w a
---
--- s e
■
For Length, enter 400.
--- u r
Some exercises may be provided with only a metric or imperial version. In those instances, you will be
--- C o
asked to enter the appropriate value, as described above.
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
Throughout this courseware, notes, tips, and warnings are called out for special attention.
er
--- i a l
rR
--- f i c
at
eo
--- O f
al
--- s k
rS
--- d e
id
Be
Warnings provide information about actions that might result in the loss of data,
al
Feedback
We always welcome feedback on Autodesk Official Training Courseware. After completing this course,
if you have suggestions for improvements or if you want to report an error in the book or on the CD,
please send your comments to AOTC.feedback@autodesk.com.
viii ■ Introduction
Chapter
--- r e
--- w a
---
Basics of Dynamic Blocks
--- s e
Chapter1:
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
Dynamic blocks provide capabilities beyond those of static blocks. For example, they provide the
ability of one block to represent multiple configurations. To create these objects, an environment
--- T
es
er
--- i a l
dedicated to block creation and editing is required. You use the Block Editor environment to
rR
create and edit both dynamic and static blocks. To transform a static block into a dynamic block,
--- f i c
at
all that is required is a few carefully planned parameters and actions. Each parameter and action
eo
--- O f
provides the potential for the block to be changed after it is inserted. It is this ability to change
M
--- ®
al
rS
--- d e
ta
fo
--- u t o
Objectives
A
id
Be
■ Describe the use and benefits of dynamic blocks and use the Block Editor environment to
create and edit blocks.
No
■
Describe parameters and add them to your block objects.
■ Describe actions and add them to your block objects to create dynamic blocks.
■
Use parameter sets to add parameters and actions to your dynamic blocks.
■
Create a variety of dynamic blocks.
1
Lesson: Using Dynamic Blocks
Overview
This lesson describes dynamic blocks and how you can use them to increase productivity.
In the following illustration, a single dynamic block is used to accurately represent different bed sizes.
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
You can streamline your current block libraries by using dynamic blocks. Instead of having a separate
M
--- ®
al
block for each potential configuration of an object, a single dynamic block can represent multiple
--- s k
rS
object configurations.
--- d e
ta
fo
--- u t o
A
Objectives
id
Be
al
■
Describe dynamic blocks and their benefits.
No
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
at
All dynamic blocks consist of specific elements that control the behavior of the dynamic block. These
eo
--- O f
al
--- s k
rS
Term Definition
--- d e
ta
fo
--- u t o
Parameters Identified on screen by a blue grip. The grip shape varies based on the type of
parameter. Some parameters, such as linear, XY, and polar resemble dimensions.
A
id
Be
al
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
Benefits
at
eo
--- O f
al
--- s k
■
You can streamline existing block libraries by combining multiple blocks into a single
rS
--- d e
dynamic block.
ta
fo
--- u t o
■
You can edit block geometry without exploding it first.
A
id
■
You can cycle through different insertion points when inserting, using the CTRL key.
Be
al
tV
The Block Editor environment is separate from the standard drafting environment. When you are
working in the Block Editor, only the geometry for the block is visible and you do not have access to
other geometry in the drawing. Most commands are available in the Block Editor. However, if you
attempt to use a command that is not available, you are notified on the command line.
--- r e
--- w a
---
--- s e
--- u r
Along with the standard AutoCAD® tools, the Block Editor offers additional tools on the toolbar and
--- C o
Block Authoring palettes.
ls
--- g
--- n i n
e
ia
Command Access
--- r a i
al
--- T
es
er
--- i a l
Block Edit
rR
--- f i c
at
eo
--- O f
M
--- ®
rS
ta
fo
--- u t o
A
id
Select the block to edit or enter a name for a new block, then click OK to open the block in the
tV
Block Editor.
No
--- r e
--- w a
---
Save Block Click to save the block definition with another name.
--- s e
Definition As
--- u r
--- C o
Block Name Read-only field displaying the name of the block you are
currently editing.
ls
--- g
--- n i n
e
ia
--- r a i
al
Palettes
--- T
es
er
Parameter Click to add parameters to your block. Depending on the Dynamic
--- i a l
rR
Input settings, options are presented either on a menu at the cursor
--- f i c
at
or on the command line.
eo
--- O f
Action Click to add actions to your block. Depending on the Dynamic Input
--- ®
al
--- s k
Define Attribute Click to define attributes using the Attribute Definition dialog box.
A
id
Be
al
Update Click to update parameter and action text sizes after zooming.
tV
Parameter and
Action Text Size
No
Learn About Click to launch the New Features Workshop. It opens to the Overview
Dynamic Blocks of Dynamic Blocks page.
Close Block Click to close the Block Editor and return to the drawing.
Editor
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
M
--- ®
al
Term Definition
--- s k
rS
--- d e
Parameters Use parameters to specify positions, distances, and angles for the geometry in
ta
fo
--- u t o
the block. You can also use parameters to define constraints on the geometry.
For example, you can define a parameter to restrict stretching of the block to
A
id
Be
predefined increments.
al
tV
Both toolbar and palette interfaces offer similar functionality for placing parameters and actions.
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
M
--- ®
al
rS
--- d e
ta
fo
--- u t o
When you invoke the Block Editor command, the drawing window switches to the Block Editor
environment. By default, the switch is noticeable by a color change to the drawing
A
id
Be
window background.
al
tV
The images in this lesson do not reflect the default color differences between the standard
No
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
eo
When working in the Block Editor environment, setting the UCSICON system variable to Origin
--- O f
allows you to see the block geometry relative to the 0,0 point.
M
--- ®
al
--- s k
rS
--- d e
id
The following is an overview of using the Block Editor environment to create or edit dynamic blocks.
Be
al
tV
2. In the Edit Block Definition dialog box, enter a new name to create a new block, or select an
existing block from the list and click OK.
--- r e
--- w a
---
--- s e
4. If you are creating a dynamic block, add the required parameters and actions.
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
M
--- ®
al
--- s k
rS
--- d e
ta
fo
--- u t o
5. Close the Block Editor and insert the block using standard methods.
A
id
Be
al
Key Points
tV
■ The Block Editor environment is the preferred method for creating and editing both standard and
No
dynamic blocks.
■
The 0,0 coordinate in the Block Editor environment represents the insertion point of the block.
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
The completed exercise
e
ia
--- r a i
al
4. To modify the conference table, select its
--- T
es
Completing the Exercise
er
--- i a l
at
steps in this book or in the online
the 9' marker.
eo
--- O f
Dynamic Blocks.
--- d e
also updated.
ta
fo
--- u t o
A
id
1. Open C_Use-Dynamic-Blocks.dwg.
Be
al
conference room.
No
--- r e
--- w a
---
--- s e
11. Save and close all files.
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
geometry to be visible and some hidden
based on the option you choose on the
--- T
es
er
--- i a l
menu, as shown.
rR
--- f i c
at
eo
--- O f
M
--- ®
al
--- s k
rS
--- d e
ta
fo
--- u t o
A
id
Be
al
tV
No
--- r e
--- w a
---
--- s e
--- u r
--- C o
5. Use the Circle command to create a 25 mm
ls
--- g
radius circle in the center of the square.
--- n i n
e
ia
--- r a i
al
--- T
es
The completed exercise
er
--- i a l
rR
--- f i c
at
eo
--- O f
al
id
Be
--- r e
--- w a
---
--- s e
--- u r
10. To create a copy of the block with --- C o
ls
--- g
--- n i n
a different name:
e
ia
--- r a i
al
■
On the Block Editor toolbar, click Save
--- T
es
Block As.
er
--- i a l
rR
■
In the Save Block As dialog box, enter
--- f i c
Name field.
M
■
Click OK.
--- ®
al
--- s k
rS
id
Be
al
tV
No
Overview
This lesson describes dynamic block parameters: what they are, the types available, and how to add
them to standard block objects.
In the following illustration, parameters are displayed on a simple dynamic block. The arrow indicates
a Base Point parameter, while the linear parameters, CircleMove and Length, appear similar
to dimensions.
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
M
--- ®
al
--- s k
rS
Parameters are a key feature in dynamic blocks. After you have created the block objects, adding
--- d e
id
Be
al
Objectives
tV
■ Explain what parameters are and the types that are available.
■
Add parameters to dynamic blocks.
Lesson: Parameters ■ 15
About Parameters
Use parameters to define the behavior of a dynamic block. Several types of parameters are available,
each with unique capabilities for controlling dynamic block behavior. Each parameter contains a
unique set of properties specific to the parameter type.
Parameters are identified on a dynamic block by grips. The shape of the grip is dependent on the type
of parameter and serves as a visual indication of the effect the parameter has on the dynamic block.
The following image represents a dynamic block of a door. When you select the dynamic block in the
drawing, several types of grips are displayed. Each of these grips represents a parameter that has been
applied to the dynamic block.
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
Flip parameter – Identified by an arrow grip pointing in the direction the block can be flipped.
--- f i c
at
eo
--- O f
Lookup parameter – Identified by a downwards pointing triangle, this grip displays a lookup
M
al
--- s k
Point/Base Point parameter – Identified by a square grip, this represents either the base
rS
--- d e
Linear parameter – Identified by a triangle grip pointing in the direction the grip can
be moved.
A
id
Be
al
tV
There are additional types of parameters that were not used on the dynamic block in the previous
illustration. All parameter types will be introduced later in the lesson.
No
--- r e
--- w a
---
--- s e
--- u r
Parameter Name Display
--- C o
ls
--- g
--- n i n
The following image illustrates how the parameter names assigned in the Block Editor are displayed
e
ia
--- r a i
al
as custom properties in the Properties palette when you select the block in the drawing. The image on
--- T
es
the left displays the parameter labels in the Properties palette while in the Block Editor environment.
er
--- i a l
The image on the right shows the same block selected in the drawing, the parameter labels appearing
rR
--- f i c
as custom properties.
at
eo
--- O f
M
--- ®
al
--- s k
rS
--- d e
ta
fo
--- u t o
A
id
Be
al
tV
No
The parameter name (as opposed to labels) is not displayed as part of the parameter on screen in the
Block Editor; it is displayed in the Properties palette beneath the labels when you select the parameter
in the Block Editor. Many authors choose to keep the default name assigned to the parameter. Doing
so makes it easier for others to understand how you have authored the block; it also makes it easier to
identify custom properties when adding them to a Lookup table, or when setting the insertion cycling
order of grip points for the block.
Action names appear as part of the action object on screen in the Block Editor. You can rename them
to indicate what the action is doing, especially if the block definition contains many actions. Action
names only appear in the Block Editor.
Lesson: Parameters ■ 17
Point Parameter
Adds a point parameter to the dynamic block.
--- r e
--- w a
---
Linear Parameter
--- s e
--- u r
Adds a linear parameter to the dynamic block.
--- C o
ls
--- g
--- n i n
Icon Example Actions Key Properties
e
ia
--- r a i
al
■ Move
--- T
es
■
Scale
er
--- i a l
rR ■
Stretch
--- f i c
at
■ Array
eo
--- O f
M
--- ®
al
--- s k
rS
--- d e
ta
fo
--- u t o
A
id
Be
al
tV
No
Alignment Parameter
Adds an alignment parameter to the dynamic block. This allows the block to automatically align itself
with other geometry in the drawing. You can define the alignment parameter as Perpendicular
(default) or Tangent.
--- r e
--- w a
---
--- s e
Visibility Parameter
--- u r
--- C o
Adds a visibility parameter to the dynamic block, which allows the block geometry to be controlled by
ls
--- g
visibility states. For each visibility state, geometry can be made visible or invisible.
--- n i n
e
ia
--- r a i
al
Icon Example Actions Key Properties
--- T
es
er ■
None
--- i a l
rR
--- f i c
at
eo
--- O f
M
--- ®
al
--- s k
rS
--- d e
ta
fo
--- u t o
A
id
Be
toolbar
tV
No
Lesson: Parameters ■ 19
Parameter Properties
Each parameter contains properties common to all
parameters, and properties unique to the type of
parameter selected. When you create the parameter,
you should adjust the properties accordingly.
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
Parameters Example
--- n i n
e
ia
--- r a i
al
The following image represents a dynamic block as it would appear in the Block Editor. Note the
appearance of the linear and position parameters.
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
M
--- ®
al
--- s k
rS
--- d e
ta
fo
--- u t o
A
id
Be
al
tV
No
Exclamation mark icons indicate that no action has been associated with the parameter.
When you double-click the parameter, options or properties specific to that parameter
are displayed.
Adding Parameters
--- r e
After you have created the dynamic block geometry, the next step is to begin adding the parameters.
--- w a
---
As you do so, you should check the parameter’s properties and make any changes required to the
--- s e
default property settings. While not all parameter properties require changes, you should at least
--- u r
change the parameter name and label properties to be more descriptive.
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
M
--- ®
al
--- s k
rS
--- d e
ta
fo
--- u t o
A
id
Be
al
tV
No
Lesson: Parameters ■ 21
Procedure: Adding Parameters
The first step in creating a dynamic block is to add parameters to your block geometry. The following
is an overview of adding parameters to create dynamic blocks.
1. Use the Bedit command to create or edit the block in the Block Editor environment.
2. On the Block Authoring palette, select a dynamic block parameter and follow the command
line prompts. For example, to place a linear parameter, select two points on the block
geometry to define the parameter.
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
3. After creating the parameter, you can select it and change properties in the Properties palette.
M
Note the changes to the Labels, Value Set, and Number of Grips properties. In this
--- ®
al
--- s k
a minimum of 100 and a maximum of 200 units. If you change the number of grips to 1,
ta
fo
--- u t o
the linear parameter can only be adjusted in one direction as indicated by the arrow grip.
A
id
Be
al
tV
No
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
Key Points
er
--- i a l
rR
--- f i c
■ Not all parameters require actions. For those that do, an exclamation point icon appears next to
M
--- ®
al
rS
■
While not all parameter properties require changes, you should at least change the parameter
--- d e
id
Be
al
tV
No
Lesson: Parameters ■ 23
Exercise: Add Parameters to a Dynamic Block
In this exercise, you add parameters to a dynamic
block. After adding the parameters, you also adjust 1. Open M_Add-Parameters.dwg or continue
the parameter properties. working with the file from the previous
exercise.
The dynamic block will not be 2. To edit the block:
functional until you add actions in the
■
next lesson. Double-click the block in the graphics
window.
■
In the Edit Block Definition dialog box,
make certain My Block - Dynamic
is selected.
--- r e
■ Click OK.
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
at
Parameter on the Parameters tab of the Block
eo
--- O f
Authoring palettes.
M
--- ®
al
rS
--- d e
id
Be
--- r e
following image. Notice the new label,
--- w a
---
increment marks, and single grip arrow.
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
al
■
If the Properties palette is not visible,
--- s k
■
Select the Distance1 parameter.
rS
press CTRL+1.
--- d e
■
■
Select the Distance parameter at the In the Properties palette, adjust the
ta
fo
--- u t o
id
following image.
No
Lesson: Parameters ■ 25
9. Press ESC to clear the selection. 12. Select the block to display its grips.
10. To add a base point parameter: Note the appearance of the base point grip in
■
the lower-left corner and the linear
On the Block Authoring palettes, click parameter grip in the lower-right corner.
Base Point Parameter.
■ Select the lower-left corner of the block.
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
Once you have added actions to this block,
--- T
es
er
--- i a l
■
On the Block Editor toolbar, click Close 13. Save and close all files.
M
Block Editor.
--- ®
al
--- s k
rS
click Yes.
ta
fo
--- u t o
A
id
Be
al
tV
No
Overview
This lesson covers the types of actions available and how to add them to dynamic blocks.
Most parameters must be associated with actions before the dynamic block can be functional.
In the following illustration, the actions are identified by lightning bolt icons. These icons
automatically appear as you create action objects.
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
M
--- ®
al
--- s k
rS
--- d e
ta
fo
--- u t o
A
id
Objectives
Be
al
■
Explain what actions do and the types that are available.
No
Lesson: Actions ■ 27
About Actions
Actions represent the second key component to dynamic blocks. When you assign an action to one or
more parameters, the action drives the parameter through its available iterations. You could assign a
stretch action to a linear parameter that would enable the block to be stretched along the direction of
the linear parameter. Or you could assign a flip action to a flip parameter to flip the block geometry in
the directions defined by the flip parameter.
In the following image, the lightning bolt icons represent actions that have been associated with
related parameters.
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
M
--- ®
al
--- s k
rS
ta
In many cases, it is possible to assign more than one action to a single parameter. In the previous
fo
--- u t o
image, both a Scale action and Stretch action have been associated to the Door Width linear
A
id
Be
parameter. When the Door Width parameter is dynamically edited, it will automatically trigger all
al
Scale Action
Adds a scale action to the dynamic block. Allows you to scale the block geometry by dragging the
associated parameter grip.
Stretch Action
--- r e
Adds a stretch action to the dynamic block. Allows you to stretch the block geometry by dragging the
--- w a
associated parameter grip.
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
Required Parameters Point, Linear, Polar, or XY
e
ia
--- r a i
al
Selection Requirements 1. Select the appropriate parameter.
--- T
es
er
2. Specify a parameter point by selecting one of its grip points.
--- i a l
rR
The parameter point is identified on screen by a red node.
--- f i c
at
3. Click two points to define the stretch frame.
eo
--- O f
al
is selected.
--- s k
rS
ta
fo
--- u t o
Key Properties
A
id
Be
al
tV
No
Lesson: Actions ■ 29
Rotate Action
Adds a rotate action to the dynamic block. Allows you to rotate the block geometry by dragging the
associated parameter grip.
--- r e
--- w a
---
Key Properties
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
Flip Action
M
--- ®
al
Adds a flip action to the dynamic block. Allows you to flip the block geometry by clicking the
--- s k
rS
ta
fo
--- u t o
A
id
Be
al
tV
--- r e
parameter is modified as a result of editing the current
--- w a
---
parameter.
--- s e
--- u r
To enable geometry within the block to rotate around a
--- C o
point that is different from other rotating geometry
included in the same rotate action, set the Base Type
ls
--- g
--- n i n
property for the rotate action to Independent.
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
M
--- ®
al
Adding Actions
--- s k
rS
--- d e
After you have added parameters to the block geometry, the next step is to associate actions with the
ta
fo
--- u t o
parameters. You first select the appropriate action type, and then follow the prompts at the command
A
id
Be
The following image shows the sequence of selections for assigning an action to the CircleMove
tV
parameter. The parameter is selected (1), then the action is associated with a grip point (2). Finally, the
No
Lesson: Actions ■ 31
Procedure: Associating Actions and Parameters
The following is an overview of associating actions with parameters for dynamic blocks.
--- r e
--- w a
---
3. Left-click near the parameter point to associate the action with the parameter indicated by the
--- s e
red node symbol.
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
eo
4. Click two points to define the stretch crossing window.
--- O f
M
--- ®
al
--- s k
rS
--- d e
ta
fo
--- u t o
A
id
Be
al
tV
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
7. On the toolbar, click Close Block Editor to return to the drawing.
--- n i n
e
ia
8. Insert the block into the drawing.
--- r a i
al
--- T
es
9. Select the block, then select the arrow grip.
er
--- i a l
rR
The linear parameter is displayed, showing its current value.
--- f i c
at
eo
--- O f
M
--- ®
al
--- s k
rS
--- d e
ta
fo
--- u t o
A
id
Be
al
10. Drag the cursor in the direction of the stretch. In this example, because the parameter was set
tV
up to increment, you are limited to the increments defined in the parameter’s properties.
No
Lesson: Actions ■ 33
Exercise: Add Actions to a Dynamic Block
In this exercise, you add actions to the dynamic
4. To add the action to the block:
block, then test the block’s functionality.
■ Select the Length parameter (1).
■
Left-click near the lower-right corner (2)
to specify the parameter point with
which to associate the action.
--- r e
--- w a
---
The completed exercise
--- s e
--- u r
--- C o
Completing the Exercise
ls
To complete the exercise, follow the
--- g
--- n i n
steps in this book or in the online
e
ia
exercise. In the online list of chapters
--- r a i
al
and exercises, click Chapter 1: Basics of
--- T
es
Dynamic Blocks. Click Exercise: Add
er
--- i a l
at
eo
--- O f
al
working with the file from the 5. To define the object that the stretch action
--- s k
rS
ta
fo
--- u t o
■
Specify the stretch frame from point (3)
2. To edit the block:
to point (4) as shown.
A
id
Be
■
In the Edit Block Definition dialog box,
tV
■ Press ENTER.
make sure MyBlock - Dynamic is selected.
No
■ Click OK.
3. On the Block Authoring palettes, Actions tab,
select Stretch Action.
--- r e
■
When prompted to save the block
--- w a
---
definition, click Yes.
--- s e
--- u r
8. To test the block:
--- C o
■
Select the block to display the grips.
ls
--- g
■
Left-click and drag the grip in the
--- n i n
e
lower-right corner.
ia
--- r a i
al
■
Left-click near the third marker
--- T
es
indicating 150 units in length.
er
--- i a l
rR
--- f i c
al
--- s k
rS
--- d e
id
Be
al
tV
No
Lesson: Actions ■ 35
13. To modify the chain actions property of the 14. To modify the stretch action:
parameter: ■
Double-click the stretch action to edit it.
■
Select the CircleMove parameter. You are prompted to specify the first
■ Using the Properties Palette, select Yes in corner of the stretch frame. Because
the Chain Actions property list. the frame has already been specified,
■
press ESC.
Press ESC to clear the selection. ■ Select the CircleMove parameter to add
NOTE: As soon as another action affects this it to the action set.
parameter, actions associated with this ■
Press ENTER.
parameter are automatically activated.
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
M
--- ®
al
--- s k
rS
--- d e
ta
fo
--- u t o
A
id
Be
al
tV
No
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
M
--- ®
al
rS
ta
in the center.
A
id
Be
al
Lesson: Actions ■ 37
Lesson: Parameter Sets
Overview
This lesson describes parameter sets and how to use them when creating dynamic blocks.
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
M
--- ®
Most types of parameters require an associated action before they are functional in the dynamic block.
al
--- s k
By using parameter sets, you can streamline the creation of parameters and actions by using a single
rS
--- d e
id
Be
Objectives
al
tV
■
Describe and access parameter sets.
■
Use parameter sets to add parameters and actions.
--- r e
sets. Using the parameter sets on this palette, you can streamline the process of applying parameters
--- w a
---
and actions by combining them into single elements on the palette. Instead of first selecting the
--- s e
appropriate parameter on the Parameters tab, then activating the Actions tab and selecting the
--- u r
appropriate action, you can access both the parameter and action with a single click.
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
M
--- ®
al
--- s k
rS
--- d e
ta
fo
--- u t o
A
id
Be
al
tV
No
Note the difference in icons and descriptions for various parameter sets. For example, the palette
shows a Linear Stretch parameter set and a Linear Stretch Pair parameter set.
The Linear Stretch parameter set creates a Linear parameter with a single Stretch action. The Linear
parameter’s Number of Grips property is automatically set to 1 and the single Stretch action is
associated with the single grip.
Key Points
The following list represents some key points about using parameter sets when defining parameters
--- r e
and actions for dynamic blocks.
--- w a
---
■
Parameter sets streamline the process of adding parameters and actions to block objects.
--- s e
--- u r
■ Parameters are automatically assigned to the actions.
--- C o
■
The parameters and actions created by parameter sets are no different from parameters and
ls
--- g
actions created manually.
--- n i n
■ The process of creating parameters and actions is semiautomated when using parameter sets.
e
ia
--- r a i
al
--- T
es
er
--- i a l
at
eo
--- O f
Using parameter sets is not very different from applying parameters and actions individually.
M
Depending on the type of parameter set you choose, the options and requirements differ. The key to
--- ®
al
--- s k
using parameter sets effectively is to first identify the type of parameter set required, then follow the
rS
--- d e
In the following illustration, two slightly different versions of the Linear Move parameter set
A
id
are highlighted.
Be
al
tV
No
1. Based on the types of parameter and action required, select the appropriate parameter set.
2. Specify the points and other items required by the parameter set.
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
M
--- ®
al
--- s k
rS
--- d e
ta
fo
--- u t o
A
id
Be
al
tV
No
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
The completed exercise
e
ia
--- r a i
al
--- T
es
Completing the Exercise
er
--- i a l
at
steps in this book or in the online 6. Select the parameter just created. In the
eo
--- O f
al
rS
id
1. Open M_Use-Parameter-Sets.dwg or
Be
■
Specify the corner of the stretch frame by
clicking near (1), then near (2).
2. To modify the block:
No
■
Select the rectangle.
■ Double-click the block. ■
Press ENTER.
■
In the Edit Block Definition dialog box,
make certain MyBlock-Dynamic
is selected.
■
Click OK.
3. On the Block Authoring palettes, click the
Parameter Sets tab.
4. Click Linear Stretch.
5. To define a linear stretch parameter:
■ Select the lower-left corner of
the block (1).
--- r e
--- w a
---
15. To define the action:
--- s e
--- u r
■ Double-click the Move1 action that was
--- C o
created with the previous parameter set.
11. On the Block Authoring palette,
ls
■
--- g
click Linear Move. Select the circle.
--- n i n
■ Press ENTER.
e
ia
--- r a i
al
--- T
es
■
Select the center of the circle (1).
er
--- i a l
■
rR
Select the midpoint of the top edge (2).
--- f i c
at
■ Click to position the parameter to the
eo
--- O f
al
--- s k
rS
--- d e
ta
fo
--- u t o
A
id
Be
al
■
Select the Move1 action.
No
■
On the Properties palette, enter 0.5 for
Distance Multiplier.
--- r e
--- w a
---
--- s e
--- u r
24. To edit the block definition:
--- C o
■ Double-click the block.
ls
--- g
■
In the Edit Block Definition dialog box,
--- n i n
e
ia
--- r a i
al
selected.
--- T
es
er ■
Click OK.
--- i a l
rR
--- f i c
■
In the Block Editor, select the
M
--- ®
CircleMoveVert parameter.
al
--- s k
rS
■
On the Properties palette, select 0 for
--- d e
Number of Grips.
ta
fo
--- u t o
id
Block Editor.
tV
■
When prompted to save the block 27. Select the block to display its grips.
definition, click Yes. Only the grips shown in the following
No
Overview
This lesson consists of several exercises in which you create a variety of dynamic blocks using
parameters, actions, and parameter sets.
Objectives
After completing this lesson, you will be able to:
--- r e
■
Create a wall sink dynamic block.
--- w a
---
■ Create a cap screw dynamic block.
--- s e
■
Create dynamic outlet symbols.
--- u r
--- C o
■
Create a dynamic roof pitch callout.
ls
■ Create a dynamic diverter valve.
--- g
--- n i n
■
Create a dynamic terminal block.
e
ia
--- r a i
al
■
Create a dynamic block of a door.
--- T
es
■ Create a dynamic revision table block.
er
--- i a l
rR
--- f i c
at
eo
--- O f
M
--- ®
al
--- s k
rS
--- d e
ta
fo
--- u t o
A
id
Be
al
tV
No
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
The completed exercise
7. To insert the side view of the wall sink:
--- T
es
er
--- i a l
rR
■ On the Draw toolbar, click Insert Block.
Completing the Exercise
--- f i c
at
■ In the Insert dialog box, select ws-side
eo
To complete the exercise, follow the
--- O f
al
■
exercise. In the online list of chapters Position the block using the Midpoint
--- s k
id
Be
al
1. Open C_Wall-Sink.dwg.
tV
■
Enter BE to display the Edit Block
Definition dialog box.
8. On the Block Authoring palettes, Parameters
■ For Block to Create or Edit, enter tab, click Base Point Parameter and position
Wall-Sink. the point at the midpoint of the plan view as
■
Click OK. shown in the following image.
3. In the dialog box that asks if you want to see
how dynamic blocks are created, click No.
4. To insert the plan view of the wall sink:
■
On the Draw toolbar, click Insert Block.
■
In the Insert dialog box, select ws-plan
from the list. Click OK.
■
Click a point to position the block in the
Block Editor drawing window.
--- r e
--- w a
---
--- s e
10. To add a move action to the position
--- u r
parameter:
■
On the Block Authoring palettes,
--- C o
ls
--- g
click Move Action on the Actions tab. 12. Double-click the visibility parameter to
--- n i n
e
ia
■ Select the position parameter, then
--- r a i
al
Rename and enter Plan.
window-select all geometry and
--- T
es
parameters. Press ENTER.
er
--- i a l
■
rR
Click to position the move action icon
--- f i c
at
near the point parameter.
eo
--- O f
M
--- ®
al
--- s k
rS
--- d e
id
Be
al
tV
No
--- r e
Press ENTER.
--- w a
---
--- s e
--- u r
19. To exit the Block Editor:
--- C o
■
On the Block Editor toolbar, click Close
ls
--- g
Block Editor.
--- n i n
e
ia
--- r a i
al
click Yes.
--- T
es
er
20. To insert the block into the drawing:
--- i a l
rR
--- f i c
■
On the Draw toolbar, click Insert Block.
at
eo
--- O f
■
In the Insert dialog box, select Wall-Sink.
M
--- ®
Click OK.
al
rS
■
Click to place the block in the drawing.
--- d e
■
On the Block Editor toolbar, select Front ■
Zoom out as required to view the
ta
fo
--- u t o
id
■
Click Make Invisible.
Be
■
Select the Plan and Side views.
tV
■
Press ENTER. Select the Wall Sink block to reveal
the grips.
No
--- r e
--- w a
---
--- s e
The completed exercise
--- u r
Completing the Exercise --- C o
ls
--- g
--- n i n
To complete the exercise, follow the
e
ia
steps in this book or in the online
--- r a i
al
exercise. In the online list of chapters
--- T
es
and exercises, click Chapter 1: Basics of
er
--- i a l
rR
Dynamic Blocks. Click Exercise: Create a
--- f i c
at
Cap Screw Dynamic Block.
eo
--- O f
M
--- ®
al
1. Open M_Dynamic-Cap-Screw.dwg.
--- s k
rS
--- d e
Cap Screw.
A
id
Be
3. To open the block for editing: 5. On the Block Authoring palettes, Actions tab,
al
■ Double-click the Socket Head Cap Screw. click Stretch Action. When prompted to
tV
The Edit Block Definition dialog box select a parameter, select the linear
No
opens with the block selected. parameter you created previously. Select the
■ In the Edit Block Definition dialog box, grip point on the bottom of the distance
click OK. The Block Editor opens. parameter.
6. To define the stretch action:
■
Click (1) for the first corner of the
stretch frame, then click (2) for the
second corner.
■
When prompted to select objects, use a
crossing window to select the end of the
bolt. Use (1) and (2) for the crossing
window. Press ENTER.
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
at
■ Select the linear parameter. Right-click, 10. Select the bolt geometry to access grips.
eo
--- O f
click Properties. Click the triangle grip and drag the grip to
M
--- ®
al
■
In the Properties palette, Misc properties, the proper length for this bolt connection.
--- s k
rS
ta
fo
--- u t o
■
Adjust the Value Set properties as shown.
This limits the changes in bolt length to
A
id
Be
■
Click anywhere in the drawing area to
No
--- r e
3. On the Block Authoring palettes, Parameters
--- w a
---
tab, click Alignment Parameter.
--- s e
■ Select the endpoint at (1).
--- u r
--- C o
■
Using Ortho mode, select a point
near (2).
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
M
--- ®
al
--- s k
rS
--- d e
id
1. Open I_Dynamic-Outlets.dwg.
2. To select the block to edit:
■
On the command line, enter BE.
Press ENTER.
■
In the Edit Block Definition dialog box,
select OUTLETS.
--- r e
--- w a
---
■ In the Visibility States dialog box, click
--- s e
Rename. Enter 110 - Wall. Press ENTER.
--- u r
■
Click New. In the New Visibility State
--- C o
dialog box, enter 110 - Floor.
9. On the Block Editor toolbar, select 110 - Floor
ls
--- g
■
Make sure the Leave Visibility of Existing
--- n i n
in the Visibility list.
Objects Unchanged in New State option
e
ia
--- r a i
al
■
is selected. Click OK. Click Make Invisible and select the
--- T
objects indicated.
es
er
--- i a l
rR
■
Press ENTER.
--- f i c
at
eo
--- O f
M
--- ®
al
--- s k
rS
--- d e
ta
fo
--- u t o
A
id
Be
al
tV
No
--- r e
--- w a
---
--- s e
--- u r
12. On the Block Editor toolbar, activate each of
--- C o
the visibility states and, using the Move
command, separately move each of the
ls
--- g
--- n i n
symbols to the base point as shown.
e
ia
--- r a i
al
--- T
es
er
--- i a l
at
■
Select the visibility grip.
eo
--- O f
■
Select Phone - Wall.
M
--- ®
al
--- s k
rS
--- d e
ta
fo
--- u t o
A
id
Be
al
tV
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
al
--- s k
rS
--- d e
ta
fo
--- u t o
A
id
Be
al
tV
No
--- r e
--- w a
---
The completed exercise
--- s e
--- u r
--- C o
Completing the Exercise
To complete the exercise, follow the steps in this book or in the online exercise. In the online list of
ls
--- g
--- n i n
chapters and exercises, click Chapter 1: Basics of Dynamic Blocks. Click Exercise: Create a Dynamic Roof
e
ia
Pitch Callout.
--- r a i
al
--- T
es
er
--- i a l
at
2. To open the block for editing:
eo
--- O f
■
On the command line, enter BE.
--- ®
al
Press ENTER.
--- s k
rS
--- d e
select PitchCallout.
■
A
Click OK.
id
Be
al
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
that will update as the length of the vertical
--- T
es
er
line changes. To create the text object:
--- i a l
rR
--- f i c
■
On the command line, enter TEXT.
at
eo
--- O f
Press ENTER.
M
--- ®
■
Enter 3. Press ENTER for the text height.
ta
fo
--- u t o
id
--- r e
--- w a
---
--- s e
11. Double-click the Flip1 action and select all
--- u r
objects and parameters. Press ENTER.
--- C o
ls
12. Close the Block Editor and save changes to
--- g
--- n i n
8. On the Block Authoring palettes, Parameters the block definition.
e
ia
tab, click Base Point Parameter. Select the
--- r a i
al
endpoint of the horizontal line as shown. 13. Insert the PitchCallout block as shown.
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
M
--- ®
al
--- s k
rS
--- d e
ta
fo
--- u t o
A
id
Be
al
tV
--- r e
--- w a
---
--- s e
15. Move the callout block away from the
--- u r
--- C o
roof line.
ls
--- g
16. Insert another instance of the callout block
--- n i n
e
ia
--- r a i
al
■ Select the block and click the Flip
--- T
es
parameter grip (1) to flip the symbol as
er
--- i a l
shown.
rR
--- f i c
at
■
Click and drag the stretch grip to adjust
eo
--- O f
al
ta
■
Click and drag the move grip to
fo
--- u t o
id
Be
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
4. To finish positioning the rotation parameter:
eo
--- O f
al
■
Enter 315 for the base angle.
--- d e
ta
fo
--- u t o
■
Select a point to position the parameter
id
Be
1. Open M_Rotate-Action.dwg.
2. To open the block for editing:
■ On the command line enter BE.
Press ENTER.
■
In the Edit Block Definition dialog box,
select Diverter Valve. 5. To set properties for the angle parameter:
■
■
Click OK. Select the angle parameter, then right-
click it, and click Properties.
■
In the Properties palette, for Ang Type,
select List.
--- r e
--- w a
---
--- s e
8. Double-click the Flip1 action. Use a window
--- u r
6. To add a rotate action to the angle or crossing window to select all objects and
parameter:
--- C o
parameters. Press ENTER.
ls
--- g
--- n i n
■
On the Block Authoring palettes, Actions
e
ia
tab, click the Rotate action.
--- r a i
al
■
--- T
es
er
--- i a l
rR
Select the diverter valve object (2).
--- f i c
Press ENTER.
at
eo
--- O f
al
--- s k
rS
--- d e
ta
fo
--- u t o
A
id
Be
al
tV
No
--- r e
--- w a
---
--- s e
11. Select the flip parameter grip to flip
--- u r
the block.
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
M
--- ®
al
--- s k
rS
--- d e
ta
fo
--- u t o
A
id
Be
al
tV
No
--- r e
--- w a
---
--- s e
--- u r
4. To change the parameter set’s properties:
--- C o
■
Select the XY parameter, then right-click
ls
--- g
it, and click Properties.
--- n i n
e
ia
--- r a i
al
■
Press ESC to clear properties.
--- T
es
The completed exercise
er
--- i a l
rR
--- f i c
at
eo
--- O f
al
--- s k
id
Be
1. Open M_XY-Array.dwg.
No
--- r e
--- w a
---
--- s e
--- u r
--- C o
6. Close the Block Editor. When prompted to
ls
--- g
save changes to the block definition,
--- n i n
click YES.
e
ia
--- r a i
al
7. Select the block to display grips. Select any of
--- T
es
the grips and experiment with different
er
--- i a l
at
eo
--- O f
al
--- s k
rS
--- d e
ta
fo
--- u t o
A
id
Be
al
tV
No
--- r e
--- w a
---
--- s e
■
Click Select Objects and select all
--- u r
geometry representing the door.
--- C o
Press ENTER.
ls
--- g
■
Select Convert to Block. Select the Open
--- n i n
e
ia
--- r a i
al
3. To add a linear parameter:
--- T
es
er
--- i a l
■
Place the linear parameter by selecting
steps in this book or in the online
points on the bottom of the door from
M
--- ®
al
id
Be
al
1. Open C_Create-Dynamic-Door.dwg.
tV
No
--- r e
--- w a
■
Press ESC to clear the selection set.
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
The Flip parameter lets you change the door
--- f i c
al
rS
the drawing.
ta
fo
--- u t o
A
id
■
click Alignment Parameter. On the Block Authoring palettes, Actions
■
tab, click Scale Action.
Click point (1) as the base point for the
No
■
alignment axis. Select the distance parameter.
■
■
Click point (2) to define the axis direction. When prompted to select objects, select
the arc (1) and flip state parameter (2).
Press ENTER.
--- r e
8. On the Block Authoring palettes, click Stretch
--- w a
---
Action and select the distance parameter.
--- s e
--- u r
■
Select the grip point on the right side of
--- C o
the distance parameter (1).
ls
■
Click (2) for the first corner of the stretch
--- g
--- n i n
frame and (3) for the second corner.
e
ia
--- r a i
al
■ Select the vertical lines of the door (4) for
--- T
es
the objects to stretch. Press ENTER.
er
10. To add the flip action:
--- i a l
rR
■
Position the stretch action icon near the
--- f i c
parameter.
ta
fo
--- u t o
■
Use a selection window to select all
A
Press ENTER.
tV
■
Position the flip action icon near the
No
--- r e
--- w a
---
--- s e
--- u r
15. On the Draw toolbar, click Insert Block. Using
--- C o
the default options in the Insert Block dialog
ls
--- g
box, insert the door block into other
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
M
--- ®
al
--- s k
rS
--- d e
ta
fo
--- u t o
A
id
Be
13. Click and drag the arrow grip on the left side
al
--- r e
--- w a
---
Completing the Exercise
--- s e
To complete the exercise, follow the steps in this book or in the online exercise. In the online list of
--- u r
chapters and exercises, click Chapter 1: Basics of Dynamic Blocks. Click Exercise: Create a Dynamic
--- C o
Revision Table Block.
ls
--- g
--- n i n
e
ia
■
Select point (1) then point (2).
--- r a i
1. Open I_Dynamic-Revision-Table.dwg.
al
■
Place the parameter to the right of
--- T
es
2. On the command line, enter BE. Press ENTER.
er
the table.
--- i a l
■
rR
In the Edit Block Definition dialog box,
--- f i c
■
Select the parameter, then right-click,
at
select Revision-Table.
eo
and click Properties.
--- O f
■
Click OK.
M
al
Grips, enter 1.
--- s k
rS
■
parameter placement is important. When Press ESC to clear the selection set.
ta
fo
--- u t o
id
--- r e
■
In the Properties palette, adjust the Value
--- w a
---
6. Close the Block Editor and save changes to Set properties as shown.
--- s e
■ Press ESC to clear the selection.
the block.
--- u r
--- C o
7. To test inserting the revision table:
ls
--- g
■
--- n i n
On the Draw toolbar, click Insert Block.
e
ia
■ In the Insert dialog box, select Revision-
--- r a i
al
Table. Click OK.
--- T
es
■
er
Press CTRL to cycle through the available
--- i a l
insertion points. rR
--- f i c
at
eo
The insertion points should cycle in a
--- O f
al
right corner.
--- s k
rS
ta
fo
--- u t o
■
On the Block Authoring palettes,
Parameters tab, click Flip Parameter.
A
id
Be
■
Select the midpoint of the top line of
al
the table.
tV
--- r e
■
Select the lower Position parameter.
--- w a
---
■ Use a window selection to select all
--- s e
objects. Press ENTER.
--- u r
■
Position the Move action as shown.
--- C o
16. Insert another instance of the block and test
■ Repeat for the top Position1 parameter. the flip and move actions.
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
M
--- ®
al
--- s k
rS
--- d e
ta
fo
--- u t o
A
id
Be
al
tV
Chapter Summary
No
Dynamic blocks represent a fundamental shift in the way you should think about blocks and the
capabilities they can offer. Parameters and actions are the core underlying features that make
dynamic blocks work and without which they would not function.
In this chapter, you learned to:
■
Describe the use and benefits of dynamic blocks and use the Block Editor environment to create
and edit blocks.
■
Describe parameters and add them to your block objects.
■
Describe actions and add them to your block objects to create dynamic blocks.
■ Use parameter sets to add parameters and actions to your dynamic blocks.
■
Create a variety of dynamic blocks.
--- r e
--- w a
---
Beyond the Basics
--- s e
Chapter2:
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
Now that you have learned how to create and use dynamic blocks, you learn how to use some of
their more advanced properties and features. You complete the chapter by learning the various
--- T
es
er
--- i a l
methods available for storing and accessing your dynamic block libraries.
rR
--- f i c
at
eo
--- O f
Objectives
M
--- ®
al
--- s k
■
Use the Chain Action property to simultaneously trigger multiple actions as a result of editing
ta
fo
--- u t o
a single action.
A
id
Be
■
Combine the functionality of attributes and dynamic blocks by creating dynamic attributes
al
■ Store your dynamic blocks in block library drawings, use DesignCenter™ to access and insert
blocks, and create custom tool palettes that contain your dynamic blocks.
No
71
Lesson: Chaining Actions
Overview
This lesson covers the Chain Actions property and how you can use it when you create dynamic blocks.
In the following illustration, the Chain Actions property is used to trigger an array action for the hole
pattern as the block is stretched.
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
When your dynamic block contains secondary parameters and actions that must be triggered based
--- ®
al
--- s k
on changes to primary parameters and actions, you can use the Chain Actions property to
rS
--- d e
id
Be
Objectives
al
tV
--- r e
The following parameters have the Chain Actions property:
--- w a
---
■
Point
--- s e
■ Linear
--- u r
--- C o
■
Polar
■
ls
XY
--- g
--- n i n
■ Rotation
e
ia
--- r a i
al
In the following illustration, the Chain Actions property is used to trigger an array action that will array
--- T
es
er
the circle pattern a constant distance from the side of the rectangle.
--- i a l
rR
--- f i c
at
eo
--- O f
M
--- ®
al
--- s k
rS
--- d e
ta
fo
--- u t o
A
id
Be
al
tV
No
Chaining Actions
When the Chain Actions property of a parameter is set to Yes, the actions associated with that
parameter are activated when that parameter is changed by another action. Be careful not to
inadvertently select the geometry that the chained parameter affects when adding a chained
parameter to the selection set of an action. Otherwise, some actions may be performed twice
on the same geometry.
--- r e
--- w a
---
The inner circle has a linear parameter named Inner Radius and a scale action associated with it that
scales the inner circle. The outer circle has a linear parameter named Outer Radius and a scale action
--- s e
--- u r
that scales the outer circle. The Outer Radius parameter also has a stretch action that stretches the
--- C o
Inner Radius parameter.
ls
--- g
Since the Inner Radius parameter has its Chain Actions property set to Yes, the inner circle is scaled
--- n i n
when the Inner Radius parameter is stretched by the stretch action associated with the Outer
e
ia
--- r a i
al
Radius parameter.
--- T
es
er
The illustrations below show the result of changing the Outer Radius parameter.
--- i a l
rR
--- f i c
at
eo
--- O f
M
--- ®
al
--- s k
rS
--- d e
ta
fo
--- u t o
A
id
Be
al
tV
Arraying an Object
No
The following illustration shows an example of a chained parameter that is used to array an object in
the block. The block has a linear parameter that defines the width of the rectangle. The block needs to
array another rectangle in the block while keeping a specified distance between the sides of the block
and the first and last arrayed objects.
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
Unnecessary Chaining
--- T
es
er
--- i a l
When you require multiple objects within the block to move, stretch, or scale, your first inclination
rR
--- f i c
may be to use the Chain Actions property. This property is not always appropriate and sometimes
at
eo
--- O f
Consider the two dynamic blocks in the following illustration. The block on the left uses two move
al
--- s k
actions assigned to a single parameter DIST(1). The block on the right uses a different parameter
rS
--- d e
DIST(1) and DIST(2) for each move action, with the Chain Actions property set to Yes for the DIST(2)
ta
fo
--- u t o
parameter and the DIST(2) parameter included in the Move(1) action’s selection set. The functionality
of each block is identical. As the bottom circle moves horizontally, the circle on the right
A
id
Be
moves vertically.
al
tV
The block on the right requires an additional parameter and for the actions to be chained,
complicating the design without any measurable benefit.
No
--- r e
the Properties palette and expand the Miscellaneous group. Select Yes to turn the Chain Actions
--- w a
---
property on.
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
M
--- ®
al
--- s k
rS
--- d e
ta
fo
--- u t o
id
Be
al
The following image depicts a dynamic block that uses the Chain Actions property. The Width
tV
parameter and Stretch action represent the primary parameter and action. The Array parameter and
Array1 action represent the secondary parameter and action. The Array parameter is included in the
No
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
To prevent accidental editing of the grip when the block is being dynamically edited, set the
--- i a l
rR
Number of Grips property for secondary parameters to 0.
--- f i c
at
eo
--- O f
M
--- ®
al
Key Points
--- s k
rS
--- d e
The following are key points for setting the Chain Actions property.
ta
fo
--- u t o
■
You set the Chain Actions property on a secondary parameter that is associated with
A
id
Be
a secondary action.
al
■ You must include the parameter with the Chain Actions property set to Yes in the Primary Actions
tV
selection set.
No
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
The completed exercise
--- n i n
e
ia
--- r a i
al
Completing the Exercise
--- T
es
er
--- i a l
To complete the exercise, follow the steps in this book or in the online exercise. In the online list of
rR
chapters and exercises, click Chapter 2: Beyond the Basics. Click Exercise: Chain Actions in
--- f i c
at
a Dynamic Block.
eo
--- O f
M
--- ®
al
■
Position the parameter as shown.
--- s k
1. Open M_Chain-Actions.dwg.
rS
--- d e
■
On the command line, enter BE.
A
id
Be
■
Press ENTER.
al
select Perforated-Block.
No
■
Click OK.
3. To add a linear parameter:
■
On the Block Authoring palettes,
Parameters tab, click Linear Parameter.
■
Select the lower-left corner of
the rectangle.
■ Select the lower-right corner of
the rectangle. 4. Select the linear parameter and view
the properties.
NOTE: If the Properties palette is not open,
press CTRL+1 to open it.
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
M
--- ®
al
--- s k
rS
ta
id
Be
■
Select the center of the circle (1). ■
On the Block Authoring palettes, select
al
■ Select a point to the right of the circle (2). the Actions tab.
tV
■
Position the parameter as shown. ■
Click Stretch action.
No
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
10. To include the parameters in the action:
er
12. Close the Block Editor environment and save
--- i a l
■
Select the rectangle and the Array rR changes to the block definition.
--- f i c
at
13. To test the block functionality:
eo
parameter.
--- O f
■ Press ENTER.
M
■
Select the perforated block.
--- ®
al
--- s k
■
Position the Stretch action near the ■
Click and drag the stretch grip in the
rS
--- d e
id
Be
Overview
This lesson describes how to use attributes within dynamic blocks to automatically retrieve parameter
values as the dynamic block changes.
In the following illustration, the attributes shown in the Properties palette update as the dynamic
block is resized.
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
M
--- ®
al
--- s k
When you change blocks dynamically, you may need these changes to be reflected in the attribute.
rS
--- d e
For example, an attribute used to track the part number for a window needs to change as the dynamic
ta
fo
--- u t o
id
Be
al
Objectives
tV
■
Describe dynamic attributes.
■
Access and use the options for defining dynamic attributes.
■ Create dynamic attributes.
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
M
--- ®
al
--- s k
rS
--- d e
A dynamic attribute consists of two components: a traditional attribute definition combined with field
ta
fo
--- u t o
id
This combination provides both the extraction and tracking benefits of attributes and the ability of
Be
al
In the following illustration, the Edit Attribute Definition dialog box contains a typical dynamic
attribute definition. The Default field contains a reference to a field text object that is set up to retrieve
No
the part number based on the current configuration of the block. The block contains another
parameter that looks up the part number based on the currently configured version of the
dynamic block.
--- r e
For this type of block, the attribute would normally not be visible when the bolt is inserted
--- w a
---
into the drawing. After the dynamic attribute has been defined and tested, you can set the
--- s e
Invisible property to Yes to prevent the attribute from being displayed. It could still be
--- u r
extracted for use in a parts list table.
--- C o
ls
--- g
Key Points
--- n i n
e
ia
--- r a i
al
The following are some key points about dynamic attributes:
--- T
es
■
er
They consist of a standard attribute definition combined with field text functionality.
--- i a l
■
rR
The field-enabled values are linked to dynamic block parameters.
--- f i c
at
eo
--- O f
■ They are capable of automatically updating to reflect the current value of the dynamic block
parameters.
M
--- ®
al
--- s k
rS
--- d e
id
Be
In the Attribute Definition dialog box, use the Insert Field button to define a field for the Value
al
Note the selection of Preset mode. This prevents the user from being prompted for an attribute value.
If an attribute value is manually entered, it will override the field definition for that instance of the
block. This would prevent the attribute value from updating as the dynamic block changes.
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
The BlockPlaceholder field is only available in the Block Editor. You cannot access it by editing a block
--- r a i
al
in-place. Therefore, when you create dynamic attributes, you must use the Block Editor.
--- T
es
er
--- i a l
rR
--- f i c
Before you can create a dynamic attribute, you must first create the dynamic block parameter that
at
eo
--- O f
al
--- s k
rS
--- d e
You can associate most parameters with an attribute. However, if you want information that is not
A
id
Be
related to changes in geometry to be provided to the attribute, use a lookup parameter. For example,
al
a block representing a plan view of a window might have a linear parameter that stores the window’s
tV
width, but the part number is not associated with any geometry that can be dynamically edited. In this
case, a lookup parameter could provide the part number based on the width of the window selected.
No
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
The following illustration represents what the window block may look like.
--- T
es
er
--- i a l
NOTE: One lookup action (1) and three parameters, Part #, Cost, and Window Width are referenced in
rR
--- f i c
M
--- ®
al
--- s k
rS
--- d e
ta
fo
--- u t o
A
id
Be
al
tV
No
Key Points
The following are some key points about dynamic attribute definitions.
■
Use the Preset option when defining the attribute to prevent prompting for the attribute value.
■ Use the BlockPlaceholder field to reference dynamic block parameters.
■
The BlockPlaceholder field can only be accessed in the Block Editor.
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
M
--- ®
al
--- s k
rS
--- d e
ta
fo
--- u t o
id
Be
2. Use the ATTDEF command to display the Attribute Definition dialog box.
■
Use standard methods to define the attribute.
■
Click the Insert Field button to display the Field dialog box.
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
4. Depending on the parameter selected, the field text may vary from what is shown.
--- g
--- n i n
■
Continue to set other options as required in the Attribute Definition dialog box.
e
ia
--- r a i
al
■ Click OK.
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
M
--- ®
al
--- s k
rS
--- d e
ta
fo
--- u t o
A
id
Be
5. Close the Block Editor and save changes to the block definition.
al
tV
■
Edit the dynamic block as appropriate by using its built-in actions.
■
Click View menu > Regen to force the dynamic attribute values to update.
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
M
--- ®
al
rS
To complete the exercise, follow the steps in this book or in the online exercise. In the online list of
--- d e
chapters and exercises, click Chapter 2: Beyond the Basics. Click Exercise: Create Dynamic Attributes.
ta
fo
--- u t o
A
id
Be
--- r e
--- w a
---
6. To add a field to an attribute:
--- s e
--- u r
■ Double-click the REF# attribute.
--- C o
■
In the Edit Attribute Definition dialog
ls
box, right-click the Default field.
--- g
--- n i n
■ Click Insert Field. In the Field category
e
ia
--- r a i
al
list, select Objects.
--- T
es
■
In the Field dialog box, select
er
--- i a l
WIDTH and COST and adjust their properties Property list. Click OK.
accordingly.
M
--- ®
al
ta
fo
--- u t o
A
id
Be
al
tV
No
--- r e
■ Click Insert Field.
--- w a
---
■
In the Field dialog box, select
--- s e
BlockPlaceholder in the Field Names list.
--- u r
■ Select COST in the Block Reference
--- C o
Property list.
ls
--- g
■
Click OK.
--- n i n
e
■ In the Edit Attribute Definition dialog
ia
--- r a i
al
box, click OK.
--- T
es
er
--- i a l
at
■
Double-click the SYM attribute.
eo
--- O f
al
rS
■
Click Insert Field.
--- d e
BlockPlaceholder in the Field Names list. 12. In the Property Lookup Table dialog box,
A
id
Be
■
Select SYM in the Block Reference enter the Input Properties and Lookup
al
■
Click OK.
Make sure to leave the SYM lookup property
No
■
In the Edit Attribute Definition dialog set to read-only. In this case, it makes more
box, click OK. sense to size the window by stretching it
■
Press ENTER. instead of selecting it on a lookup table
menu. Stretching the window allows you to
NOTE: You have just associated all of the dynamically see the size before selecting it.
attributes with their respective lookup
parameters. The next step is to add the
lookup parameters to a lookup table.
10. To add a lookup action to the block:
■ On the Block Authoring palettes, select
the Actions tab.
■
Click Lookup Action and select the SYM
lookup parameter.
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
13. To add properties to the lookup table: 15. To modify the attribute properties:
--- r a i
al
--- T
es
■
In the Property Lookup Table dialog box, ■
Select the REF#, WIDTH, and COST
er
--- i a l
box, select Add Lookup Properties. Invisible and Preset properties to Yes.
M
--- ®
■
SHIFT+select the REF, WIDTH, and COST NOTE: You do not want these attributes
al
--- s k
■
Click OK. prompted for their values.
ta
fo
--- u t o
id
Be
al
tV
No
--- r e
--- w a
---
--- s e
--- u r
20. To modify the window:
--- C o
■ Stretch the same window to a new size.
ls
--- g
■
Click View menu > Regen. This forces the
--- n i n
e
ia
--- r a i
al
■ Use the Properties palette to view the
--- T
es
18. Insert two instances of the window block
er changes in the attributes.
--- i a l
as shown.
rR
--- f i c
layout tab.
rS
■
Click View menu > Regen.
--- d e
■
Extract the window attributes to a table
ta
fo
--- u t o
id
■
Dynamically edit the window sizes, then
Be
Overview
This lesson describes how to manage your dynamic blocks. Like static blocks and other objects
used across multiple drawings, you need to store and manage dynamic blocks for quick and
efficient access.
The following illustration shows dynamic blocks added to a custom tool palette.
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
M
--- ®
al
--- s k
rS
--- d e
vR
ta
fo
--- u t o
You could spend hours developing dynamic blocks to save time on future drawings. Managing these
A
id
resources helps you to realize a return on your time investment. Dynamic blocks, like other forms of
Be
al
intellectual property, need to be managed to promote efficient access and use. You must also protect
them from inadvertent damage by inexperienced users.
tV
No
Objectives
After completing this lesson, you will be able to:
■ Properly store your dynamic blocks.
■
Use different methods to access your dynamic block libraries.
■
Disable the Block Editor environment to limit access to dynamic block definitions.
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
Block Library Drawing
er
--- i a l
rR
--- f i c
A block library drawing is a drawing whose sole purpose is to store block definitions. While your
at
eo
--- O f
dynamic blocks may reside in separate drawings, you should consider consolidating these block
M
definitions into fewer block library drawings. When you create these block library drawings, you
--- ®
al
should group your block definitions with other similar definitions. For example, you may have one
--- s k
rS
--- d e
block library drawing for electrical symbols, and another for AEC objects such as doors and windows.
ta
fo
--- u t o
The following illustration shows how the dynamic blocks provided in a default installation of
A
id
AutoCAD® are grouped with related blocks into block library drawings.
Be
al
tV
No
As with all important files, you should maintain a backup of your block library drawings.
--- r e
--- w a
To protect your block definitions once you have created and tested them, make the block
---
library drawings read-only by using file properties or network rights. Making the drawings
--- s e
read-only does not affect block functionality.
--- u r
--- C o
ls
--- g
Key Points
--- n i n
e
ia
--- r a i
The following are some key points about storing dynamic blocks.
al
--- T
es
■
You should consolidate and store your dynamic blocks in block library drawings.
er
--- i a l
■
rR
The location of block library drawings should depend on the access requirements.
--- f i c
at
■
Regardless of the storage location, you should maintain a full backup of your block libraries.
eo
--- O f
M
--- ®
al
--- s k
ta
fo
--- u t o
Once you have stored your block libraries, you need to determine the most appropriate way to access
A
id
them: through DesignCenter, custom tool palettes, or dragging from open drawings.
Be
al
tV
No
Key Points
The following are some key points about accessing dynamic block libraries.
■
Accessing dynamic blocks via DesignCenter requires no customization but is less efficient than
tool palettes.
--- r e
■ Custom tool palettes provide the quickest and most efficient access method and are very easy
--- w a
---
to create.
--- s e
--- u r
Disabling the Block Editor Environment --- C o
ls
--- g
--- n i n
e
Depending on your work environment, some users, but probably not all, will require access to the
ia
--- r a i
al
Block Editor environment. Dynamic blocks can consist of several parameters and actions, each with a
--- T
es
er
unique set of properties and, in some cases, dependencies on each other. It may be wise to limit access
--- i a l
rR
to these blocks to those users who understand the potential ramifications of editing them.
--- f i c
at
eo
--- O f
Command Access
M
--- ®
al
--- s k
rS
--- d e
BLOCKEDITLOCK
ta
fo
--- u t o
A
id
Be
al
Command Options
Set the BLOCKEDITLOCK system variable as follows.
Option Description
0 Block Editor environment is enabled.
1 Block Editor environment is disabled.
You should not rely on the BLOCKEDITLOCK system variable as the primary method for
protecting your dynamic block definitions. Any user with knowledge of the system variable
could easily enable the Block Editor environment by setting the variable to 0.
Key Points
--- r e
--- w a
---
The following are some key points about the BLOCKEDITLOCK system variable.
--- s e
■
While it disables access to the Block Editor environment, it should not be considered a fail-safe
--- u r
method to protect your dynamic block definitions. It can be turned on as easily as it was turned off.
--- C o
■ When the Block Editor environment is disabled, users still have access to in-place block editing
ls
--- g
methods, but they cannot access dynamic block parameters and actions.
--- n i n
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
M
--- ®
al
--- s k
rS
--- d e
ta
fo
--- u t o
A
id
Be
al
tV
No
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
3. Select the Blocks node under each drawing,
--- g
--- n i n
e
ia
--- r a i
al
This represents how a typical block library
--- T
es
drawing is used to store several block files.
er
--- i a l
at
blank drawing.
eo
--- O f
al
id
Be
Dynamic Blocks.
al
tV
template, acad.dwt.
2. To open drawings in DesignCenter:
■ On the Standard toolbar, click
DesignCenter, or press CTRL+2.
■
Navigate to the location of your
exercise files.
5. On the Standard toolbar, click Tools Palettes
Window, or press CTRL+3.
--- r e
--- w a
---
--- s e
--- u r
--- C o
ls
--- g
--- n i n
e
ia
--- r a i
al
--- T
es
7. In the Customize dialog box:
er
--- i a l
■
rR
Right-click in the Palettes area. 10. Note that the new tool palette appears
--- f i c
at
as shown.
eo
■
Click New Palette.
--- O f
■
Enter Arch-Dynamic Blocks.
M
--- ®
al
--- s k
■
Click New Palette.
ta
fo
--- u t o
■
Enter Mech-Dynamic Blocks.
A
id
Be
■ Click Close.
al
tV
No
--- r e
--- w a
■ The Reference Edit dialog box is
---
13. To modify the properties of a tool: displayed. Click OK.
--- s e
--- u r
■ ■
Right-click any of the blocks on the Because the Block Editor environment is
--- C o
custom tool palette. disabled, the following dialog box is
displayed. Click Cancel.
ls
--- g
■ Click Properties.
--- n i n
■
■
In the Tool Properties dialog box, enter a Click Cancel.
e
ia
--- r a i
al
description for the block.
This occurs because dynamic block
--- T
es
■ Note the location of the source file. All
er parameters and actions are only available
--- i a l
rR
users accessing the tool palette will need through the Block Editor environment.
--- f i c
source file.
M
--- ®
■
Click OK.
al
--- s k
rS
■
Position the cursor over the tool on the
--- d e
description.
A
id
Be
al
tV
No
As you develop dynamic blocks for your own use, you can use the more advanced capabilities
discussed in this chapter. Remember to use the Chain Actions property where appropriate, without
making your designs overly complex. When your dynamic blocks require the use of attributes,
consider the potential of dynamic attributes to store data automatically and to update as changes in
the blocks occur.
Finally, to reap the benefit of the time and effort you spend designing your dynamic blocks, store them
in a location accessible by all who need them, and use the appropriate interface objects, such as
DesignCenter and tool palettes, to access them.
In this chapter, you learned to:
--- r e
--- w a
---
■ Use the Chain Action property to simultaneously trigger multiple actions as a result of editing a
--- s e
single action.
--- u r
■
Combine the functionality of attributes and dynamic blocks by creating dynamic attributes that
--- C o
update to reflect changes in the dynamic block parameters.
ls
--- g
■
Store your dynamic blocks in block library drawings, use DesignCenter to access and insert blocks,
--- n i n
and create custom tool palettes that contain your dynamic blocks.
e
ia
--- r a i
al
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
M
--- ®
al
--- s k
rS
--- d e
ta
fo
--- u t o
A
id
Be
al
tV
No
--- r e
--- w a
---
Additional Resources
--- s e
ApendixA:
--- u r
--- C o
ls
--- g
--- n i n
e
ia
A variety of resources are available to help you get the most from Autodesk® software:
--- r a i
al
--- T
es
■
Courseware from Autodesk (AOTC, AOCC, AATC)
er
--- i a l
rR
Autodesk Authorized Training Centers (ATC®)
--- f i c
at
■
Autodesk Certification
eo
--- O f
■
Autodesk Consulting
M
--- ®
al
■
Autodesk Developer Network (ADN)
--- s k
rS
■ Product Support
--- d e
ta
fo
--- u t o
A
id
Be
al
tV
No
103
Courseware from Autodesk
--- r e
--- w a
---
Real-world, Hands-on Approach
--- s e
--- u r
--- C o
The examples and exercises in Autodesk courseware simulate real-world projects and job-related
ls
--- g
tasks, so learning relates more to skills that will improve productivity right away.
--- n i n
e
ia
--- r a i
al
Reaching All Levels
--- T
es
er
--- i a l
rR
Autodesk has courseware titles to fit a wide range of skill levels. Beginners, advanced users, and those
--- f i c
at
looking for transitioning and migration materials will find a title that fits their needs:
eo
--- O f
■
Essentials titles teach the basics.
M
--- ®
al
--- s k
■
Transition titles help smooth the way of upgrades and migrations.
rS
--- d e
■
Certification Exam Preparation Guides cover the skills required to obtain user Certification
A
id
on Autodesk software.
Be
al
--- r e
■
Autodesk® Land Desktop
--- w a
---
■ Autodesk® Raster Design
--- s e
■
Autodesk® Architectural Desktop
--- u r
■
Autodesk® Building Systems
■ Autodesk® Revit® Building
--- C o
ls
--- g
--- n i n
■
Autodesk® Revit® Structure
e
ia
--- r a i
■
Autodesk® VIZ
al
--- T
es
■ Autodesk® 3ds Max®
er
--- i a l
■
Autodesk® Combustion®
rR
--- f i c
at
eo
--- O f
al
--- s k
rS
To find up-to-date information on the latest official Autodesk courseware titles, visit
--- d e
www.autodesk.com/aotc.
ta
fo
--- u t o
If you have access to the Autodesk partner extranet (“One Team Web”), visit the Courseware
A
id
Be
If you have comments, suggestions for future titles, or general inquiries about Autodesk courseware,
please email AOTC.feedback@autodesk.com. We value your feedback!
Autodesk Certification
--- r e
--- w a
---
Autodesk users can gain a competitive edge with Autodesk Certification. Autodesk certifications
--- s e
--- u r
validate that you have the knowledge and skills required to use Autodesk products. Demonstrate your
--- C o
software skills to prospective employers, advance your career opportunities, and enhance your
credibility. Visit www.autodesk.com/certification to learn more.
ls
--- g
--- n i n
e
ia
--- r a i
al
Autodesk Consulting
--- T
es
er
--- i a l
rR
--- f i c
at
eo
--- O f
Make the most of your software investment with Autodesk Consulting. Offering a full range of
consulting and training services, Autodesk experts can help you determine and implement the right
M
--- ®
al
solution for your business needs. Autodesk Consulting provides direct access to Autodesk technical
--- s k
rS
and project management professionals, as well as access to a global community of technical experts,
--- d e
ta
including Autodesk Authorized Training Centers, Autodesk Developer Network members, Autodesk
fo
--- u t o
Authorized Resellers, and third-party consultants. Visit www.autodesk.com/consulting for more details.
A
id
Be
al
tV
Autodesk Developer Network (ADN) members have created thousands of add-on software/hardware
applications and tools to extend our products for the building, infrastructure, media and
entertainment, and manufacturing industries. Visit www.autodesk.com/partnerproducts when
you need:
■
An Autodesk product customized to your specific industry, market, codes, or standards.
■
Help integrating Autodesk products with other software applications.
Product Support
Contact your reseller or visit www.autodesk.com/support to find technical support for your
Autodesk products.