AutoCAD Map 3D Developer

AutoCAD Map 3D Developer

Posts: 4
Registered: ‎06-05-2012
Message 1 of 2 (239 Views)

Topology Marker Error

239 Views, 1 Replies
06-08-2012 07:53 PM



I have a question about topology creation on AcMap onward using .NET interface. My intention is to show the error markers when topology creation is failed. Here is my code snippet:


 if (topos.Exists(topoName)) { topos.Delete(topoName, false); }

CreateOptions options = CreateOptions.UsePersistentMarkers | CreateOptions.HighlightSliverPolygons | CreateOptions.StopAtMultipleCentroid;

topos.Create(topoName, linkCol, nodeCol, centCol, TopologyTypes.Polygon, options, 0.01); 


Unfortunately the code can't show persistent marker, the errors show up for a few moment and then went away. My question therefore are how to show the topology error marker including sliver polygon with c#?


Thank you, we look forward for your response..

ADN Support Specialist
Posts: 543
Registered: ‎06-09-2009
Message 2 of 2 (150 Views)

Re: Topology Marker Error

07-30-2012 07:29 AM in reply to: DEVR4730

Hi DEVR4730,


I think it's the same question you asked to ADN team earlier and it's being resolved.

For the benefit of others I am sharing the resolution here.

Persistent marker was not shown as this code snippet along-with Create() was called inside a Transaction which I believe was not committed. You need to Commit the Transaction to see the marker.

However, while investigating this further, we also found some issue with CreateOptions.HighlightSliverPolygons. After some more investigation we found the following workaround :

// CreateOptions options = CreateOptions.UsePersistentMarkers | CreateOptions.HighlightSliverPolygons | CreateOptions.StopAtMultipleCentroid;

// Use the following
CreateOptions options = CreateOptions.UsePersistentMarkers | (CreateOptions)16 | CreateOptions.StopAtMultipleCentroid;



Partha Sarkar
Developer Technical Services
Autodesk Developer Network

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 or visit the Installation and Licensing Forum to get help installing your software.