- •Contents
- •Contents at a Glance
- •Acknowledgments
- •Preface
- •Is This Book for You?
- •How This Book Is Organized
- •How to Use This Book
- •Doing the Exercises
- •Conventions Used in This Book
- •What the Icons Mean
- •About the CD-ROM
- •Other Information
- •Contacting the Author
- •Foreword
- •Credits
- •About the Author
- •Summary
- •AutoCAD’s Advantages
- •Comparing AutoCAD and AutoCAD LT
- •Starting AutoCAD and AutoCAD LT
- •Creating a New Drawing
- •Using the AutoCAD and AutoCAD LT Interface
- •Creating a New Folder
- •Using the Interface
- •Saving a Drawing
- •Closing a Drawing and Exiting from AutoCAD and AutoCAD LT
- •Summary
- •Creating a New Drawing from a Template
- •Working with Templates
- •Opening a Drawing with Default Settings
- •Opening an Existing Drawing
- •Using an Existing Drawing as a Prototype
- •Saving a Drawing Under a New Name
- •Summary
- •The Command Line and Dynamic Input
- •Command Techniques
- •Of Mice and Pucks
- •Getting Help
- •Summary
- •Typing Coordinates
- •Displaying Coordinates
- •Picking Coordinates on the Screen
- •Overriding Coordinate Settings
- •Locating Points
- •Summary
- •Choosing Unit Types
- •Drawing Limits
- •Understanding Scales
- •Creating a Title Block
- •Specifying Common Setup Options
- •Customizing with the MVSETUP Command
- •Using the Setup Wizards
- •Summary
- •Using the LINE Command
- •Drawing Rectangles
- •Drawing Polygons
- •Creating Construction Lines
- •Creating Rays
- •Summary
- •Drawing Circles
- •Drawing Arcs
- •Creating Ellipses and Elliptical Arcs
- •Making Donuts
- •Placing Points
- •Summary
- •Panning
- •Using the ZOOM Command
- •Using Aerial View
- •Saving Named Views
- •Working with Tiled Viewports
- •Using Snap Rotation
- •Understanding User Coordinate Systems
- •Creating Isometric Drawings
- •Summary
- •Editing a Drawing
- •Selecting Objects
- •Summary
- •Copying and Moving Objects
- •Resizing Commands
- •Using Construction Commands
- •Creating a Revision Cloud
- •Hiding Objects with a Wipeout
- •Double-Clicking to Edit Objects
- •Grips
- •Editing with the Properties Palette
- •Selection Filters
- •Groups
- •Summary
- •Working with Layers
- •Changing Object Color, Linetype, and Lineweight
- •Working with Linetype Scales
- •Importing Layers and Linetypes from Other Drawings
- •Matching Properties
- •Summary
- •Drawing-Level Information
- •Object-Level Information
- •Measurement Commands
- •AutoCAD’s Calculator
- •Summary
- •Creating Single-Line Text
- •Understanding Text Styles
- •Creating Multiline Text
- •Creating Tables
- •Inserting Fields
- •Managing Text
- •Finding Text in Your Drawing
- •Checking Your Spelling
- •Customizing the spelling dictionary
- •Summary
- •Working with Dimensions
- •Drawing Linear Dimensions
- •Drawing Aligned Dimensions
- •Creating Baseline and Continued Dimensions
- •Dimensioning Arcs and Circles
- •Dimensioning Angles
- •Creating Ordinate Dimensions
- •Drawing Leaders
- •Using Quick Dimension
- •Editing Dimensions
- •Summary
- •Understanding Dimension Styles
- •Defining a New Dimension Style
- •Changing Dimension Styles
- •Creating Geometric Tolerances
- •Summary
- •Creating and Editing Polylines
- •Drawing and Editing Splines
- •Creating Regions
- •Creating Boundaries
- •Creating Hatches
- •Creating and Editing Multilines
- •Creating Dlines
- •Using the SKETCH Command
- •Digitizing Drawings with the TABLET Command
- •Summary
- •Preparing a Drawing for Plotting or Printing
- •Creating a Layout in Paper Space
- •Working with Plot Styles
- •Plotting a Drawing
- •Summary
- •Combining Objects into Blocks
- •Inserting Blocks and Files into Drawings
- •Managing Blocks
- •Creating and Using Dynamic Blocks
- •Using Windows Features
- •Working with Attributes
- •Summary
- •Understanding External References
- •Editing an Xref within Your Drawing
- •Controlling Xref Display
- •Managing Xrefs
- •Summary
- •Preparing for Database Connectivity
- •Connecting to Your Database
- •Linking Data to Drawing Objects
- •Creating Labels
- •Querying with the Query Editor
- •Working with Query Files
- •Summary
- •Working with 3D Coordinates
- •Using Elevation and Thickness
- •Working with the User Coordinate System
- •Summary
- •Working with the Standard Viewpoints
- •Using DDVPOINT
- •Working with the Tripod and Compass
- •Displaying a Quick Plan View
- •Shading Your Drawing
- •Using 3D Orbit
- •Using Tiled Viewports
- •Defining a Perspective View
- •Laying Out 3D Drawings
- •Summary
- •Drawing Surfaces with 3DFACE
- •Drawing Surfaces with PFACE
- •Creating Polygon Meshes with 3DMESH
- •Drawing Standard 3D Shapes
- •Drawing a Revolved Surface
- •Drawing an Extruded Surface
- •Drawing Ruled Surfaces
- •Drawing Edge Surfaces
- •Summary
- •Drawing Standard Shapes
- •Creating Extruded Solids
- •Drawing Revolved Solids
- •Creating Complex Solids
- •Sectioning and Slicing Solids
- •Using Editing Commands in 3D
- •Editing Solids
- •Listing Solid Properties
- •Summary
- •Understanding Rendering
- •Creating Lights
- •Creating Scenes
- •Working with Materials
- •Using Backgrounds
- •Doing the Final Render
- •Summary
- •Accessing Drawing Components with the DesignCenter
- •Accessing Drawing Content with Tool Palettes
- •Setting Standards for Drawings
- •Organizing Your Drawings
- •Working with Sheet Sets
- •Maintaining Security
- •Keeping Track of Referenced Files
- •Handling Errors and Crashes
- •Managing Drawings from Prior Releases
- •Summary
- •Importing and Exporting Other File Formats
- •Working with Raster Images
- •Pasting, Linking, and Embedding Objects
- •Summary
- •Sending Drawings
- •Opening Drawings from the Web
- •Creating Object Hyperlinks
- •Publishing Drawings
- •Summary
- •Working with Customizable Files
- •Creating Keyboard Shortcuts for Commands
- •Customizing Toolbars
- •Customizing Tool Palettes
- •Summary
- •Creating Macros with Script Files
- •Creating Slide Shows
- •Creating Slide Libraries
- •Summary
- •Creating Linetypes
- •Creating Hatch Patterns
- •Summary
- •Creating Shapes
- •Creating Fonts
- •Summary
- •Working with the Customization File
- •Customizing a Menu
- •Summary
- •Introducing Visual LISP
- •Getting Help in Visual LISP
- •Working with AutoLISP Expressions
- •Using AutoLISP on the Command Line
- •Creating AutoLISP Files
- •Summary
- •Creating Variables
- •Working with AutoCAD Commands
- •Working with Lists
- •Setting Conditions
- •Managing Drawing Objects
- •Getting Input from the User
- •Putting on the Finishing Touches
- •Summary
- •Understanding Local and Global Variables
- •Working with Visual LISP ActiveX Functions
- •Debugging Code
- •Summary
- •Starting to Work with VBA
- •Writing VBA Code
- •Getting User Input
- •Creating Dialog Boxes
- •Modifying Objects
- •Debugging and Trapping Errors
- •Moving to Advanced Programming
- •Summary
- •A Final Word
- •Installing AutoCAD and AutoCAD LT
- •Configuring and Using Workspaces
- •Configuring AutoCAD
- •Starting AutoCAD Your Way
- •Configuring a Plotter
- •Discovering AutoCAD and AutoCAD LT
- •Accessing Technical Support
- •Autodesk User Groups
- •Internet Resources
- •System Requirements
- •Using the CD-ROM with Microsoft Windows
- •What’s on the CD-ROM
- •Troubleshooting
- •Index
922 Part V Organizing and Managing Drawings
1
3
2
4
Figure 28-6: The base assembly frame.
Thanks to Robert Mack of the Dexter Company, Fairfield, Iowa, for this drawing.
7.Pass the cursor over all four objects to check the hyperlinks.
8.Save your drawing. Keep it open if you’re going on to the next exercise.
The Express Tools contain three commands to help you find and change URLs that you create with hyperlinks. SHOWURLS (choose Express Web Tools Show URLs) lists all of the hyperlinks in your drawing, can show you the objects to which they are linked, and enables you to edit them. CHURLS (choose Express Web Tools Change URLs) prompts you to select a hyperlinked object so that you can change the hyperlink. REPURLS (choose Express Web Tools Find and Replace URLs) replaces the existing hyperlink URL of a selected hyperlinked object.
Publishing Drawings
You can save drawings as DWF (Design Web Format) files. You can use DWF files as a way to deliver files to clients and colleagues. If you place a DWF drawing on a Web site, others can view the drawing in their browser. They can also zoom, pan, and print the drawing. You can place hyperlinks in your drawing so that viewers can jump to supporting data, to other DWF drawings, or to other Web sites.
New |
AutoCAD 2006 introduces 3D DWFs. These DWF files are similar to 2D DWFs, but they have |
Feature |
some limitations. For example, they can have only one sheet. The new version of the |
|
|
|
Autodesk DWF Viewer can display 3D DWFs and includes a 3D Orbit viewing option. |
Chapter 28 Getting on the Internet 923
Understanding DWF files
DWF files are an image format for drawings. Originally meant for displaying drawings on the Web, they’re now used for any situation where you don’t want to send the actual DWG file. The 2D DWF format allows for multiple pages. You can include as many drawings as you want, plus as many layouts as you’ve created for each drawing.
The DWF format has several advantages:
It is a vector format. Viewers can zoom in closely and see the details clearly.
2D DWF files are 2D representations, similar to a plot. The actual objects are not available to the viewer. They cannot edit the drawing or access object information such as layers, object coordinates, and so on. This feature maintains security for the creator of the drawing.
DWF files are compressed while being transmitted. Their small size reduces the time it takes to download and view them.
The Autodesk DWF Viewer enables people without AutoCAD or AutoCAD LT to view your drawings. You can also post DWF drawings on a Web site.
Some drawing information is available. For example, viewers can zoom to named views. If you choose, they can also turn layers on and off. New for AutoCAD 2006 is the inclusion of block properties and attributes, as well as sheet set information.
2D DWF files support URL links to other drawings, data, or files. You can provide the viewer with supporting schedules, and so on. (3D DWFs don’t support hyperlinks.)
Creating 2D DWF files
To create a 2D DWF file for a set of drawings, you use the PUBLISH command to do the following:
Create the drawing set; that is, the list of drawings and layouts to include in the DWF file
Specify a Page Setup for each drawing
Save the list of drawings or load an existing list
The PUBLISH command creates the multipage DWF format. The PUBLISHTOWEB command, which creates DWF files (but can also create JPEG or PNG files), is different — it uses a wizard and a template to format a Web page containing images of your drawings. The PUBLISHTOWEB command is covered later in this chapter. Before using the PUBLISH command, save your drawing.
Starting the PUBLISH command
Start the PUBLISH command by choosing Publish on the Standard toolbar. The Publish dialog box opens, as shown in Figure 28-7, after clicking the Show Details button. You
see the model and layout tabs of the current drawing displayed.
924 Part V Organizing and Managing Drawings
Figure 28-7: The PUBLISH command opens the Publish Drawing Sheets dialog box, listing the model and layout tabs of the current drawing.
Adding drawings to the drawing list
The next step is to add any other drawings and layouts that you want to include in the drawing list. The PUBLISH command streamlines the process of defining scale and plot area for each drawing by using the page-setup information defined with the layouts. Because layouts include this information, you can quickly create drawing sets for many drawings without individually deciding how to plot each drawing. You can specify a saved page setup for individual drawings for more control. (For more information on page setups and layouts, see Chapter 18.)
You can add new drawings and layouts to the drawing list using any of the following methods:
Drag drawings directly from Windows Explorer. You can add large numbers of drawings this way — in any folder, click the first drawing, press Shift, and click the last drawing.
Click Add Sheets and choose drawings from the Select Drawings dialog box.
Click Load Sheet List and choose a saved drawing list.
You can save any drawing list and use it again later. To save a drawing list, click Save Sheet List. The Save List As dialog box opens. Change the name if you want, choose a location, and click Save. Drawing lists have a .dsd extension. (DSD stands for Drawing Set
Description.)
Tip |
You can use the +PUBLISH command, a variant of the PUBLISH command that lets you start |
|
with a saved DSD file instead of with the current drawing. The Select List of Sheets dialog box |
|
opens. Choose a DSD file and click Select. You can use the –PUBLISH command with a saved |
|
DSD file to publish DWF files from a script file. In the script file, set the FILEDIA system variable |
|
to 0 to suppress the display of the Select List of Sheets dialog box. You’re then prompted for the |
|
DSD file. The process automatically generates a log file (with the name of the drawing list and |
|
an extension of .csv) that you can look at in case there are errors. |
Chapter 28 Getting on the Internet 925
Removing model space or layout tabs from the drawing list
By default, the model tab and layouts tabs for each drawing are all included in the drawing list. If you don’t want to see the model tab for drawings, uncheck the Model tab check box in the Publish dialog box. Likewise, you can uncheck the Layout Tabs check box. After you change this setting, new drawings that you add to the drawing set will not include the tab that you unchecked.
Editing the drawing list
After you have the drawings and layouts that you want, you can modify the list in several ways:
Change the sheet name: The sheet names are generated automatically from the drawing and layout names, but you might want to use a different name. Click the drawing’s row and then click the sheet name one time. Enter a new name.
Tip |
If you aren’t in the habit of renaming your layout tabs, you might find that your sheet names |
|
are rather unhelpful. Handwheel-Layout1 doesn’t explain very much. To rename a layout |
|
tab, right-click it and choose Rename. In the Rename Layout dialog box, enter a new name and |
|
click OK. |
Page setup: If you’ve specified a page setup, you can assign it to any drawing. (You can apply model page setups to model listings and layout page setups to layout listings.) Click the drawing’s page setup and then click the down arrow that appears. From the drop-down list, you can choose a page setup from the drawing or import a page setup.
Change drawing order: The drawing order defines how the drawings in the DWF file will be listed in the viewer. Choose a drawing and use the Move Sheet Up and Move Sheet Down buttons.
Remove drawings: To remove one or more items from the list, select them and click Remove Sheets.
Defining the output
Your list is done. Now you decide on the output. From the Publish To section of the Publish dialog box, you can choose two types of output:
DWF File: When you want to create a DWF file for viewing, choose this option. By default, the name of the file is the same as the name of the drawing (and in the same location), but with a .dwf extension. To password-protect the DWF file, enter a password. Don’t forget this password!
Plotters Named in Page Setup: Choose this option to plot all of the layouts in the list. This is essentially a batch plot. Each item in the drawing set is plotted to the plotter named in its page setup, including the default page setup. The folder setting is used if you’ve saved a plotter configuration file that plots drawings to a file.
The AutoCAD LT Publish dialog box does not contain the option to publish to a plotter. You can only create DWF files with the PUBLISH command in AutoCAD LT.
Caution |
Note that plotting, or your last setting, is the default option. Be careful, or you may end up |
|
plotting when you want to publish. |
926 Part V Organizing and Managing Drawings
Setting publish options
Click the Publish Options button to open the Publish Options dialog box, where you can specify how the DWF file will be published. You can do the following:
Specify the location of the DWF file.
Choose the type of DWF file — single-sheet or multi-sheet. You would use a single-sheet format for people using an older viewer that doesn’t support the multi-sheet format.
Specify the DWF file name now, or ask to be prompted when you click the Publish button.
Create a password.
Include layer information. If you include layer information, the viewer can turn layers on or off.
Include block information, including a template file for extracting attributes. (See Chapter 18 for more about block template files.)
Include sheet set and sheet information if you are publishing a sheet set.
Publishing
When you’ve created your drawing list and defined your output, you’re ready to publish. Click the Publish button. You see a message asking whether you want to save the list of sheets. Choose Yes or No. When the publishing process is completed, you see the Plot and Publish Complete notification bubble at the lower-right corner of your screen. (I explain this bubble in Chapter 17.)
You can customize several settings for DWF files, such as the resolution and background color (for example black or white). You can also create your own ePlot plotting configuration file. For more information, see the “Customizing DWF Settings” sidebar.
Creating DWF files from other applications
You can create a DWF file from a Microsoft Word document, an Excel spreadsheet, or any other Windows application using the DWF Writer. You can download the DWF Writer for free from www.autodesk.com/dwfwriter. The DWF Writer works as a printer driver. For example, in Microsoft Word, choose File Print and choose Autodesk DWF Writer from the Printer Name drop-down list. Then click OK to create a DWF file from your current document. You can view this document in the DWF Viewer, as I explain in the section “Viewing DWF drawings” later in this chapter.
On the |
The drawing used in the following exercise on creating a 2D DWF File, ab28-01.dwg, is in |
CD-ROM |
the Results folder on the CD-ROM. If you did the previous exercise, you also have this file |
|
in your AutoCAD Bible folder. |
STEPS: Creating a 2D DWF File
1.If you did the previous exercise, use ab28-01.dwg. If not, open it from the Results folder on the CD-ROM and save it to your AutoCAD Bible folder.
2.Choose Publish from the Standard toolbar.
3.Choose ab28-01-Model and click Remove Sheets.
4.In the Publish To section, make sure the DWF File is selected. Click Publish to create the DWF file.
5.A Save Sheet List dialog box opens and asks whether you want to save the current list of sheets. Click No. If you’re continuing on to the next exercise, keep this drawing open.
Chapter 28 Getting on the Internet 927
Customizing DWF Settings
You can modify the PC3 file that defines the DWF file to specify certain settings that you might want, including compression, resolution, and whether to include layer information. The new DWF file format follows the specification of the DWF6 ePlot.pc3 file. For safety, it’s good to make a backup of the PC3 file before modifying it. To find the PC3 file, choose File Plotter Manager. Double-click DWF6 ePlot.pc3. Right-click the file and choose Copy. Right-click in the file listing and choose Paste. Rename the copy (perhaps DWF6 ePlot-original.pc3). If you don’t like the results of your editing, delete the DWF6 ePlot.pc3 file and remove -original from the name of the copy.
To modify the PC3 file, follow these steps:
1.Choose File Plotter Manager.
2.Double-click DWF6 ePlot.pc3.
3.Click the Device and Document Settings tab and choose Custom Properties. In the middle of the dialog box, click the Custom Properties button to open the DWF6 ePlot Properties dialog box.
You can specify the following settings:
Resolution (dpi): Defines the resolution for vector, gradient, and raster (bitmap) graphics. Of course, a higher resolution results in a larger file size. You can choose from the dropdown lists or choose Custom and enter a custom resolution. For plotting, you can use a resolution that matches the output of your plotter or printer. Use high resolutions for viewing highly detailed drawings.
Continued
928 Part V Organizing and Managing Drawings
Continued
Font Handling: Specifies how many fonts can be included in the file. Use this setting to reduce file size by limiting the number of possible fonts.
•Use the Capture None setting if you’re sure that the viewer’s computer has all of the fonts that the DWF file needs to display.
•Use the Capture Some setting to specify which fonts the DWF file includes. Then click Edit Font List and deselect all of the fonts that you don’t need. The fonts that are still selected will display properly, even if they aren’t on the viewer’s computer.
•Use the Capture All setting if you want to include all fonts from the drawing in the DWF file. When you choose this option, the As Geometry option becomes available. This includes fonts as geometry (objects) in your drawing and requires plotting the drawing at 1:1 or better to achieve good-quality output.
DWF Format: Specifies the compression format. Compressed binary is the recommended format and the default. The Zipped ASCII Encoded 2D Stream (advanced) option is an ASCII (text) format that can be uncompressed using WinZip or a similar program.
Background Color Shown in Viewer: Specifies the background color shown in the viewer. Click the Color drop-down list. If you change the background from black to white, make sure that the objects are still easily visible. (Yellow doesn’t show up very well on white.) If viewers will be plotting from Autodesk DWF Viewer, change the background color to white, or their plots will print out with a black background! If the background color is set to black, color 7 objects are plotted in white. For all other background colors, color 7 objects are plotted in black.
Virtual Pen Set Patterns: If, and only if, in the Plotter Configuration File dialog box, for Vector Graphics, you chose 255 Virtual Pens in the Color Depth drop-down list, you’ll see an option to edit virtual pen-set patterns. You can set the color, width, and other properties of virtual pens.
Include Layer Information: Includes layer information so that viewers can turn layers on and off. This option is off by default. You can set this option in the Publish Options dialog box, as explained earlier in this section.
Show Paper Boundaries: This displays a paper boundary such as the one you see on a layout tab. It’s on by default and not editable.
Save Preview in DWF: This option is only for viewing the DWF on Buzzsaw.com; a small preview is always saved with the DWF file.
When you finish specifying the DWF format, click OK. You then see a message asking whether you want to apply the changes for the current plot only (which creates an override of the configuration file but doesn’t change it), or to save the changes to the file (which changes the configuration file, although you can always change it back).
Creating 3D DWF files
You use the new 3DDWFPUBLISH command to create 3D DWF files. The 3D DWF Publish dialog box opens, as shown in Figure 28-8.
Chapter 28 Getting on the Internet 929
Figure 28-8: The new 3D DWF Publish dialog box creates 3D DWF files.
Choose whether you want to publish all objects or just selected objects, and how you want to organize objects in the drawing. Then click OK to create the DWF file. A message appears asking whether you want to view the file. Click Yes to open the Autodesk DWF Viewer.
The new 3D DWF files (for AutoCAD only) are similar to 2D DWF files, with the following major differences:
Images and other inserted (OLE) objects do not display
Hyperlinks are not supported
All text fonts are converted to Arial
Using the Publish to Web Wizard
The Publish to Web feature creates HTML pages that display your drawings in DWF, JPEG, or PNG format. Through the use of templates, you can upload drawings without getting involved in Web-design issues.
To publish drawings to the Web, first prepare your drawings and decide how many you want to publish. Then follow these steps:
1.Choose File Publish to Web to open the Begin page of the Publish to Web Wizard.
2.Choose to create a new Web page or edit an existing one. Then click Next.
3.On the Create Web Page screen, shown in Figure 28-9, type a file name for the Web page. (This action creates a folder with this name and places all of the files for the Web page in the folder.) Then click the Ellipsis button (. . .) to navigate to where you want to create this file. If you already store Web page files on your system, you can use the same location.
Finally, add a description that will appear on the Web page. Click Next.
930 Part V Organizing and Managing Drawings
Figure 28-9: On the Create Web Page screen, specify where you want to create your Web page on your own computer system, and create a description of the page.
4.On the Select Image Type screen, choose the type of image that you want to create, whether DWF, JPEG, or PNG. As you choose each type from the drop-down list, a description appears on the screen. For JPEG and PNG, also click the image size that will appear on the Web page. Click Next.
5.On the Select Template screen, choose a template that structures your Web page, and click Next. You have four choices:
•Array of Thumbnails: Creates a set of thumbnail images. Clicking any image displays a larger image.
•Array plus Summary: Creates a set of thumbnail images. Adds information from the Summary tab of the Drawing Properties dialog box, displayed when the mouse cursor is over a thumbnail. (Choose File Drawing Properties to create summary information.)
•List of Drawings: Creates a list of drawings and a frame displaying a drawing image. Users select a drawing from the list to update the image in the frame.
•List plus Summary: Creates a list of drawings, an image frame, and summary information from the Summary tab of the Drawing Properties dialog box, displayed when the mouse cursor is over a thumbnail. (Choose File Drawing Properties to create summary information.)
6.On the Apply Theme screen, choose one of the preset themes that control colors and fonts on your Web page. You see an example in the preview pane. Click Next.
7.On the Enable i-drop screen, choose whether you want to create an i-drop Web page so that users can drag actual drawings from the Web page into a drawing. Click Next.
8.On the Select Drawings screen, shown in Figure 28-10, choose the drawings that you want to publish. If the drawing is open, you can select it from the Drawing drop-down list. Select each drawing, choose a layout (or model) from the Layout drop-down list, type a label, and type a description to appear on the Web page. Then click Add. (If the drawing is not open, click the ellipsis button, navigate to the drawing, and click Open. Enter a label and description and then click Add.) Click Next.
Chapter 28 Getting on the Internet 931
9.On the Generate Images screen, choose to regenerate either all images or only those that have changes. (There is no difference if you’re creating a new Web page.) Click Next and wait for the plotting process to complete.
Figure 28-10: On the Select Drawings screen, add each drawing that you want to include on the Web page, and specify a layout, label, and description for each.
10.On the Preview and Post screen, click Preview to preview what the Web page will look like. Your Web browser opens and displays a fully functional Web page, including links, if any. Figure 28-11 shows an example.
Figure 28-11: A preview of some drawings using the Array of Thumbnails template and DWF files. You can click on any thumbnail to see the full-size DWF file. Note the i-drop icons.
932 Part V Organizing and Managing Drawings
11.Click Post to post your new Web page. The Posting Web dialog box opens, which is like the Save As dialog box. In the Save In drop-down list, choose the desired location. To use FTP to post directly to a server, choose FTP locations or choose FTP from the Places list. (If you’re saving to an intranet, you’ll choose a location designated by your network administrator.) Double-click the FTP location and wait until you see the folder structure of your Web site. If you want, double-click one of the folders to save there. (The Publish to Web process creates a number of files. You probably don’t want them all in the root of your Web site.) Click Save. You should see a File Upload dialog box showing the progress of the file transfer. If everything goes well, you’ll see the success message shown in Figure 28-12.
Note |
Remember to also upload any files that you have hyperlinked to in your drawing. |
Figure 28-12: Success with the file transfer!
12.If you want, click Send Email to notify people of the URL to the new Web page.
13.To find your new page, look for a file named acwebpublish.htm.
You can always upload the files by yourself, using your own FTP program or whatever other means you usually use to post to the Web site.
Posting DWF files directly
You don’t need to use the Publish to Web Wizard to place DWF files on a Web site. You can upload 2D and 3D DWF files directly, and give people the URL or place a link to them on another page.
Editing Web pages
You can edit your Web page — for example, you can delete existing drawings and add new ones. Start the Publish to Web command and choose Edit Existing Web Page on the first screen. Click Next and choose the Web page that you want to edit by choosing a PTW (Publish to Web) file. Click Next again. From this point on, you can change any existing information.
On the Select Drawings screen, click Update to update a drawing that has changed since the last time that you created the Web page. Click Remove to remove a drawing. To add a new drawing, follow the same procedures described in the previous section.
To change the order of the drawings, select a drawing from the list and click Move Up or Move Down until you have the results that you want. Continue through the wizard and re-post your drawings.
Chapter 28 Getting on the Internet 933
Viewing DWF drawings
The final step is to view the drawings. If you use the Publish to Web Wizard to create JPEG or PNG drawings, you simply view them like any other image. However, DWF drawings, whether viewed locally on a computer or from a Web site, can be panned and zoomed and offer other viewing options as well. To view a DWF drawing, you need a special program called Autodesk DWF Viewer. Autodesk DWF Viewer is free and comes with AutoCAD or AutoCAD LT. It is also available as a free download from the Autodesk Web site at www. autodesk.com/expressviewer. Autodesk DWF Viewer replaces Volo View Express and Autodesk Express Viewer, which were used with earlier versions of DWF files.
Autodesk DWF Viewer can function in two ways:
As a stand-alone reader, it opens like any other program. (You can usually find it by choosing Start [All] Programs Autodesk Autodesk DWF Viewer.) Choose File Open to open a DWF file. You can also double-click the DWF file in Windows Explorer. Use the reader in this way to view DWF files without using AutoCAD or AutoCAD LT.
As an ActiveX component, Autodesk DWF Viewer functions within Microsoft Internet Explorer, as shown in Figure 28-13. Use the reader within Internet Explorer when you’ve posted DWF files on a Web site. When you enter the URL in the browser, the DWF file appears. (The ActiveX doesn’t work in the Firefox Web browser.)
Figure 28-13: You can use the Autodesk DWF Viewer in Internet Explorer.
934 Part V Organizing and Managing Drawings
If you send DWF files to clients or colleagues, you can send them the Install file for Autodesk DWF Viewer as well. This file is about 6MB, so including the file in an e-mail or as a download on a Web page is not difficult.
If you’ve given a DWF file a password, a dialog box opens, requesting the password before the DWF file is displayed.
Using view options
To view any sheet in the DWF file, choose it from the list at the left, or use the Next and Previous buttons on the viewer’s toolbar. Choose View Views to display any named views that were saved with the drawing. You can use saved views to help a customer focus on certain details and provide information about the views that you saved.
By default, layer information is not included in the DWF format. As explained earlier in this chapter, you can include layer information if you want. If the DWF file includes layer information, viewers can choose View Layers to open the Layers window, where they can choose any layer and click the Off or On button to turn that layer off or on.
Viewers have complete freedom to pan and zoom however they want. Note that if you’re sending a DWF file to a client who doesn’t use AutoCAD or AutoCAD LT, the controls may not be obvious. The controls are as follows:
Fit to Window is equivalent to a Zoom Extents. The button looks like the Zoom Extents button.
Zoom Rectangle does a Zoom Window.
For 3D DWFs only, the Orbit option functions somewhat like the 3D Orbit feature. (See Chapter 22 for an explanation of 3D Orbit.) Drag to tumble the model in any direction, as shown in Figure 28-14. Press Ctrl as you drag to constrain the tumbling to the vertical direction. Press Shift as you drag to tumble only horizontally. Press Ctrl and Shift together as you drag to constrain the view to rolling.
Tip |
The Orbit option works better if you first use the Zoom Rectangle option. |
Zoom enables you to zoom. Drag up to zoom in, and drag down to zoom out.
Pan enables you to pan. Drag in any direction to pan in that direction.
A mouse with an IntelliMouse wheel works just as it would in AutoCAD or AutoCAD LT. Zoom in by scrolling forward, and zoom out by scrolling backward. Press the wheel and drag to pan.
If the DWF file has hyperlinks, when your cursor passes over a URL area, a tooltip appears telling you to Ctrl+click to follow the link, as shown in Figure 28-15.
Chapter 28 Getting on the Internet 935
Figure 28-14: You can use the Orbit option to tumble a 3D DWF in any direction.
Figure 28-15: Passing over a URL in a DWF file.
936 Part V Organizing and Managing Drawings
Printing and plotting
You can print/plot drawings from Autodesk DWF Viewer. The print options are somewhat like those in Microsoft Word because they take into account the fact that the DWF file can have many pages. Click the Print button to open the Print dialog box, as shown in Figure 28-16.
Figure 28-16: The Print dialog box helps you to print or plot drawings from Autodesk DWF Viewer.
The Print dialog box offers the following features:
Printer: In the Printer section, choose the printer or plotter that you want to use. Click Properties to specify how the printer/plotter functions. The features depend on the device that you choose.
Paper Size, Number of Copies, and Orientation: Choose the page size from the dropdown list, and choose Portrait or Landscape. The paper sizes that are available vary, depending on your printer or plotter. Choose the number of copies that you want to print. You can reverse their order so that you don’t have to shuffle through all of the pages yourself, and collate them. (Remember that 3D DWF files can only have one page.)
Print What: In the Print what section, you can choose to print the full page or the current view. Check the Force drawing geometry to black check box to print in black only. This feature doesn’t affect the color of raster images.
Chapter 28 Getting on the Internet 937
Reduce/&Enlarge: Select the Fit to Page option to scale the drawing to the chosen paper size. To scale the drawing, deselect the Fit to page option and enter a scale percentage. If the drawing will be larger than the paper, you can check Show Tiles in Page View to display dashed lines that indicate how the drawing will be divided up into sheets of paper.
Print Range: You can print the current page or all of the pages, or you can specify which pages you want to print.
Tip |
On the toolbar’s drop-down list of sheets in the drawing set, each layout is numbered. You |
|
can use these numbers to specify which pages you want to print. |
There is no print preview.
Click OK to print. If you choose a size that doesn’t fit on one sheet of paper, you see a message saying that the drawing may print across several pages.
Using DWF Composer and the Markup Manager
DWF Composer is a stand-alone program that enables you to mark up DWF files. The idea is to send out DWF files for review and have the reviewers mark comments and changes on the DWF (electronically, of course). In addition to marking up a DWF file, reviewers can navigate through sheet sets, measure lengths and areas, reorganize the sheets in a sheet set, and track changes. Back in AutoCAD, you use the Markup Manager (choose Markup Manager on the Standard toolbar or press Ctrl-7) to open the marked-up DWF. You can then incorporate these changes back into the original DWG file.
You can also incorporate multiple DWF files into one multi-page DWF file using DWF Composer. If you create DWF files from word-processing or spreadsheet files using DWF Writer (see “Creating DWF files from other applications” earlier in this chapter), you can include these files with your drawings in one DWF file.
You need to purchase DWF Composer separately. For more information, go to www.autodesk. com/dwfcomposer.
In the following exercise, I use the capability of Internet browsers to browse your hard drive as well as the Internet. This enables you to complete the exercise, even if you don’t have an Internet connection available. You need only the files on this book’s CD-ROM, Internet Explorer, and Autodesk DWF Viewer.
On the |
The files used in the following exercise on viewing a DWF drawing, Results\ab28-01.dwf, |
CD-ROM |
Drawings\ab28-a.txt, and Drawings\ab28-b.dwf, are on the CD-ROM. If you didn’t do |
|
the previous exercise, copy all three files from the CD-ROM to your AutoCAD Bible folder. |
STEPS: Viewing a DWF Drawing
1.Open Windows Explorer and navigate to ab28-01.dwf in your AutoCAD Bible folder. Double-click the file to open it in Autodesk DWF Viewer.
Note |
If the DWF file were on a Web site, you would view it by typing the URL in Internet Explorer. |
938 Part V Organizing and Managing Drawings
2.Autodesk DWF Viewer opens automatically and displays the DWF file that was created in the previous exercise. From the List tab in the left pane of the Autodesk DWF Viewer, choose the second sheet, labeled (2)ab28-01-Iso (11x8.5 in), as shown in
Figure 28-17.
1
2
Figure 28-17: The DWF file as seen in Autodesk
DWF Viewer.
3.Press Ctrl and click 1 in Figure 28-17. The text shown in Figure 28-18 opens in a new Internet Explorer window. (You may have to minimize Autodesk DWF Viewer to see the text.) This comes from an Excel spreadsheet saved in text format.
4.Right-click in the drawing to open the shortcut menu. Choose Zoom Rectangle. Drag a window to zoom in. Choose Pan from the menu, and pan to the left. Choose Fit in Window to return to the previous view. (If you want, choose Print to print the drawing to the system printer.)
5.Press Ctrl and click 2 in Figure 28-17. You see the horizontal angle in a new Internet Explorer window.
6.Close Autodesk DWF Viewer, as well as the Internet Explorer windows.
