Hi again, 🙂
now I'm trying to detect which features the user has selected in the Map 3D window. I'm using the following code, but always get a selected features count of 0:
MgStringCollection msc = new MgStringCollection();
msc.Add("n_equip");
AcMapSelection ams = new AcMapSelection(map);
int iFeaCnt = ams.GetSelectedFeaturesCount(maplayer, sSchema + ":CableClass");
if(iFeaCnt > 0)
{
MgFeatureReader mfr = ams.GetSelectedFeatures(maplayer, sSchema + ":CableClass", msc);
[...]
What should I be doing instead?