Closed GoogleCodeExporter closed 9 years ago
Fixed. The relationship between an IDataset and an IFeatureClass is different
in ArcMap and ArcCatalog. Inserting this code fixed it
{{{
'check to see if there is an under lying Feature Class
If TypeOf m_DataSet Is IFeatureClass Then
'This works for ArcCatalog
fc = DirectCast(m_DataSet, IFeatureClass)
ElseIf TypeOf m_DataSet Is ESRI.ArcGIS.Carto.IFeatureLayer Then
'This works for ArcMap
fc = DirectCast(m_DataSet, IFeatureLayer).FeatureClass
Else
fc = Nothing
End If
}}}
Original comment by andrewphilipsmith
on 10 Sep 2010 at 1:33
Original comment by andrewphilipsmith
on 21 Jul 2013 at 7:50
Original issue reported on code.google.com by
andrewphilipsmith
on 14 Jul 2010 at 2:47