Page 1 of 4 1234 LastLast
Results 1 to 10 of 39

Thread: Query Location

  1. #1
    I could stop if I wanted to
    Join Date
    2004-11
    Location
    Somewhere close to hell
    Posts
    228
    Login to Give a bone
    0

    Question Query Location

    I have 3000+- quarter sections that I need to query. Is there a simple way to save the location coordinates for all of these sections to external query files?
    I know I could select each one and save to external file, just hoping someone has a better idea!
    Thanks,
    Rob

  2. #2
    Civil Engineering Moderator MHultgren's Avatar
    Join Date
    2000-12
    Location
    Indy West (Not West Indies)
    Posts
    1,446
    Login to Give a bone
    0

    Default Re: Query Location

    Are you wanting to save the window limits of each one or just the centroid? If you have LDT, place a point at the intersections and you can export the coords (X.Y.and Z - if needed) to a file. and then build a template query to pull in the type of data you want, then use the ol' cut - n - paste (in your favorite ascii editor) to change the coordinates for each section, do a save-as with section number or something that makes sense. Here is the format of the qry file. Make sure that you have created your project info prior to generating the template, build your query and run it on the first section to make sure you have everything you need showing, then save that to an external file. Open that file and look for the areas in red below to see what you would need to change. I would probably round off the coordinates and give yourself a bit of a buffer ( add or subtract 10 to each X and Y coordinate to make sure your get the whole section.
    (setq ade_cmddia_before_qry (getvar "cmddia"))
    (setvar "cmddia" 0)
    (mapcar 'ade_dwgdeactivate (ade_dslist))
    (setq ade_tmpprefval (ade_prefgetval "ActivateDwgsOnAttach"))
    (ade_prefsetval "ActivateDwgsOnAttach" T)
    (setq dwg_id(ade_dsattach "path(s) of drawings to query"))
    (ade_prefsetval "ActivateDwgsOnAttach" ade_tmpprefval)
    (ade_qryclear)
    (ade_qrysettype "draw")
    (ade_qrydefine '("" "" "" "Location" ("window" "inside" (681885.371764 920871.924347 0.000000)(683411.390529 919379.271217 0.000000))""))
    (ade_qrydefine '("AND" "" "" "Property" ("objtype" "=" "object types")""))
    (ade_qrydefine '("AND" "" "" "Property" ("layer" "=" "layers")""))
    (ade_qrysetaltprop nil)
    (ade_qryexecute)
    (setvar "cmddia" ade_cmddia_before_qry)
    Once you build your "Template query, you should only have to change the coords and do a save-as.

  3. #3
    I could stop if I wanted to
    Join Date
    2004-11
    Location
    Somewhere close to hell
    Posts
    228
    Login to Give a bone
    0

    Default Re: Query Location

    Mark,
    Thanks for the tip, that is basically what I'm trying to avoid.

    I'm guessing I'm not the first person to deal with Local Agency GIS data.
    I'm trying to break down 953MB of data into quarter section size drawings so our designers can open them.
    With help from others here, I have the routine to query and block out each drawing, but I'm trying to find a better way to put together the query files that contain the location of each quarter section boundary.
    I have created them in the past just by defining the query location and selecting a boundary.
    I don't want to cut & paste 3000 query files, if there is a better way, just thought I would check and see if anyone has come across this already.
    Thanks again,
    Rob

  4. #4
    Civil Engineering Moderator MHultgren's Avatar
    Join Date
    2000-12
    Location
    Indy West (Not West Indies)
    Posts
    1,446
    Login to Give a bone
    0

    Default Re: Query Location

    Rob,

    You could always dump the section coords into an MDB and set up your queries from there using the quarter section number as the index field?
    Are you trying to break out topo for each section? Take a look at WWW.DOTSOFT.COM. Terry has a new tool that might be just what you are looking for. It is called GridWorks. Not sure if it is what you are looking for, but it might be of some assistance

  5. #5
    I could stop if I wanted to
    Join Date
    2004-11
    Location
    Somewhere close to hell
    Posts
    228
    Login to Give a bone
    0

    Default Re: Query Location

    Quote Originally Posted by MHultgren
    Rob,

    You could always dump the section coords into an MDB and set up your queries from there using the quarter section number as the index field?

    M,
    Newbie here!
    How would I go about doing this?
    Thanks,
    Rob

  6. #6
    Civil Engineering Moderator MHultgren's Avatar
    Join Date
    2000-12
    Location
    Indy West (Not West Indies)
    Posts
    1,446
    Login to Give a bone
    0

    Default Re: Query Location

    Well, you would need to start by registering and catching up with the ATP085 course (under Education - ATP Courses) while you still can. This will give you the training to access and talk with MS Access for your MDB. Once you get through that, then you would be able to connect to that DB from the Map Pulldown. It is a bit much to try explain breifly on here though. Pull out the Help file and tutorials to walk you through the procedures.

    <from the ACMAP Help File>
    Using AutoCAD Map, you can link information from an external database to objects in your drawing, and then retrieve objects from source drawings using the linked information. For example, with a database of traffic flow information, you can link traffic records in the database to roads in the drawing, and then run a query to display only those roads with high volume traffic.

    After you create the links, use the Data View to select, highlight, view, and edit records in the database table.

    The first step in using external databases is to attach the data source to your project.

    You can view the external table using AutoCAD Map's Data View. You can customize the look of the Data View and hide and freeze columns in the display.

    If you want to link records from the table to objects in your drawing, create a link template that specifies how to uniquely identify each record in the table.

    Once you create a link template, you can link records from the table to objects in your drawing.

    You can then use those links to view and select objects based on their linked data.

    You can also set options that specify how you use external database tables with AutoCAD Map.
    Last edited by MHultgren; 2005-08-31 at 02:05 PM.

  7. #7
    I could stop if I wanted to
    Join Date
    2004-11
    Location
    Somewhere close to hell
    Posts
    228
    Login to Give a bone
    0

    Default Re: Query Location

    Thanks Mark!

  8. #8
    100 Club
    Join Date
    2004-06
    Posts
    123
    Login to Give a bone
    0

    Default Re: Query Location

    Sounds like the Database approach is a good one, but try link to the poly. I believe the mapbooks does this, which sounds like what you are trying to accomplish. To create the link you probably could generate on the unique quarter section number. I had this set up for our county in Map 2005 with 1440 half sections, but the Mapbooks in 2005 was not good enough in my opinion so heard 2006 was better.

    jim

  9. #9
    I could stop if I wanted to
    Join Date
    2004-11
    Location
    Somewhere close to hell
    Posts
    228
    Login to Give a bone
    0

    Default Re: Query Location

    Jim,
    How do I go about creating links from polyline boundaries, I only see options to link text or blocks.
    Rob
    Last edited by rad.77676; 2005-08-30 at 09:49 PM.

  10. #10
    100 Club
    Join Date
    2004-06
    Posts
    123
    Login to Give a bone
    0

    Default Re: Query Location

    What works for one might not work for others, so there are a number of ways to approach the task. I attached a sample of a project for a Township quarter-quarter section. I have done this at least three different ways and will explain a basic way to create the links, but forgot how to do the query; maybe someone else can explain that but the map set knows the extent of the polygon when you set up the query on the unique ID.

    1. Start with polygon.
    2. Have centroid of unique ID.
    3. Create object table with one field.
    4. Drag and drop MDB (with the ID as one of the fields) into project space.
    5. Generate links based on the text enclosed.

    At this point you have the DWG with polys that have a link to the MDB so each record is spatially aware of where it is.

    I am eager to learn how to create the map book in Map 2006 because have heard that you have much more flexibility in previewing and plotting each cell of the grid.

    BTW, if you have access to ArcGIS, the DS Mapbook is a model that I was hoping that AutoDesk developers would follow, and if someone knows of a routine for that, I definitely would be interested!!!!

    Good Luck and please let us know how it works.

    I see a bug in the way I created centroids and needd to redo that to maintain text WITHIN poly.

    Jim
    Attached Files Attached Files
    Last edited by jim.dahl; 2005-09-01 at 01:00 PM.

Page 1 of 4 1234 LastLast

Similar Threads

  1. Location of Call Out | Location of Detail
    By baker in forum AutoCAD Sheet Set Manager
    Replies: 1
    Last Post: 2013-07-10, 06:06 PM
  2. Publish DWF query
    By Dave F. in forum Revit - Platform
    Replies: 0
    Last Post: 2008-11-12, 11:33 AM
  3. Doing query through FDO
    By VBOYAJI in forum AutoCAD Map 3D - General
    Replies: 4
    Last Post: 2007-04-20, 09:38 AM
  4. map query's from GIS shapes
    By gisdude in forum AutoCAD Map 3D - General
    Replies: 3
    Last Post: 2006-03-31, 11:02 PM
  5. Massing query?
    By aliya14 in forum Revit Architecture - General
    Replies: 8
    Last Post: 2006-03-24, 04:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •