Need to create a shape with a hole in it

Need to create a shape with a hole in it

Anonymous
Not applicable
14,041 Views
13 Replies
Message 1 of 14

Need to create a shape with a hole in it

Anonymous
Not applicable

I have closed polyline within another closed polyline.  I need to create a shape and I need a hole in it.  See attached pdf for example.  Ignore the dashed and solid grey lines, not sure what those are.

 

When I select the two polylines, and select treat closed polylines **** polygons, then I export as shapes, I just get two solid shapes, one on top of the other.  Any help would be greatly appreciated.  Thanks in advance.

 

0 Likes
Accepted solutions (1)
14,042 Views
13 Replies
Replies (13)
Message 2 of 14

Jeff_M
Consultant
Consultant

Convert the plines to regions, then Subtract the smaller one from the larger one.

Command: REGION

Select objects: 1 found

Select objects: 1 found, 2 total

Select objects:
2 loops extracted.


2 Regions created.

Command:
Command: _subtract Select solids, surfaces, and regions to subtract from ..

Select objects: 1 found

Select objects:  Select solids, surfaces, and regions to subtract ..
Select objects: 1 found

Select objects:

Command:

 

Jeff_M, also a frequent Swamper
EESignature
0 Likes
Message 3 of 14

Alfred.NESWADBA
Consultant
Consultant
Accepted solution

Hi,

 

as long as that are only few POLYLINEs you can start the command MPOLYGON. With this command and the option to choose elements you can select the POLYLINEs and will get a new object containing one outline and as many islands as you selected. This object can then be exported to SHPs.

If you have many objects, you would have to build a map-topology and then export the topology with MAPEXPORT.

 

HTH, - alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
Message 4 of 14

Anonymous
Not applicable

then how do I export that region as a shape?

0 Likes
Message 5 of 14

Anonymous
Not applicable

thanks, this worked great.  I've never used the mpolygon command, I always export shapes through MAP, but now I can create the mpolygons the way I like, then export as polygons.  Thanks!

0 Likes
Message 6 of 14

antoniovinci
Advisor
Advisor

> then how do I export that region as a shape?

 

You can't.

 


 

About creating "holed" shapes with MPOLYGON, that's good if you start from scratch.

But if you wanna hole an existing shape having Object_Data (GIS attributes), MPOLYGON will destroy them.

In this case, the solution will be the second one from Alfred: _MAPEXPORT of the topology.

0 Likes
Message 7 of 14

neilyj666
Mentor
Mentor

@Alfred.NESWADBA wrote:

Hi,

 

as long as that are only few POLYLINEs you can start the command MPOLYGON. With this command and the option to choose elements you can select the POLYLINEs and will get a new object containing one outline and as many islands as you selected. This object can then be exported to SHPs.

If you have many objects, you would have to build a map-topology and then export the topology with MAPEXPORT.

 

HTH, - alfred -




How do I go about building a map topololgy??

neilyj (No connection with Autodesk other than using the products in the real world)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


AEC Collection 2026 UKIE (mainly Civil 3D UKIE and IW)
Win 11 Pro x64, 1Tb Primary SSD, 1Tb Secondary SSD
64Gb RAM Intel(R) Xeon(R) W-11855M CPU @ 3.2GHz
NVIDIA RTX A5000 16Gb, Dual 27" Monitor, Dell Inspiron 7760
0 Likes
Message 8 of 14

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> How do I go about building a map topololgy??

In one word? _MAPTOPOCREATE,

In one page? look >>>here<<<

 

BUT don't start the command and think "that's it"!

Try to get training(s) or at least do research around GIS-Topologies and Map3D-Topologies (e.g. >>>here<<<), becaue all data-preparation (MAPCLEAN), the work with object-data, with connected database-tables/views/queries ..and..and..and makes GIS what GIS is and has to be learned.

 

Have a nice day in Google 😉 , - alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 9 of 14

neilyj666
Mentor
Mentor

Alfred - thanks for the info and links.

 

I don't use the GIS functionality day in day out but am sure it could speed up certain tasks for me - I just need to find time to learn about it...!!!!!

neilyj (No connection with Autodesk other than using the products in the real world)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


AEC Collection 2026 UKIE (mainly Civil 3D UKIE and IW)
Win 11 Pro x64, 1Tb Primary SSD, 1Tb Secondary SSD
64Gb RAM Intel(R) Xeon(R) W-11855M CPU @ 3.2GHz
NVIDIA RTX A5000 16Gb, Dual 27" Monitor, Dell Inspiron 7760
0 Likes
Message 10 of 14

antoniovinci
Advisor
Advisor

Neilyj,

I really can't imagine my work in Map/Civil environment without topologies: with them, you make buffers, overlays, create closed polylines, and so on.


Topology is the foundation of every serious GIS job, because it guarantees you only clean and consistent data.


Unfortunately, as said by herr Alfred, to achieve the condition to get a correct topology, you must previously struggle with the _MAPCLEAN command: that's very boring and frustrating, expecially if you have to manage DWGs from other people...

0 Likes
Message 11 of 14

AllenJessup
Mentor
Mentor

@neilyj666 wrote:

 

I don't use the GIS functionality day in day out but am sure it could speed up certain tasks for me - I just need to find time to learn about it...!!!!!


One of the best classes I took was how to use Map in Civil design work!

 

Allen

Allen Jessup
CAD Manager - Designer
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 12 of 14

AllenJessup
Mentor
Mentor

@antoniovinci wrote:


Topology is the foundation of every serious GIS job, because it guarantees you only clean and consistent data.


That makes great sense for GIS jobs. It doesn't work as well when doing Survey and Civil Engineering. Usually I can't let the program decide how to clean up the errors because it doesn't know the rules that govern in Survey and Design. If I have a drawing from an outside source I can us Mapclean to MARK the problem areas.

 

Allen

Allen Jessup
CAD Manager - Designer
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 13 of 14

Joe-Bouza
Mentor
Mentor

I don't know map topologies per se, but maybe what I do is that. I draw my polygons >> mapexport each to its own sdf file>> connect the FDO >> do an overlay and choose subtract one from the other then save the result to its own sdf file = shape with a hole in it.

Joe Bouza
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 14 of 14

Fabio_Ferrari3BVLL
Observer
Observer

The way that i found was

- Create the shape and other inside.

- Make a hatch in the area.

- select the hatch and drag out,

- select the hatch and recreate

- select region when ask

- chose Y or N for the boundaries,

- delete the hatch

- You will have a shape (region) with a hole... 

0 Likes