J
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
AutoCAD Tips BlogApril 27, 2008 April 2008 Resource of the Month - CADwire.net April 21, 2008 Convert text to Mtext and vice versaText, also called single-line text, or Dtext, makes every line a separate object. It's great for short annotation in a drawing. On the other hand, Mtext, also called multiline text, has more formatting options, and is better for larger amounts of text. Mtext is especially important if you need to create left and right margins and wrap the text between those margins. Sometimes, you have single-line text that should be multiline text, or vice versa. Here are two simple ways to convert between the two types of text. From text to Mtext To convert from text to Mtext, use the Express Tools command TXT2MTXT. Choose Express> Text> Convert Text to Mtext. (In AutoCAD 2009, click the Menu Browser first.) At the Select objects: prompt, select the text objects that you want to convert. If you press Enter instead, you get the Text to MText Options dialog box. Set the options as you want and press OK. By default, the command sorts from the top object downward, and tries to word wrap the Mtext that it creates. One nice feature of the command is that if you select text objects first, the command executes without further input -- very efficient! Another efficient feature is that the command does a true conversion; your old text objects are gone. From Mtext to text The easiest way that I found to convert Mtext to text is simply to copy and paste. Double-click the Mtext to open the Mtext editor. Select the text and copy to the clipboard. Then close the editor. Start the DTEXT or TEXT command. Specify the start point, height and rotation angle as usual. You'll then see a small box and cursor. Paste from the clipboard and press Enter to end the command. You'll then need to delete your Mtext object. Jimmy Bergmark reminded me that you can simply explode the Mtext. The difference is that you'll keep the line wrapping. It all depends on which result you want. A bonus is that you don't have to delete the original object. April 18, 2008, Record macros with the Action Recorder In AutoCAD 2009, you can record macros for later use. This is a long-requested time saver. You can include requests for user input and messages to make the macro work interactively. When you save a macro, it has an ACTM filename extension. You'll find it in your Support\Actions folder of your AutoCAD installation. You can share ACTM files with others. Start by thinking about the conditions that you'll need when you run the macro. Will you be in model space or paper space? The macro doesn't keep track of all of the current settings. If a certain setting is necessary, use the system variable or the SETVAR command while recording the macro to make sure that you have the setup you'll need at playback time. Action Recorder macros have some limitations:
You may find other limitations. You'll find the Action Recorder on the Tools tab, in the Action Recorder panel. You can also choose Menu Browser (the A button)> Tools> Action Recorder.
Here's an example of how you would create a macro to change all objects to the default 0.25mm lineweight. You might get drawings from a company that adds lineweights to objects. Moreover, their default might be different. So this macro sets the default to 0.25, turns on the display of lineweights, and then uses the CHPROP command to change the lineweight of selected objects to the default. At the end, the macro turns off lineweight display.
Figuring out which commands to use often involves some research. For example, I knew that I could turn the lineweight display off and on using the button on the status bar, but I couldn't do that in the macro, since I didn't know which way the display would be when I played back the macro. If I wanted to turn the display on, and it was already on, clicking the button would turn it off! So I needed to find the system variable involved, which was LWDEFAULT. Then, it was easy to turn it on and off as needed. When you've figured out the steps that you want to take, and tried them out a couple of times in different situations, you're ready to record. Choose Tools tab> Action Recorder panel> Record. Your cursor now has a red dot, to show you that you're recording.
Go through the steps that you practiced. When you're done. click the Stop button that has replaced the Record button. You now have the opportunity to name and save the macro, as well as choose a few options.
Here is the command line that I created as I recorded:
Because I specified all at the Select objects: prompt, the macro will always select all objects. I tested that by adding more objects with a non-default lineweight; they were also changed. Here's what the macro looks like in the Action Recorder drop-down window:
I might want to be able to select individual objects. Letting the user select objects makes the macro interactive, and it's a very helpful feature. To do this, I reorganized the macro and used the SELECT command before the CHPROP command. While recording, I simply picked any objects. For the CHPROP command, I then used the p (Previous) option at the Select objects: prompt. When I was done, the macro looked like this:
Then I right-clicked the Select Objects item, and chose Request User Input, as shown below:
When I ran the macro, I got a dialog box asking if I wanted to provide user input. By accepting that option, I was able to either select objects, or enter all. If you have a useful macro that you recorded, I'd like to hear about it. Contact me, and attach the ACTM file. If I can successfully use it and it might be useful for others, I'll publish it (giving credit to you, of course). April 6, 2008 Tutorial: Create a simple sheet set Architects use sheet sets all of the time to pull together the many required drawings into one package. Other disciplines use them less often, but if you need to deliver a number of drawings together, they can help you organize and maintain them. Sheet sets have a reputation for being complicated and they are, if you use all of the features. But you can create a simple sheet set easily and you may find that they help you out a lot. For example, you can do the following with a sheet set:
A sheet set is a DST file that contains the properties of the sheet set. You start with drawings that have model space content; these are your resource drawings. One layout for each drawing becomes the sheet in the sheet set. Therefore, a sheet set is a collection of layouts, one for each drawing. Follow these steps to create a simple sheet set:
Throughout these steps, you'll see various settings that I didn't mention. Investigate them to get the exact results that you want. To specify properties for the entire sheet set, right-click its name on the Sheet List tab and choose Properties. The advanced features of sheet sets help you to automatically number and annotate text in title blocks, callout blocks, and label blocks. March 26, 2008 My site has so many tips on it now, that I'm aware of the fact that they can be hard to find. Don't forget that the Tips menu has a Search box where you can search for tips that meet your needs. Another way to discover new tips is to find out what other people are looking at. Here are the top 3 tips from February, 2008:
March 2008 Resource of the Month - CAD-Manager.com CAD-Manager.com is the Web site of Robert Green, the well-known writer of the CAD Manager column in Cadalyst magazine. He's also a consultant and an author. His site has easy links to his excellent articles, code examples, CUI (customize user interface) tutorials, and more. March 24, 2008 Another Break Objects Quickly AutoLISP routine In my earlier "Break objects quickly" tip, I have 4 routines that help you break objects more quickly than the standard AutoCAD command. Febien Mosen sent me another routine, SCISSORS, that has 3 features:
I tested it, and it worked fine for me. You can download the AutoLISP file here. Here's the code: (defun C:SCISSORS( / pt1 bpt1 bpt2 ss1 dist1 ent1 centrecercle) ;;first, get the breaking point ;;now, check if there's more than one object under that point ;;if there's more than 1 object under point, ask to select, else use existing point ;;but if it's a circle (thus usually unbreakable)... ;;restore cmdecho ;;--- this function makes a selection set of entities beneath a point March 16, 2008 Putting an AutoCAD drawing in a PowerPoint presentationYou can put an AutoCAD drawing -- in DWF format -- directly into PowerPoint. Not just a JPEG or other image of the drawing, but the actual drawing. More incredible, with Autodesk® Design Review (which was previously Autodesk DWF Viewer -- they change the name almost every year), you can zoom in and out and pan around the drawing to show all of the drawing in detail, all from within your PowerPoint presentation. To get the latest version, go to www.autodesk.com/designreview. These instructions are updated for AutoCAD 2008 and PowerPoint 2007. The instructions are quite different, because PowerPoint 2007 requires a different procedure. Here are the steps:
From the toolbar, you can zoom, pan, print, mark up, and measure. Click the Show/Hide Navigator button on the toolbar to display the Navigator, where you can turn layers on and off (if this feature has been enabled), display named views, and more. You can also right-click to use the shortcut menu for many tasks .Other options may be available depending on how the drawing was saved. This makes for a very nice presentation, zooming in and panning to show the drawing in detail. It's certainly more than you can do with a JPEG. Remember that you can create multi-page DWF files, so that you can actually show multiple drawings from one slide. You can also create 3D DWFs. For instructions on creating a DWF file, see "Tutorial: Create a DWF file."
March 10, 2008 The new features of AutoCAD 2009 have now been made public and I've reviewed them in detail, with screen shots and a couple of movies. Read all about it! March 8, 2008 Extend lines to make corners with chamfer The CHAMFER command makes mitered (angled) corners, like the one below.
However, you can also use the CHAMFER command to extend lines to meet and make right-angled corners. In other words, you can use the command to turn the situation on the left to the situation on the right.
You do this by setting the Distance and Angle options to zero. When you start the command, it lists the current settings: Command: chamfer In this example the Distance option (which shows as Length) is 1 unit, and the angle is 45°. To create a square corner, use the Distance option and set both distances to 0 (you can specify a chamfer with two distances, rather than with a distance and an angle). Then use the Angle option and set its value to 0. Then select both lines near their endpoints to get a square corner. But that's a lot of setting. Instead, you can quickly and temporarily override any non-zero settings by selecting the first line, and then pressing Shift as you select the second line. Presto! Instant square corners. You could also use the EXTEND command (or the TRIM command with the Shift key), but the CHAMFER command is faster. February 29, 2008 February 2008 Resource of the month - Rockmaster's CAD Resources February 28, 2008 Write blocks to save them as separate files When you create a block in a drawing, you should think if it will be useful in other drawings. You can access that block from other drawings using the DesignCenter, but you'll probably need to remember where the block was, in order to find it. Instead, many people create block libraries, putting several blocks in a special block library drawing, or putting each block in a separate drawing. Because you name and store these drawings specially to make them easy to find and identify, the blocks they contain are easier to find. For example, you may have a folder named Blocks. And you could name a drawing with a double-hung window block in it Double-Hung Window. That certainly helps you to find it! To save a block in your drawing as a separate file, you use the WBLOCK command. This is called writing (saving) the block. Follow these steps: February 28, 2008 AutoCAD Tutorial: Display a lost custom toolbar When you create a custom toolbar that you use regularly, you may accidentally close it and then not be sure how to open it again. Jay had this experience after using my tip "Create a custom toolbar in AutoCAD 2006 or later." He wrote, "Thanks for the "Create a custom toolbar in ACAD 2006" article... It was very easy to follow and I created a very helpful toolbar with my favorite commands. I have come to depend on it after about a week. I accidentally closed the toolbar and now I can't figure how to reload it..." There are two methods. The first is to... February 28, 2008 Keyboard shortcuts can make your work go much faster. You can use the default keyboard shortcuts and create your own. Here are the defaults that come with AutoCAD... January 31, 2008 January 2008 Resource of the Month - AutoCAD Advice January 27, 2008 Copying objects from one drawing to another is a common task. You can use the Windows Clipboard and the drag-and-drop methods. When working with 2 drawings open, choose Window> Tile Vertically (or Horizontally) to view both drawings at the same time. Use the Windows Clipboard to copy objects between drawings Most people know that they can copy objects in a drawing to the Windows Clipboard and then paste those objects in another drawing. But there are a couple of tricks to this process that can make your work go more quickly and provide more accurate results. Of course, you can use the common Windows keyboard shortcuts:
When you use the simple copy-and-paste procedure, you don't have much control over the placement of your object in the second drawing. That's because this process uses the lower-left corner of the extents of the object as the base point, which may not be useful. For example, here you see this process with a circle.
As you can see, the base point isn't on the circle, making it difficult to place the circle accurately. Therefore, AutoCAD provides you with 2 special tools for copying and pasting. The first is Copy with Basepoint. Follow these steps:
Here, the base point was set to the center of the circle.
The 2nd tool is Paste to Original Coordinates. If you have two drawings that are very similar, you can use this feature to place the object at the same coordinates as in the original drawing. Just copy the object(s) to the Clipboard, and activate the 2nd drawing. Then right-click and choose Paste to Original Coordinates.
If those coordinates are not in the current display, do a Zoom Extents to see the pasted object. Use drag-and-drop to copy objects between drawings Drag-and-drop doesn't give you the same control over placement, but it's a quick way to copy objects. Note that AutoCAD automatically copies objects from drawing to drawing, so that you don't need to press Ctrl as you drag. To copy, select the object or objects. Then click the object and hold down the mouse button until you see the drag-and-drop cursor. The only gotcha is that you need to make sure that you don't click on a grip, because that will just make the grip hot.
Then drag the cursor to the other drawing and release the mouse button to place the object. You'll probably need to adjust the placement, using the MOVE command, or by using grip-editing.
January 14, 2008 A DWF file is a vector image format that you can use to share your designs with others, without sending the actual drawing. You might do this to share your designs without revealing the details, or to send them to people without AutoCAD. The recipients use Autodesk Design Review to view the DWF file. Autodesk Design Review is a free download, available from www.autodesk.com/designreview. Follow these steps to create a DWF file:
To view the file, you should be able to double-click it. Autodesk Design Review is installed with AutoCAD automatically. If not, you can find it in your Program Files\Autodesk folder. December 22, 2007 December 2007 Resource of the Month - CCNtv December 16, 2007 Quickly select objects with Quick Select If picking objects and using window selections doesn't always work for you, you may need a more sophisticated option. Quick Select is the next step up. It lets you quickly set up criteria for selecting objects, such as the type of object or object properties. You can get to Quick Select in 4 days:
The Quick Select dialog box appears.
Here's how you use this dialog box: In the Apply To drop-down list, you can apply the selection to the entire drawing (the default) or to a set of selected objects. If you use selected objects, the filter will apply only to those objects. For example, you could use a window to select the upper-left corner of a drawing and then apply a filter to that area. To select objects, click the Select Objects button to the right. In the Object Type drop-down list, choose the type of object that you want to select. You can choose only one type of object. This list contains only objects that exist in the drawing. In the Properties box, choose the properties that you want to find. Again, you can choose only one property. In the Operator box, choose an operator, such as equals, not equals, greater than, etc. The options available depend on the property you chose. For example, if you choose Layer, you don't see the greater than option. But if you choose a circle for the object, and radius for the property, you'll see greater than and less than options. In the Value box, you choose the property's value. For example, if your property is layer, you can choose the layer from the list of layers that exist in your drawing. If your property is radius, for example, you can type a value. See my tip about using Quick Select for selecting blocks. In the How to Apply section, you choose to include the filter in the new selection set (the default, and most common choice), or to exclude the filter, which selects everything except objects that fit the filter. At the bottom, you can also check the Append to Current Selection Set check box. If you already have selected objects and want to add the objects that fit the filter to that selection, check the check box. When you're done, click OK and your objects are selected. If you realize that you need to start a command first (some commands require that you do this), start the command and use the Previous selection option to re-select the objects. Don't forget two Express Tools commands:
Finally, if you need more power, use the FILTER command. It lets you choose more than one object and property type, combine multiple filters, and save filters. December 12, 2007 AU is Autodesk's annual conference and it's huge. There were over 600 classes and labs, so there was something for everyone. More than 10,000 participants, instructors, and Autodesk employees came to the Venetian Hotel in Las Vegas. I had never been to the Venetian; it's an amazing place, complete with an indoor Venetian town, covered with a sky-dome.
You can even take a ride in a gondola.
The General Session (Thanks for Melanie Perry for the 2 photos from the General Session.) Carl Bass discussed four trends:
How Autodesk Software Fits In Maya (3D modeling, animation, effects, and rendering software) was used to design a textured sculpture. The sculpture and other source designers were brought into Revit (architectural design software) to create a model of the building. Robot Millennium (structural engineering software) was used for structural support analysis. The data would be used by the MEP and civil engineering teams to see their design in context. Then they dumped the data into Navisworks (3D design review software) for collision detection. Navisworks was also used to visualize the final project. Then, they used forthcoming software called Newport for design visualization of the building in context. The concept of building in context was key to the entire project Then, they poured everything into another software product that showed everyone a real-time fly-through, from outer space down to the building site. A new product called Metropolis was mentioned for building digital 3D cities. The show flew through a detailed model of what seemed to be Washington, D.C., including going underground to look at utility lines (to highlight another new product, Autodesk Utility Design). Another new product called Mudbox, manipulates models like clay. They showed some new freeform-design features of Revit, and new 3D features in Autodesk Impression, which creates advanced visual styles for architectural models. The Real Stuff I was a lab assistant in a lab on Customizing the User Interface. This photo shows half the lab.
I also taught my own class on visual styles in the AutoCAD 3D PowerTrack series. The official name of the class was “Looking Good with Visual Styles: Creating the Look You Want for Your 3D Models.” The 3D PowerTrack series included classes on 3D visualization and solid primitive conceptual design, sophisticated solid model design, editing 3D solids, creating 2D drawings from 3D solids, rendering, and more. Time to Network I'm the Senior Editor of Inside AutoCAD, a newsletter published by EliResearch. I had lunch with Mike Partenheimer (who writes the Civil Engineering column) and Darren Young (who writes the first AutoCAD article each issue) at Wolfgang Puck's Postrio restaurant at The Venetian.
Later, I met with the architecture writer for Inside AutoCAD, architect Lu Chin.
I also met with two AutoCAD notables that I've been corresponding with for years. Leonid Nemirovsky runs the well-known Better Than Nothing AutoLISP web site and has written and contributed AutoLISP routines for the DVD of my book, AutoCAD 2008 and AutoCAD LT 2008 Bible. I was very glad to meet him for the first time at AU.
Another AutoCAD notable that I met was Melanie Perry. Melanie is active in AUGI, and writes the Mistress of the Dorkness blog, which focuses on AutoCAD and facilities management. Melanie has helped me update chapters of my book, and so I was glad to get to see her in person.
I also met Shaan Hurley at AU. Shaan is Technical Marketing Manager for the Platform Technologies Division which includes AutoCAD. He's also the Worldwide MyFeedback Program Manager for all Autodesk products and betas. Therefore, he's the master of the AutoCAD beta scene. Shaan and I have known each other, mostly through e-mail, but also at various AUs, for several years.
He always has a camera in his hand! Time to Trade Well Worth the Time December 8, 2007 AutoCAD Tutorial: Save and use layer states Layer states let you save configurations of layer properties and states. For example, you might want a layer to be red sometimes, and blue at other times. You may need certain layers to be locked, off, or frozen when you're editing one part of the drawing, but unlocked, on, or thawed when you're editing another part. You could spend lots of time adjusting layer properties, but instead, you can use layer states -- they're much easier and quicker. At Autodesk University, I taught a session on visual styles, which are used in 3D modeling. One problem that comes up with visual styles is that they don't play well with plot styles. That's because they both control how objects look and would interfere with each other. Therefore, when you're using any 3D visual style (anything except 2D Wireframe), plot styles don't work. I realized that layer states would be helpful because people often use plot styles to control colors. (Another useful feature would be layer overrides. For a description of this feature go to the Layers heading in my coverage of AutoCAD 2008 new features.) Create and restore a layer stateFollow these steps to create a layer state:
You can continue to display desired states and save them until you have all the layer states that you need. To restore a layer state, open the Layer States Manager, choose the layer state and click Restore. Share layer statesLayer states are saved in the drawing. To share them among drawings, you need to export them. Each layer state has its own LAS file. To export a layer state, select it in the Layer States Manager, and choose Export. In the Export Layer State dialog box, enter a name, choose a location, and click Save. To import a saved layer state, open the Layer States Manager, and click the Import button. (In AutoCAD 2008, choose Layer States (*.las) from the Files of Type drop-down list.) Choose the LAS file that you want, and click Open. Note: In AutoCAD 2008, you can import layer states from drawings, templates, and standards (DWG) files. Choose the type of file that you want from the Files of Type drop-down list, choose the file that you want, and click Open. The Select Layer States dialog box opens, where you can deselect any states that you don't want to import. Then click OK.
You can save layer states in your templates for maximum ease and to maintain CAD standards. Layer states can be an important method for controlling how your drawings look and speeding up the drawing and editing process.
December 2, 2007 When you place a hatch inside a closed area, by default, the pattern starts at the origin of the drawing, which is usually 0,0 of the current User Coordinate System (UCS). Since your closed area probably doesn't start at 0,0, the hatched area starts somewhere in the middle of the pattern. For simple hatches, such as diagonal lines, that doesn't make any difference. But for some hatch patterns, such as bricks, the result may not look very good.
You can specify the origin of the hatch pattern to get a better-looking result. Follow these steps:
Here's the new result, using the Default to Boundary Extents check box with the Bottom-Left option:
November 30, 2007 New webinar on Wednesday, December 12th! AutoCAD 3D for Newbies: Start Thinking and Drawing in 3D. Get 10% off!
My next webinar will be AutoCAD 3D for Newbies. This hour-long webinar will get you started in 3D. The trend to 3D is strong and growing fast! If you're working only in 2D, learn the techniques you need to know to make the switch. You can get 10% off the already low price by using the following code at the above link: 10%OFFACAD07 November 30, 2007 November Resource of the Month - CADALOT CADALOT is a British site that covers a wide range of CAD-related information. There's a draft document on "How to Draw" that I think is unique, a number of downloads, a good FAQ page, a "Tips 'n' Tricks" page, and more. Some of the AutoCAD content is old, but there is a very new Revit Structure section. You can get a good education here. November 24, 2007 There are various reasons that you might need to create a circular object with a specific width, such as matching cable widths, or showing cross sections. I've come up with 3 ways to go about this. The right one for you will depend on your needs. Fit a polygonAn excellent method uses the POLYGON command and fits it using the PEDIT command: Create a 4-sided polygon, using the POLYGON command.You can circumscribe or inscribe it. At the prompt for the radius, enter the radius of the circle that you want. I used a radius of 4. Of course, this creates a square.
Start the PEDIT command, select the polygon, and use the Fit option. Presto! You have a circle. Then use the Width option and specify the width that you want. (I used 0.25.) The result looks bigger, in this case, but still has a the same radius of 4.
Use a donutThe DONUT command is very old, but can give you the result you want, especially if you know (or want to calculate) the inner and outer diameter. (Try typing doughnut on the command line. It works!) Start the command, and specify the inner and outer diameters. Because I wanted the same result as for the previous method, I used 8 and 8.50. Then specify the center. Press Enter to end the command, because you'll be prompted to place other donuts, and you don't want too much sugar at once. Use a lineweightYou can use the CIRCLE command and give it a lineweight. This method has a few problems:
On the other hand, this may be simple for you. Just draw a circle, select it, and enter the lineweight in the Properties palette (Ctrl+1). November 17, 2007 AutoCAD tutorial: Replace one block with another block I received a question about how to replace one block with another block. Replacing blocks is useful for 3 reasons:
There are two methods to replace one block with another. Use Express Tools BLOCKREPLACE This Express Tool lets you replace one block with another globally in a drawing. Follow these steps:
Use the -INSERT command This older method allows you to replace a block in your drawing with a file. If necessary, first use the WBLOCK command to export the new block to a file. Follow these steps:
square plate=c:\drawings\plate
Here, I replaced the square plate block with the plate block, which was in plate.dwg. Before the replacement:
After the replacement:
November 3, 2007 Use the Dashboard to display a related tool palette
The Dashboard has a little-known feature that lets you quickly display an associated tool palette. This tip works in both AutoCAD 2007 and 2008. Each control panel (section) in the Dashboard has an icon at its upper-left corner. One feature of the icon is that it expands and collapses those control panels that are expandable. When you expand a control panel, you see additional tools. When you pass the cursor over the control panel, you also see a double-down arrow at the lower-left corner, which accomplishes the same task. However, clicking the icon does something else; if the Tool Palette window is open, it displays a related tool palette (a tab of the window), if there is one.
In cases where there is a tool palette group defined, you'll get the last-used tab of that group. For example, there is a 3D Make group that has Modeling, Draw, and Modify tabs. When you click the 3D Make control panel, you see the last of those 3 tabs that you displayed. Remember that the Tool Palette window must be open for this technique to work. Here's a list of the control panels and which tool palette or group they open: 2D Workspace
3D Workspace
Thanks to Shekhar Khedekar and Alex Bicalho of Autodesk for some of the information in this tip.
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
Home | AutoCAD | PowerPoint | E-Store
| About | Links | Contact | Site Map
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||