MapException ErrorNotClosed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All.
I'm trying to remove a polygons from Topology and getting error - MapException " ErrorNotClosed 1011"
---------------------------------------------------------------------------
TopologyModel topo = null;
MapApplication mapApp = HostMapApplicationServices.Application;
Topologies topos = mapApp.ActiveProject.Topologies;
topo = topos[resTopoName];
topo.Open(Autodesk.Gis.Map.Topology.OpenMode.ForWrite);
PolygonCollectioncolPolygons = topo.GetPolygons();
for (inti = 0; i < colPolygons.Count; i++)
{
Polygon poly = colPolygons[i] asPolygon;
topo.DeletePolygon(poly);
}
topo.Close();
---------------------------------------------------------------------------------------------
I don't know what exactly source of this error.
I had performed multiple operations before running this code with topology
and topology is correct and complete, But I cannot succeed to delete polygons from topology.
By the way, Manually it's work perfectly.
Thank you for help.