Tips & Tools Weekly (Vol. 12, No. 42)

26 Nov, 2007

This Week's Software Tips

Be Among the First to Sport a New Cadalyst T-shirt Submit a tip today and get ready to make a fashion statement in one of Cadalyst's brand-new T-shirt designs! Impress your boss and amuse your coworkers with one of our three hot-off-the press CAD-tastic cartoons and code slogans. Once we publish your tip, you'll get to choose your favorite shirt design, and your name will be entered into our monthly drawing for a $100 gift card.

Hatch Macro
Richard Wenner was messing around with the AutoCAD tool palette and found that a hatch didn't work the way he wanted. He explains, "In AutoCAD 2006, if you drag and drop a hatch to the palette, the only option you have is to pick an area for you to fill, not hatch. What I needed was to pick points with a certain hatch style with island detection, then use another style hatch to select objects. I came up with the following macros for these instances. I also included another macro that starts the Rectangle command with the user specifying two points, then hatching that rectangle with a user-specified hatch. (I used solid as an example.)

Use this macro to select objects to be hatched:

^C^C-hatch;p;ar-sand;1;0;s;/;

Use this macro for picking internal points:

^C^C-hatch;p;ar-rroof;5;0;a;i;y;s;o;;

Use this macro with rectangle and hatch combined:

^C^C_rec;\\-hatch;p;solid;s;l;;;

NOTES FROM CADALYST TIP PATROL: Nice macros. A typical hatch in a tool palette hatches only an internal point. These macros could easily be modified to any hatch pattern, layer, scale, etc. We definitely recommend using these.

Delete Filters
Faith Merriman found a hidden command in Architectural Desktop. She says, "To delete unwanted filters, just type in Filters. This command is not listed in the manual or reference books."

NOTES FROM CADALYST TIP PATROL: You are correct! Plus, the Filters command is not only an Architectural Desktop command, it's an AutoCAD command. We can't find a listing for this command in AutoCAD 2008 Help, but it works in 2007 and 2008. It doesn't exist in AutoCAD 2004. When invoked, a dialog box opens with every layer filter listed. Select the layers you want to keep and click the Delete Filters button. The filters that are left in the right column are deleted.

Customize Your Tool PalettesA reader sent in a tip about how to add your own commands to your AutoCAD tool palettes, but the Tip Patrol offers a more direct solution.

Tool palettes have been around since AutoCAD 2004, but the way they're set up has changed through the years. To add commands to a tool palette in AutoCAD 2007 and 2008, begin by opening the tool palette.

Right-click on an existing palette and a dialog box opens.

Select the Create Palette option and name it whatever you want.

Right-click the palette again and select Customize Commands.

This brings up another window that lists every AutoCAD command. You can filter and sort this list by source (the CUI that the command is saved in). The commands are simply the buttons in a toolbar, menu, and palette. If you want any of these commands on your tool palette, select it, hold, and drag the command to your palette.

If you want to make a new command in AutoCAD 2007, click the New button; in 2008 click the New icon (it looks like a star). Give it a name and define the macro. The macro is the series of instructions to AutoCAD that executes the command. Look at other commands (such as the three in the previous tip) to help you determine the proper format. You could even copy a command and edit it. Click OK when finished. Alternatively, if you have already drawn an object, hatch pattern, or other entity, select it in the drawing, hold, and drag it to the tool palette. Another way is to open Design Center (Tool / Palettes / Design Center, or press Ctrl+2). Browse to a file that has the information you want. Select the item, hold, and drag it to the tool palette.

Note: The follow-up tips below have not been tested by the Cadalyst Tip Patrol.

Shawn Evjen sent in his Purge All routine. Shawn says, "It purges all standard purgeable items and returns a count of how many items were purged. Run the command by typing Pur, or set it to run within another command, such as Qsave, as I do. My Qsave command performs Zoom Extents, Audit, Purge All, and then a QSave at the end. I write my own code to keep file sizes down. I created this for use in AutoCAD 14, but currently use it with Architectural Desktop 3.3 and AutoCAD 2000."

Chris Wade found that problems still can arise when drawings are created in programs other than AutoCAD. Wade explains, "Although the code below assumes that you are already in model space and only need what is in model space, it's the most reliable way to eliminate these problems. This routine is designed to work in AutoCAD 2006 and newer. For older versions, remove Regapps and the remainder of the stuff from the Purge command."

Chris continues, "If you need both paper space and model space in the same drawing, then the following LISP routine cleans up the majority of the mess, but it does leave a bit of the problems; the one above is better if you only need model space. Please note that the routine below works only in AutoCAD 2006 and newer. It uses a command that is designed to explode all AEC objects, but has the nice side effect that it can help to clean up drawings made by programs other than Autodesk. This program does leave behind a file with the same name with -AECTemp added to it. Once you confirm that the new file looks correct, you can delete the one with the AECTemp extension. I also recommend using both routines on copies of the original file, just to be safe."

Similar to the exorcism routine, David Rodriguez came up with new toolbar button. David asks all the CAD folks to end their sessions with this tool. It zooms extents, audits the drawing, purges it, sets layer 0 to Current, and saves.

^C^C_z e audit y _purge clayer 0 qsave

Follow-Up: Flag Those F KeysIn response to the tip on flagging the F keys to help remember what they are used for, Kellie Eubanks tells us that the mouse another handy tool. Kellie explains, "A lot of mice now have two or three buttons on the side, and I program these to F3 (osnap), F8 (ortho), and if there is a third button, I program it to a frequently used command such as Move or Copy. This makes it very easy and efficient to click them on and off as needed."

Submit your tip, code, or shortcut for your favorite CAD software. If we publish your tip, we'll send you a Cadalyst T-shirt, and each month Cadalyst editors will randomly select one published tip and send a $100 gift card to its author. Please submit only code and other tips that are your original work (or provide the original source so we can include proper credit) and tell us which software version you use. By submitting code, you grant Cadalyst the right to print and distribute your code in print, digitally, and by other means. Cadalyst and individual authors retain all rights to the code; published code is not to be used for commercial purposes.

Tips & Tools Weekly software tips for AutoCAD are reviewed by Cadalyst staff and the Tip Patrol before publication. Use all tips at your own discretion, please, and watch later editions of this newsletter for updates and corrections. We're sorry, but editors and Tip Patrol members cannot provide assistance with technical problems; please refer to Cadalyst'sHot Tip Harry-Help discussion forum.

Handbook for Manufacturing and ProductionIGI Global unveiled its Handbook of Computational Intelligence in Manufacturing and Production Management ($195), edited by Dipak Laha, Jadavpur University, India, and Purnendu Mandal, Lamar University, United States. The book aims to minimize the knowledge gap between researchers and production professionals by focusing on computational developments in forecasting, scheduling, production planning, and inventory control.

IBM Opens PLM Centers of ExcellenceIBM announced the launch of a global network of nine Product Lifecycle Management Centers designed to help customers launch new products in shorter time periods. IBM states that the centers' lab-like environment offers clients access to IBM experts, which include more than 3,000 researchers, 9,000 software developers, and 1,000 consulting and technology practitioners, who help clients integrate all aspects of a product's lifecycle into other enterprise systems.

SIGGRAPH 2008 Call for Papers ACM SIGGRAPH announced an improved submission process for SIGGRAPH 2008 that aims to provide presenters with greater flexibility for sharing work through the creation of more thematic submission categories. The deadline for submitting abstracts for technical papers is now January 23, 2008.

FIATECH Seeking Nominations for CETI AwardsDid you or your company accomplish a significant technological research or deployment achievement in 2007 and you want the world to know about it? Submit it by December 14 for consideration in FIATECH's annual Celebrate Engineering and Technology Innovations (CETI) awards program. Established in 2006, the CETI Awards recognize and honor achievements related to the capital projects industry.

Glumac Receives Revit BIM Experience AwardAutodesk announced that Glumac, a mechanical, electrical, and plumbing (MEP) consulting engineering firm, received a Revit BIM Experience Award for its exemplary use of building information modeling (BIM) and dedication to sustainable design. The Revit BIM Experience Award honors commercial firms, educational institutions, and individuals for the use of the Revit platform to create complex designs, collaborate across multiple disciplines, and drive increased productivity and sustainability in the building design process.

Luxology Bundles modo 301 Evaluation Version with Video TrainingLuxology announced that its modo 301 evaluation software including the modo in Focus video training album are available for immediate download for a combined price of $25. The company states that the evaluation software has full feature parity with the commercial version of modo and includes an unlimited 30-day license for both the PC and Mac.

General Software: ePaperCollaboration and visualization tool from Enggsoft Group facilitates the visualization, distribution, and sharing of CAD drawings without the need to access native CAD software. Read more

AEC: ProjectWise Lifecycle Server v8.9.3Bentley release includes support for Russian and Chinese languages as well as certification for both Oracle v9.2.8 and Oracle 10g. Read more

AEC: ArchT 2008 for AcceliCAD and IntelliCADAutodsys add-on product for AcceliCAD and IntelliCAD v6.2 and higher includes features previously available only in the AutoCAD version. Read more

AEC: StormCAD v8 XM Newest Bentley release works with MicroStation and AutoCAD or as a standalone.
Read more

AEC: ArchT 2008 for AutoCAD 2008 New release from Autodsys supports all platforms based on AutoCAD 2008 and features added support for multilevel functionality via an enhanced styles toolbar. Read more

MCAD: IRONCAD v10 Newest release features a realistic rendering engine that supports Global Illumination, Radiosity, and Caustics options, as well as High Dynamic Range Imaging environment maps. Read more

MCAD: KeyCreator v7Infotech's CAD/CAM solution upgrade features batch-translation capabilities for PDF and 3D PDF exports as well as expanded dimension-driven editing that allows greater use of angular dimensions to rotate faces on a solid model. Read more

PTC High-Speed Machining Seminar November 28, 2007
Windsor, Ontario
"Staying Competitive in the Fierce Global Market," hosted by PTC, is a free, half-day event intended to help manufacturing engineers and machinists learn how to optimize toolmaking and high-speed machining to increase product quality, reduce scrap, and decrease production time and costs for any design. Read more

"Discover Simulation" Information SeminarNovember 30, 2007
Oakville, Ontario
Atkinson Design presents this seminar to show how you can leverage your existing CAD and CAE solutions and gain additional value when paired with simulation solutions from MSC Software such as MSC SimOffice, a simulation solution for CAE experts as well as engineers who may not currently use simulation. Read more

NIBS FEDConDecember 11, 2007
Washington, DC
Colocated with AEC-ST Fall and EcoBuild Fall, FEDCon is the National Institute of Building Sciences' (NIBS') annual review of federal agencies' building and spending plans. The information-packed event takes advantage of NIBS' longstanding relationships with key agencies like the General Services Administration, the Naval Facilities Engineering Command, the State Department, and the Department of Veterans Affairs. Read more

NIBS FEDspec MeetingDecember 12, 2007
Washington, DC
Also colocated with AEC-ST Fall and EcoBuild Fall and cosponsored by NIBS and Specifications Consultants in Independent Practice, FEDSpec is an essential meeting for federal and private sector AEC specifiers who work on federal projects. Read more

National buildingSMART Conference December 13, 2007
Washington, DC
The first National buildingSMART Conference is cosponsored by NIBS' Facility Information Council (FIC) and its National Building Information Model Standard (NBIMS) Committee, and NIBS' newest program, the buildingSMART Alliance. This conference includes one of the three keynotes for the overall Ecobuild & AEC-ST event. Read more

FIATECH's 2008 Annual Technology Conference March 31- April 2, 2008
New Orleans, Louisiana
FIATECH's Annual Technology Conference & Showcase aims to share and demonstrate emerging technologies that will significantly improve the capital projects industry, especially new solutions not currently in wide use in the capital projects industry but currently or imminently available. Read more

For a complete list of CAD meetings, conferences, training sessions, and more, check out our calendar of events on Cadalyst.com.

In her easy-to-follow, friendly style, long-time Cadalyst contributing editor and Autodesk Technical Evangelist Lynn Allen guides you through a new feature or time-saving trick in every episode of her popular AutoCAD video tips. Subscribe to the free Cadalyst Video Picks newsletter and we'll notify you every time a new video tip is published. All exclusively from Cadalyst!