Autodesk 15607-010000-5000A Manuale Utente

Pagina di 180
10
|
Chapter 2
Improved DWG Support
In the illustration on the facing page, the drawing file PROJECT.DWG has 
three drawings attached to it: PARCELS.DWG, SEWER_DATA.DWG, and 
WATER_DATA.DWG. 
When the the Circle query is executed, it extracts all the 
data that falls within a pre-defined circle from all three attached files.
The example in the illustration is a very simple query, called a location query 
because it is based on a location in the drawing (in this case, a circular area). 
Queries can be much more complex than this one, with multiple lines that 
include SQL statements. However, to bring data from any Autodesk Map 
query into Autodesk MapGuide Author, the procedure is the same. 
Creating a Layer from a Query
Use the following steps to create a new layer from a query in Autodesk 
MapGuide.
To create a new layer from a query
In Autodesk MapGuide Author, right-click Map Layers and then click 
New Layer 
➤ 
Autodesk DWG.  
On the General tab, enter a name for the new layer.
Click the Data Sources tab, and make sure that the map server agent path 
is pointing to the correct location. 
Click the Data Source Browse button, and select a DWG data source. 
Click the Autodesk DWG Browse button, and select a DWG file. 
Optionally, select a key table and key column if you want to associate 
table data with the geometry on this layer. For more information, see the 
topic “About DWG Data Sources” in the Autodesk MapGuide Help.
For Filter Type, select Query.
Click the Query Name Browse button, and select a query.