AutoCAD Map

SHP file polygons

If you have ever imported an ESRI SHP file containing polygons using the ._MAPIMPORT command, and the polygons came in filled, you may have wondered how to turn off this fill.


SHP file polygons, filled

Use the ._POLYDISPLAY command to enable or disable the fill on these MPOLYGON objects.

Command: ._POLYDISPLAY
Enter mpolygon display mode [Edges only/Fill only/Both] : _E

SHP file polygons, edges only

If for some reason, you don't want MPOLYGON objects, you can control the default object import type (MPOLYGON vs. closed polyline) by running the MAPUSEMPOLYGON command.

Command: MAPUSEMPOLYGON
Enter new value for MAPUSEMPOLYGON : _OFF

Importing SHP Polygons

If you are importing ESRI SHP files that contain closed objects using the MAPIMPORT command, and you end up with filled MPOLYGON objects instead of plain old closed polylines, read on....

First, you can instruct MAP to import closed polylines instead of MPOLYGONs by running the MAPUSEMPOLYGON command and setting the value to OFF. If you do want MPOLYGON entities, but you don't want them filled, run the POLYDISPLAY command and choose Edges only. Be sure to REGEN after running this command.

Comparing filled mpolygons with closed polylines

Syndicate content

 


All content is copyright © CAD Panacea 2008-2010 unless otherwise noted.
All content of CAD Panacea is solely my own personal thoughts and opinions and do not represent my employer or any others.
All comments posted to this blog are the sole responsibility of the person making the comment.

 

Google, as a third party vendor, uses cookies to serve ads on this site. Google's use of their cookies enables it to serve ads to users based on their visit to your sites and other sites on the Internet. You may opt out of the use of these cookies by visiting the Google ad and content network privacy policy.

free hit counters

Powered by Drupal, an open source content management system