New answers tagged vb.net
I'm guessing you are trying to run this as an AddIn button from within ArcMap? First of all you obtain the page layout from the map then ignore it by using the page layout from the Active MapDocument. You also obtain the activeview from the Active MapDocument, not the document in your list of MXDs... When connecting to other MapDocuments to do something ...
I solved it. probleme is because you use iFeatureLayer as an input. Use a IFeatureClass. Friend Function DissolveFeatures(ByVal pFC As IFeatureClass, ByVal DissolveField As String, ByVal OutName As String) As iFeatureClass Dim GP As New ESRI.ArcGIS.Geoprocessor.Geoprocessor Dim Dissolve As ESRI.ArcGIS.DataManagementTools.Dissolve = New ...
Minor Typo ,Replace esriSRGeoCSType.esriSRGeoCS_WGS1984 with esriRSGeoCSType.esriSRGeoCS_WSG1984
You get the selection set on the feature layer but then you do a feature count on the feature class, an object that does not support selections. So your current logic makes no sense. Now do you want to export an EXISTING selection or do you want to SELECT then export? If you want to export an existing selection then delete the Featurecount code as that is ...
You will have to use an if statement to check the feature count using IFeatureClass.FeatureCount Method, before exporting.
Top 50 recent answers are included