Michael’s Corner #11
November 2003
This month follows up with the next level of tool-making in which you create your own tool, button image included. It's quite fun, really, and once you have learned the key features of this customizing procedure, you will find many opportunities to give it a try. I also have included another real-time application involving the fundamentals of paper space, along with some insights into what I refer to as the poor man's document management utility: Hyperlink. For those of you needing to run area calculations, take a look at this month's Basics section. Carry on!
If you would like to contact me directly, you can do that also.
Blessings to one and all,
Michael
Tip: When writing the macro for a custom tool, the semi-colon ";" means <Enter>.
^C^CVpoint;-4,-5,1;Z;.5x;Hide
This routine:
Cancels any currently running command (^C^C), then…
Issues the Vpoint command, then…
Enters the x,y,z values of -4,-5,1 then…
Launches Zoom, then…
Specifies a reduction of 50%, then…
Launches Hide.
Tip: When you're finished with your graphics, click Save As, navigate to the desired folder and give this .bmp a name that you will understand.
Wouldn't it be cool if you could launch one drawing from within another one. Or how about automatically going to a website containing product specification.
Once upon a Release 11-14, to switch over to "Paper Space" (now known as a Layout for those of you just joining us), you changed the Tilemode variable. When Tilemode was set to 0, the Paper Space environment was set to current. Set the Tilemode variable to 1 and the environment switches over to Model Space. This is the same as clicking on the Paper or Model button on the A2000-A2004 status bar.
What I discovered recently working on a drawing with about 25 layouts is that this variable can be extremely helpful if you are, let"s say, about 20 layouts into the multi-tab layout list and you want to jump over to Model. Rather than scrolling back to the Model tab, simply enter the default alias of TM for Tilemode, then enter 1. Once you have finished with your needs on the Model tab, use TM and enter 0… to return to the same Layout!
For those of you on A2004: If you have AutoCAD 2004, it would appear as though Autodesk recognized this need to go back to the previous layout (better late than never, I suppose). Right-click on the Model tab and choose "Activate Previous Layout"!
Whether you"re calculating areas on a corporate office floorplan or the total material area for a plate, the Area command can help.
The procedure will go much more smoothly if the bounding area and any internal shapes are polylines. In floorplans, you may want to consider using the Boundary command, or you could use Osnap and create a polyline on a separate layer.
To calculate the total area of the plate, (subtracting the area of the seven circles), do this:
Area = 18.0882, Perimeter = 17.8008
Total area = 18.0882
(ADD mode) Select objects:
If you don't have a pline to select, the prompt to "Specify first corner point" provides a method by which you can pick the points on the perimeter of the area to be calculated.
(SUBTRACT mode) Select objects:
Area = 0.0928, Circumference = 1.0799
Total area = 17.5314
If you found this article useful, you might like to consider making a donation. All content on this site is provided free of charge and we hope to keep it that way. However, running a site like CADTutor does cost money and you can help to improve the service and to guarantee its future by donating a small amount. We guess that you probably wouldn't miss $5.00 but it would make all the difference to us.
Note from Michael: I want to thank all of my customers for continuing to retain my training services (some for over three decades!) and let you know your donations do not go to me personally, but to the ongoing maintenance of the CADTutor ship as a whole and to support the yeoman efforts of my friend and CADTutor captain, David Watson, to whom I am grateful for this monthly opportunity to share a few AutoCAD insights.