Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Книги_AutoCad_2 / AutoCAD 2006 and AutoCAD LT 2006 Bible_2004г__.pdf
Скачиваний:
142
Добавлен:
09.04.2015
Размер:
17.83 Mб
Скачать

640 Part III Working with Data

Figure 20-23: Use the Link Select dialog box to create combined selection sets of objects from queries and/or direct selection in your drawing.

3.Click Execute to add the query or selection of objects in your drawing to the Link Select operation.

4.Create a second selection set using the same process.

5.From the Do drop-down list, choose one of the logical operators. You now have one selection set from the combined selection sets that you specified.

6.If you want, you can now create an additional selection set and use an operator to combine it with the previous selection set created in Step 5.

7.Choose Finish to complete the process.

Working with Query Files

If you use queries a lot, you want to keep track of them. You can store, edit, rename, and delete queries. You can also import and export them for use by others. You do this by saving the information in a query file.

Storing queries

As I discussed previously, you can store a query by clicking Store on any tab. Stored queries are displayed under the drawing in the dbConnect window. To execute a stored query, choose dbConnect Queries Execute Query. Choose the query that you want to execute and click OK. It helps if the queries have names that meaningfully relate to the query.

You can also edit a query. Choose dbConnect Queries Edit Query. Choose the query and click Continue. In the Query Editor, make the desired changes and choose Store.

Chapter 20 Working with External Databases

641

To rename a query, click it in the dbConnect window. Click it again to display an edit box. You can now edit the query’s name. Remember that you have to name the query up front. If you’re not sure what the query will consist of, use the default name, construct your query, and then rename it to something more meaningful afterward.

To delete a query, choose dbConnect Queries Delete Query. Choose the query or queries and click OK.

Importing and exporting queries

To export a query that has been saved (by clicking Store in the Query Editor), choose dbConnect Queries Export Query Set. In the Export Query Set dialog box, navigate to the desired folder and choose a name. Click Save. Queries have a .dbq file name extension.

Note

To find the location of your queries, choose Tools Options and click the Files tab. Double-

 

click Data Sources Location to see the path.

To import a query that has been exported and named, choose dbConnect Queries Import Query Set. You need to know the name and location of the .dbq file. In the Import Query Set dialog box, locate the file and click Open. AutoCAD assigns default names to queries.

Summary

Using external databases to store data about drawing objects can reduce the size of drawings, simplify reporting, make data accessible to all users on a network, and enable you to edit a database from inside AutoCAD. In this chapter you read about:

Configuring a data source

Connecting a database table with your drawing

Creating a link template

Creating links between drawing objects and rows in the database

Creating labels containing information from the database

Defining SQL queries to select and sort the data that you view

Selecting objects based on queries

Storing and saving queries

This chapter ends Part III, “Working with Data.” In Part IV, you start to draw in three dimensions. In the next chapter, I discuss how to specify 3D coordinates.

 

 

 

Drawing in

Three Dimensions

Part IV introduces you to three-dimensional drawing. AutoCAD creates three types of 3D objects (also called models): wire-

frames, surfaces, and solids. Wireframes, as the name implies, look like models created with wire. They don’t have real surfaces or solidity. However, they’re useful for creating shapes that you can turn into surfaces or solids. Surfaces, unlike wireframes, can hide objects behind them. They’re especially useful for creating unusually shaped objects. Solids are defined as the entire volume of space that they enclose. You can add and subtract solids from each other, creating realistic objects.

AutoCAD LT can only create wireframes and one kind of surface. Although AutoCAD LT’s 3D capabilities are quite limited, you can still create simple 3D objects. Furthermore, AutoCAD LT can open and display a drawing that contains 3D objects created in AutoCAD.

In Chapter 21, I explain the basics of 3D drawing. This includes specifying 3D coordinates, using the User Coordinate System for 3D drawing, and creating objects with elevation and thickness. Chapter 22 explains the techniques for viewing 3D objects. Chapter 23 covers surface models. Chapter 24 explains how to create true solids, and covers editing in three dimensions. Chapter 25 explains how to create photorealistic views of your 3D drawings using AutoCAD’s rendering feature.

Chapters 23 through 25 only apply to AutoCAD.

P A R T

IV

In This Part

Chapter 21

Specifying

3D Coordinates

Chapter 22

Viewing 3D Drawings

Chapter 23

Creating 3D Surfaces

Chapter 24

Creating Solids

and Editing in 3D

Chapter 25

Rendering in 3D

Specifying 3D

Coordinates

Until now, you’ve worked with two axes, X and Y. When you work in three dimensions, you add the Z axis. After you have a drawing with 3D objects, you can view it from any angle. The view that you’ve been using in 2D drawings is like looking at a house from the top, which

you could call a plan view or a floor plan. From this view, even a 3D drawing looks two-dimensional. But when you look at a 3D drawing from an angle, you can see that there’s more to it than meets the eye. Figure 21-1 shows the plan view of an office building. Figure 21-2 shows the same drawing viewed in a perspective view from the front.

Figure 21-1: An office building in plan view.

Thanks to Roger Cusson of Interface Architectural Software, Montreal, Quebec, for this drawing.

21C H A P T E R

In This Chapter

Understanding 3D drawings

Working with 3D coordinates

Using point filters, object snaps, and grips in 3D

Using elevation and thickness

Creating a custom UCS for 3D drawings

Соседние файлы в папке Книги_AutoCad_2