Can't export closed polygons as polygon SHP file, only line SHP file

Can't export closed polygons as polygon SHP file, only line SHP file

Anonymous
Not applicable
5,790 Views
9 Replies
Message 1 of 10

Can't export closed polygons as polygon SHP file, only line SHP file

Anonymous
Not applicable

Hi guys, I am hoping someone can help me quickly - client is waiting and I can't figure this out.

Drawing attached with polygons I am trying to export as an ESRI SHP file. I can do it no problem if I export them as lines, but client wants them as polygons. 

When I export them as polygons, nothing appears when I import those shape files. I have tried drawing cleanup, nothing works. I have tried drawing a simple rectangle and try to export that, same result. I am obviously doing something wrong during the export process.

I have attached the file for reference. These polygons need to be export as a polygon SHP file.

Please help and thank you in advance!

Liesl

0 Likes
Accepted solutions (1)
5,791 Views
9 Replies
Replies (9)
Message 2 of 10

Anonymous
Not applicable

OK so I figured out I need to create a polygon topology. As you can see from the drawing I had attached, there are a lot of polygons that touch each other and AutoCAD doesn't like that. I have "cleaned" the drawing over and over and I still get errors. I have deleted places now where two polygon overlap, to no avail. 

0 Likes
Message 3 of 10

fieldguy
Advisor
Advisor

Some of your "polygons" are not closed (they are a series of polylines that need to be closed - not a polygon yet)

0 Likes
Message 4 of 10

Anonymous
Not applicable

I have done that ... but now the problem is that anywhere two closed polygons overlap, I get an error when making a polygon topology, which it seems I need to do before exporting polygons. You can't export polygons themselves without creating a topology first, as far as I can see.

I can draw a simple polygon, make a topology and export that no problem.

When I draw two simple polygons that touch each other, I cannot make a topology and therefore can't export the polygons as SHP.

0 Likes
Message 5 of 10

ChicagoLooper
Mentor
Mentor

Your drawing titled HELP  has both polylines and polygons. You can export the polygons to shapefile as polygon entities, no problem, but the polylines will need to be exported as polylines, not polygons.

 

If you wish to export the polylines as polygons, then you'll need to connect the lines and turn them into 'closed' polygons. You can tell whether a polygon/polyline is closed or not by clicking on an individual poly and scrolling to the bottom of the properties palette where under the Misc section, where CLOSED will display either YES or NO. Of course, clicking on an individual line may reveal the object is not a polygon at all and simply be a polyline instead and that's not what you're after.

 

In the image below, the colored hatch was applied to your drawing. Three colors were used to demonstrate that different areas exist which are adjacent to one another and not continuous. If an area is hatch-able, then the area is closed and means there are no 'leaks' where the hatch can escape.

 

If you right-click on an individual hatch entity, you'll get a shortcut menu with an option to GENERATE BOUNDARY. If exercise this option, a boundary will be drawn on the 'current layer' and be a CLOSED POLYGON. This, or these, closed polygons can then be exported as a polygonal shapefile. (You can delete the hatch after creating the boundaries, they're no longer needed.) This process will allow you to achieve your goal of sending your Cad line work out to shapefile format.

 

******Warning: The Generate Boundary operation can only be performed on a single hatch entity. AutoCAD will not allow you to perform it on a bunch of hatch entities at the same time so you'll have generate the boundaries individually.

Colored areas can 'hold' hatch.Colored areas can 'hold' hatch.

Chicagolooper

EESignature

Message 6 of 10

Anonymous
Not applicable

Thank you very much for the comprehensive explanation!

I have closed all polygons.

My next step was to create polygon topology. When I do this, I get error markers as in the attached png called CAPTURE.
I have tried to export the polygons without polygon topology but this fails.

Please advise.
(I have also included the drawing with closed polylines FYI.)

Thanks again.

0 Likes
Message 7 of 10

ChicagoLooper
Mentor
Mentor
Accepted solution

Topology? You don't need topology to export your polygons into a polygonal shapefile. Trust me, plain ol' polygons will do just fine.

 

In the two images bellows, you'll need to make two simple corrections. First, you have a stray polyline that you don't need (see image-1). For clarity, it is yellow. Simply delete this yellow line. It will be either on top of, or beneath, the gray polygon. It's an extra line so just delete it. Second, you'll need to change a triangular shaped polyline into a closed polygon. (See image-2) For clarity, it is yellow. Click on the yellow triangle, go to Properties palette, scroll to bottom, and in Misc section, under CLOSED, change from NO to YES. This will transform the polyline into a closed polygon. You want to change it because you can't export a polyline to a polygonal shapefile.

 

1-Delete this 'stray polyline.'1-Delete this 'stray polyline.'2-Click this triangle, scroll to bottom of Properties Palette, then in Misc section, under 'Closed' change it to YES so it turn into a closed polyline.2-Click this triangle, scroll to bottom of Properties Palette, then in Misc section, under 'Closed' change it to YES so it turn into a closed polyline.

Once you have completed to corrections above, you can then export all your gray polygons into a polygonal shapefile..

Chicagolooper

EESignature

Message 8 of 10

Anonymous
Not applicable

Thank you ever so much!! I appreciate you taking the time to help me!!

 

Liesl

0 Likes
Message 9 of 10

Anonymous
Not applicable

I should also add to the solution, for those new to Map, that when exporting polygons to a polygon SHP file, be sure to go the "options" tab in MAPEXPORT during the export process, and turn on the box that says "treat closed polylines as polygons". This was a step that I had missed, and if you don't click it on, nothing will export.

Message 10 of 10

LarryS23
Collaborator
Collaborator

Circling back to this thread, I sometimes forget to click that in the options tab.

0 Likes