How would I use the SDK to add a Topology to my map as a layer?
This post from 2019 says its not possible. I see the updated topo API stuff, but can't figure out how to automate adding one to my active map.
I've tried this but get the message: "MyTopoName cannot be added as a layer"
Thanks,
tim
await QueuedTask.Run(() =>
{
Map myMap = MapView.Active.Map;
Geodatabase myGDB = null;
var connFile = new DatabaseConnectionFile(new Uri(sdePath, UriKind.Absolute));
myGDB = new Geodatabase(connFile);
Topology myTopo = myGDB.OpenDataset<Topology>("MyTopoName");
Layer myLayer = LayerFactory.Instance.CreateLayer(myTopo.GetPath(), myMap);
});