designing and managing dynamic blocks autodesk...

8
AutoCAD ® 2007 Designing and Managing Dynamic Blocks Autodesk ® Official Training Courseware (AOTC) 00127-050008-1720A June 2006

Upload: phamkien

Post on 23-Mar-2018

216 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Designing and Managing Dynamic Blocks Autodesk …drh.img.digitalriver.com/.../AOTC_AutoCAD_2007_Dynamic_Blocks-TOC.pdfDesigning and Managing Dynamic Blocks Autodesk ® Official Training

AutoCAD®

2007

Designing and Managing Dynamic Blocks

Autodesk® OfficialTraining Courseware(AOTC)

00127-050008-1720AJune 2006

Page 2: Designing and Managing Dynamic Blocks Autodesk …drh.img.digitalriver.com/.../AOTC_AutoCAD_2007_Dynamic_Blocks-TOC.pdfDesigning and Managing Dynamic Blocks Autodesk ® Official Training

© 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 ORFITNESS 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 ORARISING 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 StudioMAX, 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, MechanicalDesktop, ObjectARX, Open Reality, PortfolioWall, Powered with Autodesk Technology (logo), ProjectPoint, RadioRay, Reactor, Revit, SketchBook, Visual, VisualConstruction, Visual Drainage, Visual Hydro, Visual Landscape, Visual Roads, Visual Survey, Visual Toolbox, Visual Tugboat, Visual LISP, Voice Reality, Volo, WHIP!,and WHIP! (logo).

The following are trademarks of Autodesk, Inc., in the USA and other countries: AliasStudio, AutoCAD Learning Assistance, AutoCAD Simulator, AutoCAD SQLExtension, AutoCAD SQL Interface, AutoSnap, AutoTrack, Built with ObjectARX (logo), Burn, CAiCE, Cinestream, Cleaner Central, ClearScale, Colour Warper,Content Explorer, Dancing Baby (image), DesignCenter, Design Doctor, Designer’s Toolkit, DesignKids, DesignProf, DesignServer, Design Web Format, DWF,DWG, DWG Linking, DWG (logo), DWG TrueConvert, DWG TrueView, DXF, Extending the Design Team, GDX Driver, Gmax (logo), Gmax ready (logo), Heads-upDesign, Incinerator, LocationLogic, MotionBuilder, ObjectDBX, Plasma, PolarSnap, Productstream, RealDWG, Real-time Roto, Render Queue, ShowCase,StudioTools, Subcontractor Desktop, Topobase, Toxik, Visual Bridge, Visual Syllabus, and Wiretap.

Autodesk Canada Co. Trademarks

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,Inferno, MountStone, Riot, River, Smoke, Sparks, Stone, Stream, Vapour, Wire.

The following are trademarks of Autodesk Canada Co., in the USA, Canada, and/or other countries: Backburner, Multi-Master Editing.

Third Party Trademarks

All other brand names, product names, or trademarks belong to their respective holders.

Third Party Software Program Credits

Microsoft and Windows are registered trademarks of Microsoft Corporation in the United States and/or other countries.

ACIS copyright © 1989–2001 Spatial Corp. Portions copyright © 2002 Autodesk, Inc.

AnswerWorks 4.0 ©; 1997–2003 WexTech Systems, Inc. Portions of this software © Vantage-Knexys. All rights reserved.

Copyright © 1997 Microsoft Corporation. All rights reserved.

Copyright © 1988–1997 Sam Leffler.

Copyright © 1991–1997 Silicon Graphics, Inc.

AutoCAD ® 2007 and AutoCAD LT ® 2007 are produced under a license of data derived from DIC Color Guide ® from Dainippon Ink and Chemicals,Inc. Copyright © Dainippon Ink and Chemicals, Inc. All rights reserved. DIC and DIC Color Guide are registered trademarks of Dainippon Ink andChemicals, Inc.

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.

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 currentPANTONE 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 withcertain Autodesk software products. PANTONE Color Data and/or Software shall not be copied onto another disk or into memory unless as part of theexecution 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 Institutefor 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) andDFAR 227.7202 (Rights in Technical Data and Computer Software), as applicable.

Page 3: Designing and Managing Dynamic Blocks Autodesk …drh.img.digitalriver.com/.../AOTC_AutoCAD_2007_Dynamic_Blocks-TOC.pdfDesigning and Managing Dynamic Blocks Autodesk ® Official Training

iii

Contents

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v

Chapter 1: Basics of Dynamic Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Lesson: Using Dynamic Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2About Dynamic Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3About the Block Editor Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4Using the Block Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8Exercise: Use Dynamic Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11Exercise: Use the Block Editor Environment . . . . . . . . . . . . . . . . . . . . . . . . . 13

Lesson: Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15About Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16Adding Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21Exercise: Add Parameters to a Dynamic Block . . . . . . . . . . . . . . . . . . . . . . . 24

Lesson: Actions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27About Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28Adding Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31Exercise: Add Actions to a Dynamic Block . . . . . . . . . . . . . . . . . . . . . . . . . . . 34

Lesson: Parameter Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38About Parameter Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39Using Parameter Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40Exercise: Use Parameter Sets on a Dynamic Block . . . . . . . . . . . . . . . . . . . 42

Lesson: Creating Dynamic Blocks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45Exercise: Create a Wall Sink Dynamic Block . . . . . . . . . . . . . . . . . . . . . . . . . 46Exercise: Create a Cap Screw Dynamic Block . . . . . . . . . . . . . . . . . . . . . . . . 49Exercise: Create Dynamic Outlet Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . 51Exercise: Create a Dynamic Roof Pitch Callout . . . . . . . . . . . . . . . . . . . . . . 55Exercise: Create a Dynamic Diverter Valve . . . . . . . . . . . . . . . . . . . . . . . . . . 59Exercise: Create a Dynamic Terminal Block . . . . . . . . . . . . . . . . . . . . . . . . . 62Exercise: Create a Dynamic Block of a Door . . . . . . . . . . . . . . . . . . . . . . . . . 64Exercise: Create a Dynamic Revision Table Block . . . . . . . . . . . . . . . . . . . . 68

Chapter Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70

Page 4: Designing and Managing Dynamic Blocks Autodesk …drh.img.digitalriver.com/.../AOTC_AutoCAD_2007_Dynamic_Blocks-TOC.pdfDesigning and Managing Dynamic Blocks Autodesk ® Official Training

iv ■ Contents

Chapter 2: Beyond the Basics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71

Lesson: Chaining Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72About Chaining Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73Chain Actions Property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76Exercise: Chain Actions in a Dynamic Block . . . . . . . . . . . . . . . . . . . . . . . . . 78

Lesson: Attributes and Dynamic Blocks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81About Chaining Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73About Dynamic Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82About Dynamic Attribute Definitions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83Creating Dynamic Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86Exercise: Create Dynamic Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88

Lesson: Managing Dynamic Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93Storing Dynamic Block Libraries. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94Accessing Dynamic Block Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95Disabling the Block Editor Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96Exercise: Manage Dynamic Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98

Chapter Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101

Appendix A: Additional Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103

Courseware from Autodesk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104Autodesk Authorized Training Centers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106Autodesk Certification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106Autodesk Consulting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106Autodesk Developer Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106Product Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106

Page 5: Designing and Managing Dynamic Blocks Autodesk …drh.img.digitalriver.com/.../AOTC_AutoCAD_2007_Dynamic_Blocks-TOC.pdfDesigning and Managing Dynamic Blocks Autodesk ® Official Training

v

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.

Although this courseware is designed for instructor-led courses, you can also use it for self-paced learning. The courseware encourages self-learning through the use of the AutoCAD® Help system.

This introduction covers the following topics:

■ Course objectives■ Prerequisites■ Using this courseware■ CD contents■ Completing the exercises■ Installing the exercise data files from the CD■ Imperial and metric datasets■ Notes, tips, and warnings■ Feedback

This courseware is complementary to the software documentation. For detailed explanations of features and functionality, refer to the Help in the software.

Course Objectives

After completing this course, you will be able to:

■ Create dynamic blocks including parameters and actions.■ Use some of the more advanced features and properties of dynamic blocks, and restrict

unauthorized editing.

Page 6: Designing and Managing Dynamic Blocks Autodesk …drh.img.digitalriver.com/.../AOTC_AutoCAD_2007_Dynamic_Blocks-TOC.pdfDesigning and Managing Dynamic Blocks Autodesk ® Official Training

vi ■ Introduction

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.

Using This Courseware

The lessons are independent of each other. However, it is recommended that you complete these lessons in the order that they are presented unless you are familiar with the concepts and functionality described in those lessons.

Each chapter contains:

■ Lessons

Usually two or more lessons in each chapter.■ Exercises

Practical, real-world examples for you to practice using the functionality you have just learned. Each exercise contains step-by-step procedures and graphics to help you complete the exercise successfully.

CD Contents

The CD attached to the back cover of this book contains all the data and drawings you need to complete the exercises in this course.

Page 7: Designing and Managing Dynamic Blocks Autodesk …drh.img.digitalriver.com/.../AOTC_AutoCAD_2007_Dynamic_Blocks-TOC.pdfDesigning and Managing Dynamic Blocks Autodesk ® Official Training

Introduction ■ vii

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.

After launching the online exercises, you might need to alter the size of your application window to align both windows.

Installing the Exercise Data Files from the CD

To install the data files for the exercises:

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.

1. Insert the courseware CD.

2. When the setup wizard begins, follow the instructions on screen to install the data.

3. If the wizard does not start automatically, browse to the root directory of the CD and double-click Setup.exe.

Page 8: Designing and Managing Dynamic Blocks Autodesk …drh.img.digitalriver.com/.../AOTC_AutoCAD_2007_Dynamic_Blocks-TOC.pdfDesigning and Managing Dynamic Blocks Autodesk ® Official Training

viii ■ Introduction

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).

In the exercise steps, the unitless value is specified as shown in the following example:

■ For Length, enter 400.

Some exercises may be provided with only a metric or imperial version. In those instances, you will be asked to enter the appropriate value, as described above.

Notes, Tips, and Warnings

Throughout this courseware, notes, tips, and warnings are called out for special attention.

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 [email protected].

Notes contain guidelines, constraints, and other explanatory information.

Tips provide information to enhance your productivity.

Warnings provide information about actions that might result in the loss of data, system failures, or other serious consequences.