This is not a comprehensive exercise that covers the details and nuances of performing a query. This is merely the down-n-dirty way. Of course there are other, more elegant ways that use sophisticated workflows and achieve a narrower focus. This post, however, serves to demonstrate some of the basic options available using your specific csv file.
Given the the rudimentary composition of your csv and the absence of a specific goal you would like to achieve, no ODBC connection was used in this workflow. Since Map 3D's query parameters provide enough horsepower to query your lake points, other add-ons to the drawing would only constitute extra baggage and provide only fluff without any meaningful utility beyond Kardashsian-esque glamour.
You can do it. Warning: Combining this workflow with other instructions may (and I don't care where they came from or who uttered them), or may not, derail this entire workflow. Use caution when deviating from the prescribed steps. Here's the down-n-dirty that you can use to do the deed:
Format your csv like this. Do it now. Notice the column headings are preceded with '#.' It's critical to insert it before each heading because if not used, M3D will be confused and treat the headings as data when they're not. You may also delete the first row altogether and avoid any potential confusion the headings may cause. Your csv will need exactly 5 columns. Column E, the 5th column, contains 7 columns from your original csv. The 7 columns have been combined in excel using an excel formula. The formula was then copied and applied to all rows to efficiently generate the results. Implementation of the formula will not be covered in this exercise since you can do that on your own. Save this newly reformatted csv and close it. In the next step, you'll use MAPIMPORT command. The command won't work if your csv is open.
1-Format you csv like this (5-columns, A thru E))
Use MAPIMPORT command (Insert tab=>Import panel=>Map Import icon). Browse to your csv and choose PENZD (comma delimited) from the dropdown. You are specifically choosing PENZD because that's how you formatted your csv.
2-Mapimport-choose PENZD comma delimited.
Make the import settings exactly like shown. When done, click OK to import your points.
3-Make settings for MAPIMPORT like this.
Zoom extents to see your points. Your points will likely overlap because the block, Map_Survey_Point, will be too big. You'll need to rescale the blocks. Select all the points and rescale in the Prop Palette. Use the same number for scale-x, -y and -z. The scale should be smaller, e.g. 2000, than what's shown in the Prop Palette for the overlap to go away.
4-Change scale so blocks don't overlap.
Because you've assigned UTM83-16F to modelspace and have indicated LL84-WGS84 was the CS used in the csv, your points will transform from lat/long degrees to UTM zone 16 feet. Turn on Bing aerial imagery to view the points with an aerial photo basemap. Since you stated in Post 3 of this thread that your are identifying Lake Coordinates, then yes, they're all wet because they're in the Lake! Haha! Save this dwg. Give it the name SETUP.dwg then close it. In the next step, you'll perform the query and the query can't happen if SETUP.dwg open.
5-Results of the query. Your blocks are in Lake Michigan.
Go to The Task Pane=>Map Explorer Tab=>Right click Drawings=>Attach=>Browse to SETUP=>Select SETUP=>Add=>OK. SETUP will now be displayed int the drawing tree under Drawings like shown below.
6-Attach SETUP.dwg using MapExplorer Tab.
You will now begin building your query. (You can use your imagination to build your query, I’m obviously building an oversimplified one.) Still on Map Explorer tab, right click Current Query=>Define. Next, Location=>All=>OK
7-Begin building query. Location=ALL.
Continuing with the build, Click Data=>Attribute=>Map_Survey_Point=>Operator ‘=’ sign=>Then manually enter ‘*red*’ (without the quotes & include asteriks)=>OK. Then Execute Query to view results.
8-Data=>Attribute=>Map Survey Point=>Attribute Tag=>Operator=>Value.
Up to this point, your query will consider all objects (I say all but really mean most because M3D will not really consider all objects, there are exceptions where objects are not considered, i.e. Civil 3D objects are not recognized in this type of query) in modelspace and evaluate whether red appears under the attribute DESC in any of the Map Survey Blocks. If red is not in the DESC attribute, then that block will be ignored. BTW, the * is a wildcard and is used to match red to any part of the DESC string.
When you build your query, you may get a pop-up message asking whether you want to save changes back to SETUP.dwg. Do not save back! You want to keep SETUP in its original condition. Decline any offers to save back because if you do, you’ll overwrite and essentially end up replacing the file.
You have successfully isolated all instances where the word red has appeared in the attribute DESC. If you wish, you may select the results of the red query and put them on a dedicated layer name RED.
You could have also chosen a different attribute or a different attribute value. You could have also used an operator other than the ‘=’ sign. You could have also queried Object Data as opposed to a block Attribute. As you can see, the permutations are mind boggling.
If you have put the result on a dedicated layer named RED, freeze that layer.Continuing with building a query, delete all lines below ‘Locations: ALL.’
In this next example, you will query all rows that satisfy three conditions: 1) Green, 2) Left and 3) Heavy. From Define Query dialog. There are exactly 7 points, that satisfy all 3 conditions, they are Points No's 16 through 22, see the orange highlighted rows.
9-Orange highlights are the 7 points your query will target. will
Define the query, it should look like this.
10-Your query will consists of 3 conditions as shown above.
When you execute the query, the results will look like this. The 7 points are shown with Bing aerial as a basemap. Points where the 3 conditions are NOT met are ignored and are not included in the 'Results.'
11-Results of query satisfying the 3 conditions. Bing basemap with the 7 queried points.
This concludes the Down-N-Dirty way. For a more elegant way, describe in detail, what you are trying to achieve then repost with a new Subject Line.
Chicagolooper
