AutoCAD Map 3D General Discussion

Reply
Valued Contributor
Vasily_BC
Posts: 100
Registered: ‎04-27-2012
Message 1 of 7 (301 Views)
Accepted Solution

Export Map Feature to Shapefile

301 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.

*Expert Elite*
antoniovinci
Posts: 1,601
Registered: ‎06-03-2011
Message 2 of 7 (282 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: 423
Registered: ‎03-24-2004
Message 3 of 7 (274 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,601
Registered: ‎06-03-2011
Message 4 of 7 (269 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: 423
Registered: ‎03-24-2004
Message 5 of 7 (262 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

Valued Contributor
Vasily_BC
Posts: 100
Registered: ‎04-27-2012
Message 6 of 7 (255 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: 1,935
Registered: ‎11-13-2006
Message 7 of 7 (247 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.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community