About the Author |
|
xiii | |
Acknowledgements |
|
xv | |
Introduction |
|
xvii | |
|
The VBA Integrated Development Environment (VBAIDE) |
|
|
1 | (28) |
|
|
1 | (3) |
|
|
4 | (1) |
|
Exploring the User Interface |
|
|
4 | (7) |
|
|
11 | (13) |
|
|
24 | (3) |
|
|
27 | (2) |
|
Introduction to Visual Basic Programming |
|
|
29 | (40) |
|
|
29 | (10) |
|
|
39 | (2) |
|
|
41 | (3) |
|
|
44 | (4) |
|
|
48 | (4) |
|
Nested Control Structures |
|
|
52 | (1) |
|
Exiting a Control Structure |
|
|
53 | (1) |
|
Exiting a Sub or Function Procedure |
|
|
54 | (1) |
|
Application Writing Techniques |
|
|
55 | (2) |
|
Overview of Object-Oriented Programming |
|
|
57 | (11) |
|
|
68 | (1) |
|
|
69 | (18) |
|
|
69 | (3) |
|
Adding a Control to a Form |
|
|
72 | (3) |
|
Visual Basic ActiveX Controls |
|
|
75 | (8) |
|
Additional ActiveX Controls |
|
|
83 | (3) |
|
|
86 | (1) |
|
|
87 | (10) |
|
|
87 | (3) |
|
|
90 | (4) |
|
|
94 | (1) |
|
|
95 | (2) |
|
|
97 | (12) |
|
Getting and Setting Support Path(s) |
|
|
99 | (1) |
|
|
100 | (1) |
|
Getting and Setting the AutoSaveInterval Property |
|
|
101 | (1) |
|
Getting and Setting the Drawing Template File Path |
|
|
101 | (1) |
|
Getting and Setting Plotter Configuration Path Settings |
|
|
102 | (1) |
|
Getting and Setting the File SaveAs Type |
|
|
103 | (2) |
|
Enabling or Disabling the Startup Dialog Box |
|
|
105 | (1) |
|
Saving and Retrieving Personal Preferences |
|
|
106 | (1) |
|
User Preferences Changes in AutoCAD 2004 |
|
|
107 | (1) |
|
|
108 | (1) |
|
Controlling Layers and Linetypes |
|
|
109 | (28) |
|
|
109 | (16) |
|
|
125 | (11) |
|
|
136 | (1) |
|
User Interaction and the Utility Object |
|
|
137 | (40) |
|
|
137 | (38) |
|
|
175 | (2) |
|
|
177 | (38) |
|
Controlling the Drawing Space |
|
|
177 | (2) |
|
|
179 | (34) |
|
|
213 | (2) |
|
|
215 | (38) |
|
|
215 | (2) |
|
Creating Simple Solid Objects |
|
|
217 | (10) |
|
Creating Elliptical 3-D Objects |
|
|
227 | (5) |
|
Creating Extruded and Revolved Objects |
|
|
232 | (8) |
|
|
240 | (9) |
|
Analyzing Solids: Mass Properties |
|
|
249 | (2) |
|
|
251 | (2) |
|
|
253 | (30) |
|
|
253 | (23) |
|
|
276 | (6) |
|
|
282 | (1) |
|
Dimensions and Annotations |
|
|
283 | (34) |
|
|
283 | (17) |
|
|
300 | (3) |
|
|
303 | (13) |
|
|
316 | (1) |
|
Selection Sets and Groups |
|
|
317 | (30) |
|
|
317 | (23) |
|
|
340 | (6) |
|
|
346 | (1) |
|
Blocks, Attributes, and External References |
|
|
347 | (42) |
|
Blocks and Block References |
|
|
348 | (28) |
|
|
376 | (11) |
|
|
387 | (2) |
|
|
389 | (20) |
|
|
389 | (5) |
|
|
394 | (13) |
|
|
407 | (2) |
|
Layout and Plot Configurations |
|
|
409 | (22) |
|
|
409 | (20) |
|
|
429 | (2) |
|
Controlling Menus and Toolbars |
|
|
431 | (34) |
|
The MenuGroups Collection |
|
|
432 | (3) |
|
|
435 | (29) |
|
|
464 | (1) |
|
|
465 | (8) |
|
|
465 | (6) |
|
|
471 | (1) |
|
|
472 | (1) |
|
|
473 | (14) |
|
|
473 | (1) |
|
|
474 | (1) |
|
DLL to Visual Basic Calling Conventions |
|
|
474 | (2) |
|
|
476 | (1) |
|
|
477 | (1) |
|
Working with Windows API Procedures That Use Strings |
|
|
478 | (1) |
|
Passing Arguments by Value or by Reference |
|
|
478 | (1) |
|
|
479 | (7) |
|
|
486 | (1) |
|
Connecting to External Applications |
|
|
487 | (14) |
|
|
487 | (3) |
|
Connecting to Microsoft Excel |
|
|
490 | (2) |
|
Connecting to Microsoft Word |
|
|
492 | (2) |
|
Connecting to a Microsoft Access Database |
|
|
494 | (5) |
|
|
499 | (2) |
|
Appendix A AutoCAD Object Summary |
|
|
501 | (262) |
|
|
518 | (245) |
|
Appendix B AutoCAD Constants Reference |
|
|
763 | (44) |
|
|
763 | (1) |
|
|
763 | (1) |
|
|
764 | (1) |
|
AcAlignmentPointAcquisition |
|
|
765 | (1) |
|
|
765 | (1) |
|
|
766 | (1) |
|
|
766 | (1) |
|
|
767 | (1) |
|
|
768 | (1) |
|
AcColor (and the ColorIndex Property of the AcCmColor Object) |
|
|
768 | (1) |
|
|
769 | (1) |
|
|
770 | (1) |
|
|
770 | (1) |
|
|
771 | (1) |
|
|
772 | (1) |
|
|
772 | (1) |
|
AcDimHorizontalJustification |
|
|
773 | (1) |
|
|
773 | (1) |
|
|
774 | (1) |
|
|
775 | (1) |
|
|
775 | (1) |
|
|
776 | (1) |
|
|
776 | (1) |
|
AcDimVerticalJustification |
|
|
777 | (1) |
|
|
778 | (1) |
|
|
778 | (1) |
|
|
779 | (1) |
|
|
779 | (1) |
|
|
780 | (1) |
|
|
781 | (1) |
|
|
782 | (1) |
|
|
782 | (1) |
|
|
783 | (1) |
|
|
784 | (1) |
|
|
785 | (1) |
|
|
785 | (1) |
|
|
786 | (1) |
|
|
786 | (1) |
|
|
787 | (1) |
|
|
787 | (2) |
|
|
789 | (1) |
|
|
789 | (1) |
|
|
789 | (1) |
|
|
790 | (1) |
|
|
790 | (1) |
|
|
790 | (1) |
|
|
791 | (1) |
|
|
791 | (1) |
|
|
792 | (1) |
|
|
792 | (2) |
|
|
794 | (1) |
|
|
794 | (1) |
|
|
795 | (1) |
|
|
795 | (1) |
|
|
796 | (1) |
|
|
796 | (1) |
|
|
796 | (1) |
|
|
797 | (1) |
|
|
798 | (1) |
|
|
799 | (1) |
|
|
799 | (1) |
|
|
800 | (1) |
|
|
800 | (1) |
|
|
801 | (1) |
|
|
801 | (1) |
|
|
802 | (1) |
|
|
803 | (1) |
|
|
804 | (1) |
|
|
805 | (1) |
|
|
805 | (2) |
|
Appendix C System Variables |
|
|
807 | (30) |
|
Appendix D AutoCAD 2000, 2002, and 2004 Object Model Cross Reference |
|
|
837 | (36) |
|
|
837 | (4) |
|
|
841 | (9) |
|
|
850 | (19) |
|
|
869 | (4) |
Index |
|
873 | |