AutoCAD Map 3D General Discussion

AutoCAD Map 3D General Discussion

Reply
Distinguished Contributor
Vasily_BC
Posts: 106
Registered: ‎04-27-2012
Message 1 of 7 (330 Views)
Accepted Solution

Export Map Feature to Shapefile

330 Views, 6 Replies
03-15-2013 04:45 PM

Hi everyone!

 

If found that sometimes I need to have shapefile ony with one type of attributes.

It's easy to do querry in data connect but somehow I didn't find a way to export querred objects to independede shapefile.

 

Any ideas? Thank you.

You can add to the map by query then export to SDF format just what you queried in.

If you need it to shp format you can bulk copy to a new folder.

 

Query_Export.png

*Expert Elite*
antoniovinci
Posts: 1,782
Registered: ‎06-03-2011
Message 2 of 7 (311 Views)

Re: Export Map Feature to Shapefile

03-16-2013 12:33 AM in reply to: Vasily_BC

One way would be:

  1. in an empty drawing, _MAPIMPORT the shapefile with full Object Data
  2. save as INPUT.DWG and close
  3. in an empty drawing, attach the INPUT.DWG with the _ADEDRAWINGS command
  4. command _ADEQUERY
  5. build a boolean query like LOCATION:ALL AND DATA...
  6. in Query mode, choose "Draw" then "Execute Query"

Perform a Zoom Extents, getting the only querred objects, ready to be _MAPEXPORTed.

 

P.S.

You can split automatically a huge shapefile by attribute, with the opensource Qgis.

Valued Mentor
parkr4st
Posts: 475
Registered: ‎03-24-2004
Message 3 of 7 (303 Views)

Re: Export Map Feature to Shapefile

03-16-2013 04:21 AM in reply to: Vasily_BC

two more -  after you back up you original shp data just to be sure you can restart if all fails

1

after you query, save to layer  this does not delete any data but saves the current display of you data if you want it in another map.  this allows you to maintain one data file and display it easily using layer files to put the data in teh map in various queried results.  at the lower edge of the query window there is Options, save expression & load expresion.  Save your query expresson so you reload it later to rerun your query after changing data and resave to the layer file.

2

in windows explorer, find your shp file files and select them, ctrl c, ctrl v, leaving the pasted files highlighted, F2 and rename the pasted shp files to something like "LotsGT5acres.shp".  put that shp in a map, select and delete all lots <5 acres and check it in.  you now have a shp with those lots >5 acres only in the data.

 

dave

*Expert Elite*
antoniovinci
Posts: 1,782
Registered: ‎06-03-2011
Message 4 of 7 (298 Views)

Re: Export Map Feature to Shapefile

03-16-2013 05:19 AM in reply to: parkr4st

Well done, Dave, but in the second point you don't need to duplicate the shapeset in Explorer.

You simply _MAPIMPORT the original shape, _QSELECT by Area > 5 acres, finally _MAPEXPORT of _Previous selected objects to a brand new .SHP

Valued Mentor
parkr4st
Posts: 475
Registered: ‎03-24-2004
Message 5 of 7 (291 Views)

Re: Export Map Feature to Shapefile

03-16-2013 07:36 AM in reply to: Vasily_BC

Yes, works also.  And there is also bulk copy for the adventurous.  Let's see what the OP can get done with the info so far and add help as needed.

 

Dave

Distinguished Contributor
Vasily_BC
Posts: 106
Registered: ‎04-27-2012
Message 6 of 7 (284 Views)

Re: Export Map Feature to Shapefile

03-16-2013 09:30 AM in reply to: antoniovinci

Hi,

 

Thanks for replays! I would say this is traditional method, but is there a way to do it through Data Connect?

For me Data connect is a little bit more easer process, especially for querry. There possibility to export in some formats, however not in shp.

 

Thanks

*Expert Elite*
Murph
Posts: 2,092
Registered: ‎11-13-2006
Message 7 of 7 (276 Views)

Re: Export Map Feature to Shapefile

03-16-2013 05:44 PM in reply to: Vasily_BC

You can add to the map by query then export to SDF format just what you queried in.

If you need it to shp format you can bulk copy to a new folder.

 

Query_Export.png

Murph
Supportting the troops daily.
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.