Autocad 2011 Customization Guide
Total Page:16
File Type:pdf, Size:1020Kb
AutoCAD 2011 Customization Guide February 2010 © 2010 Autodesk, Inc. All Rights Reserved. Except as otherwise permitted by Autodesk, Inc., this publication, or parts thereof, may not be reproduced in any form, by any method, for any purpose. Certain materials included in this publication are reprinted with the permission of the copyright holder. Trademarks The following are registered trademarks or trademarks of Autodesk, Inc., and/or its subsidiaries and/or affiliates in the USA and other countries: 3DEC (design/logo), 3December, 3December.com, 3ds Max, Algor, Alias, Alias (swirl design/logo), AliasStudio, Alias|Wavefront (design/logo), ATC, AUGI, AutoCAD, AutoCAD Learning Assistance, AutoCAD LT, AutoCAD Simulator, AutoCAD SQL Extension, AutoCAD SQL Interface, Autodesk, Autodesk Envision, Autodesk Intent, Autodesk Inventor, Autodesk Map, Autodesk MapGuide, Autodesk Streamline, AutoLISP, AutoSnap, AutoSketch, AutoTrack, Backburner, Backdraft, Built with ObjectARX (logo), Burn, Buzzsaw, CAiCE, Civil 3D, Cleaner, Cleaner Central, ClearScale, Colour Warper, Combustion, Communication Specification, Constructware, Content Explorer, Dancing Baby (image), DesignCenter, Design Doctor, Designer's Toolkit, DesignKids, DesignProf, DesignServer, DesignStudio, Design Web Format, Discreet, DWF, DWG, DWG (logo), DWG Extreme, DWG TrueConvert, DWG TrueView, DXF, Ecotect, Exposure, Extending the Design Team, Face Robot, FBX, Fempro, Fire, Flame, Flare, Flint, FMDesktop, Freewheel, GDX Driver, Green Building Studio, Heads-up Design, Heidi, HumanIK, IDEA Server, i-drop, ImageModeler, iMOUT, Incinerator, Inferno, Inventor, Inventor LT, Kaydara, Kaydara (design/logo), Kynapse, Kynogon, LandXplorer, Lustre, MatchMover, Maya, Mechanical Desktop, Moldflow, Moonbox, MotionBuilder, Movimento, MPA, MPA (design/logo), Moldflow Plastics Advisers, MPI, Moldflow Plastics Insight, MPX, MPX (design/logo), Moldflow Plastics Xpert, Mudbox, Multi-Master Editing, Navisworks, ObjectARX, ObjectDBX, Open Reality, Opticore, Opticore Opus, Pipeplus, PolarSnap, PortfolioWall, Powered with Autodesk Technology, Productstream, ProjectPoint, ProMaterials, RasterDWG, RealDWG, Real-time Roto, Recognize, Render Queue, Retimer,Reveal, Revit, Showcase, ShowMotion, SketchBook, Smoke, Softimage, Softimage|XSI (design/logo), Sparks, SteeringWheels, Stitcher, Stone, StudioTools, ToolClip, Topobase, Toxik, TrustedDWG, ViewCube, Visual, Visual LISP, Volo, Vtour, Wire, Wiretap, WiretapCentral, XSI, and XSI (design/logo). All other brand names, product names or trademarks belong to their respective holders. Disclaimer THIS PUBLICATION AND THE INFORMATION CONTAINED HEREIN IS MADE AVAILABLE BY AUTODESK, INC. "AS IS." AUTODESK, INC. DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE REGARDING THESE MATERIALS. Published by: Autodesk, Inc. 111 McInnis Parkway San Rafael, CA 94903, USA Contents Chapter 1 Basic Customization . 1 Overview of Customization . 1 Organize Program and Support Files . 4 Overview of File Organization . 4 Multiple Configurations . 7 Multiple Drawing Folders . 8 Locate Customized Files . 10 Locate Data Link Files . 10 Locate Plot Style Files . 11 Locate Plotter Files . 11 Locate the PMP File . 12 Locate Support Files . 13 Locate Drawing Template Files . 16 Locate Texture Files . 17 Customize a Publish to Web Template . 17 Define Custom Commands . 20 Define External Commands . 20 Create Command Aliases . 24 Record and Modify Action Macros . 25 Overview of Action Macros . 25 Work with the Action Recorder . 28 Record an Action Macro . 28 Record an Action Macro with the Action Recorder . 29 Action Node Icons . 33 iii Work with User Interface Elements . 36 Manage and Modify Action Macros . 37 Manage Action Macros . 38 Insert User Messages . 41 Pause for User Input . 43 Work with Coordinates . 44 Insert Base Points . 46 Work with Object Selections . 47 Tips for Using the Action Recorder . 48 Examples of Action Macros . 52 Create a New Layer and Draw Objects . 52 Insert a Block and Change a Dynamic Property Value . 57 Modify Circles with the Properties Palette . 59 Chapter 2 Custom Linetypes . 63 Overview of Linetype Definitions . 63 Simple Custom Linetypes . 64 Text in Custom Linetypes . 68 Shapes in Custom Linetypes . 71 Chapter 3 Custom Hatch Patterns . 75 Overview of Hatch Pattern Definitions . 75 Hatch Patterns with Dashed Lines . 78 Hatch Patterns with Multiple Lines . 82 Chapter 4 User Interface Customization . 87 Understand User Interface Customization . 87 Overview of the Customization . 87 Use the Customization Environment . 90 Overview of the Customize User Interface (CUI) Editor . 90 Work with the Customizations In Pane . 92 Work with the Command List Pane . 93 Work with the Dynamic Display Pane . 95 How Customization Has Changed . 96 Customization Glossary . 103 Work with the Customize User Interface (CUI) Editor . 106 Create a Command . 106 Create User Interface Elements . 108 Create a Quick Access Toolbar . 108 Customize the Ribbon . 109 Create a Toolbar . 113 Create a Pull-Down Menu . 114 iv | Contents Create a Shortcut Menu . 116 Customize Shortcut Key . 117 Create a Double Click Action . 117 Create a Mouse Button . 118 Create and Modify Workspaces . 118 Create a Workspace from the User Interface . 119 Create a Workspace with the CUI Editor . 120 Create and Manage Customization Files . 122 Basics of Customization Files . 122 Create and Load a Partial CUIx File . 127 Create an Enterprise CUIx File . 131 Find and Replace Commands and Text in a CUIx File . 135 Customize Commands . 142 Overview of Commands . 142 Create, Edit, and Reuse Commands . 144 Create Macros . 151 Overview of Macros . 151 Use Special Control Characters in Macros . 154 Pause for User Input in Macros . 156 Provide International Support in Macros . 158 Use Built-in Commands in Macros . 159 Repeat Commands in Macros . 159 Use Single Object Selection Mode in Macros . 160 Use Macros to Swap User Interface Elements . 160 Use Conditional Expressions in Macros . 162 Use AutoLISP in Macros . 163 Control the Display of Command Items . 165 Assign Search Tags . 171 Create Tooltips and Extended Help for Commands . 174 Create Status Line Help Messages . 180 Assign, Create, and Manage Images for Commands . 181 Assign Images to a Command . 181 Create and Edit Custom Images for Commands . 184 Manage, Import, and Export Custom Images . 186 Customize User Interface Elements . 191 Quick Access Toolbars . 194 Ribbon . 201 Ribbon Panels . 201 Ribbon Tabs . 238 Ribbon Contextual Tab States . 244 Toolbars . 248 Create and Edit Toolbars . 248 Add Flyouts to a Toolbar . 260 Add, Remove or Switch Toolbar Controls . 265 Pull-down and Shortcut Menus . 270 Overview of Pull-Down and Shortcut Menus . 270 Contents | v Create a Pull-Down Menu . 271 Create a Shortcut Menu . 275 Create Submenus . 285 Reference Pull-Down or Shortcut Menus . 288 Swap and Insert Pull-Down Menus . 290 Quick Properties . 293 Rollover Tooltips . 302 Keyboard Shortcuts . 309 Shortcut Keys . 309 Temporary Override Keys . 317 Double Click Actions . 324 Overview of Double Click Actions . 324 Double Click Action Object Names . 327 Examples of Double Click Actions . 330 Mouse Buttons . 331 Overview of Mouse Buttons . 331 Accept Coordinate Entry in Button Menus . 333 Legacy Interface Elements . 334 Create Tablet Menus . 334 Customize Tablet Buttons . 336 Create Screen Menus . 337 Create Image Tile Menus . 341 Load an AutoLISP File . 346 Customize Workspaces . 347 Overview of Workspace Customization . 347 Control User Interface Elements Outside the CUI Editor . 361 Control User Interface Elements in the CUI Editor . 364 Control the Appearance of Palettes . ..