An object-oriented programming language from Microsoft. It is the .NET version of the Visual Basic (VB) programming language.

learn more… | top users | synonyms

1
vote
0answers
8 views

Problem with MyBase when converting old VB.NET toolbar

I'm working on a project to convert and older set of ArcGIS tools that were developed for 9.x using VB.NET. I'm trying to convert them to an Add-In for 10.4. So far, I have created the Add-In and ...
-1
votes
0answers
24 views

ArcObjects how open layer in new window? [on hold]

I have 2 layers. 1 layer - Buildings, 2 layer - transmission line inside the building. Is it possible to do so, that would be in the window layer object parameters Buildings, was watching button ...
0
votes
1answer
117 views

how to write expression with vb.net in mapwingis (ShapefileCategory.Expression)

I would like to give color to the map with new category. to make must make previous expression. I've tried but still failed. What is wrong ? Please help me. Dim category As ...
1
vote
1answer
3k views

Plotting Multiple Points on Google Map using VB.net

I am creating a database application using VB.net and MSSQL 2012. I have retrieved a list of customer from the database and want to plot them on google map. At it stands, I can only plot the first ...
3
votes
1answer
491 views

Problem when executing Dissolve method in ArcEngine

I'm always having a problem in GP.execute() when trying to execute this method. Here is my code: Friend Function DissolveFeatures(ByVal pInFLayer As ESRI.ArcGIS.Carto.IFeatureLayer, ByVal ...
0
votes
1answer
303 views

vb.net arcobjects enable customized context menu item only if a feature is selected

The solution may be very simple, but I haven't made it work. I want to enable a data view context menu item only if a feature (in polyline layer) is selected, all other places the item should in ...
0
votes
1answer
214 views

Code to get featureclass name from existing topology

I am creating and validating topology through vb.net and arcobject code.Things are running fine as I am able to add rule and validate it . Problem is when once the program is run and topology is ...
-1
votes
0answers
28 views

How to standardize raster layer in one scale to a range of 0-1

I'm trying to write a vb.net code in order to do a standardization for raster layers (raster scale from 0-1) by using Raster Calculator. How can I connect vb.net with raster calculator within ArcMap? ...
0
votes
1answer
560 views

Debugging InvalidCastException was unhandled by user code error from ArcObjects DataStat?

I have some code that adds a bunch of group layers into ArcMap based on a table within ArcMap. The code works fine in VBA, however in VS 2010 I get an error on the "pEnumVar = pDataStat.UniqueValues" ...
1
vote
1answer
524 views

Join and Calculate vb.net

Im trying to join an excel table to a shapefile and then calculating those fields using vb.net. The code I have written has no errors, but won't work when I try it in ArcGIS 10.1 and I'm out of ideas. ...
6
votes
1answer
443 views

Creating a VB.net Dataset in Visual Studio 2010 from an SDE Geodatabase

I am building an ArcMap Addin that contains several Windows Forms with controls that need to be bound to a database. I am trying to decide whether or not to use a native SQL Server Database or an SDE ...
2
votes
1answer
46 views

Getting reference to existing reference of dockable window in class in ArcMap Addin?

I have an addin for ArcMap 10.2 that has a dockable window. For what it's worth, this dockable window has a DataGridView to which the user can add features for review. These features are added from ...
0
votes
0answers
255 views

Error Input FeatureClass Arcgis 10 VB.net And Geoprocessing

I have a problem when i execute GeoProcessing in ArcEngine 10 with VB.net i had create the toolbox : Models.tbx and Model Process : disolveRoute with 2 parameters My Function is : Sub diso() ...
1
vote
1answer
381 views

Use field names in combobox [closed]

I am currently stuck on a problem surrounding ArcGIS Explorer and comboboxes What I am trying to do is use 3 comboboxes to do the following: View all features contained within ArcExplorer's table ...
2
votes
1answer
256 views

vb.net arcmap add-in log4net log still follow the configuration before update

I met a strange thing in my log4net for vb.net arcmap add-in. At first, I follow the link http://www.codeproject.com/Articles/42276/How-to-Use-Log-Net-with-VB-NET-A-Simple-Step-By-St to write logs ...
1
vote
1answer
230 views

ArcGIS - ICommandBars exception

Testing my VB.NET 2010 app in ArcMap an exception occurs when ICommandBars is instantiated. ' zoom to selected Dim mxApp As ESRI.ArcGIS.Framework.IApplication Dim numUID As UID = New ...
1
vote
2answers
702 views

ArcMap 10 How to create a tool to use with a Vb.Net script?

I have a VB.net scrip that I would like to run from the toolbar. In VBA, you would create a buttton that would collect the xy coordinates and pass the variables to the script for running. I can't ...
2
votes
1answer
550 views

Adding ILayer to IMap in ArcGIS Server?

I wanted to add ILayer to IMap, i think it has been added but problem is that it does not display it on the website. I am running ArcGIS Server 10, using visual web developer 2010 express edition ...
0
votes
0answers
53 views

Deleting redundant vertex in polygon feature using arcmap 9.3 with VB.net?

I am using Arcgis 9.3. I have polygon feature file. In the file some of the features have a redundant vertex which I need to delete. I wrote a tool using vb.net for deleting such redundant vertex, but ...
0
votes
1answer
53 views

Hardwire definition query on layers in mxd VB.net

I am creating a tool that applies definition query to certain layers of the mxd. The user clicks the button and it should hardwire the definition query into the layer. This is useful if there are many ...
0
votes
1answer
298 views

Modifying “value” field of raster attribute table using ArcObjects? [closed]

Can I modify the values of the "Value" field of a raster attribute table using ArcObjects, and if yes how?
2
votes
1answer
45 views

Arcobjects Assign projection transformation to layer file in VB.net

I want to be able to transform a layer from WGS1984 to OSGB1936. I created a tool that extracts layers from several folders on our company network folders, using check boxes that user clicks. One of ...
3
votes
1answer
471 views

ArcGIS 10 Addin Code Doesn't Execute on Another Computer? [duplicate]

I've created an ArcGIS 10 Addin that consists of a toolbar containing one button and one tool. The button opens a form, and the tool is disabled until the user enters some information on the form. ...
2
votes
2answers
76 views

ESRI forms using hooks

This has been bugging me for a while. I can easily call a form from a button using ShowDialog() if I use standard vb.net windows form. However when I use the ESRI addin dockable window which uses ...
1
vote
1answer
738 views

How do I save edits from an ArcMap editing session using VB.Net?

I have figured out how to do a map save document, but I would also like to be able to save edits whether or not I am also saving the map document.
2
votes
1answer
80 views

x, y to decimal degrees on mouse click in ArcObjects?

I am converting an old VBA code I used to use in ArcMap 9.2, into VB.NET for ArcMap 10. It should extract x, y coordinates from OSGB and converts to decimal degrees while copying to clipboard. I ...
1
vote
1answer
114 views

Arcobjects vb.net forms in Arcmap 10.0

I am trying to create a basic form using ArcObjects (Vb.NET) to view in Arcmap 10.0. I have created the form using the designer but cant view it in Arcmap. I have created a button that will call the ...
1
vote
1answer
453 views

How do you set a polygon layers transparency in DotSpatial

How do you set a polygon layers transparency in DotSpatial? I'm using vb.net in visual studio express 2013 and using a Dotspatial nugets package which has given me DotSpatial version 1.7. Please see ...
4
votes
1answer
901 views

Visual Basic editor command icon is always disabled

I recently installed ArcGIS 9.3 in a PC with Windows 7.0. I opened an existing mxd file within which I developed some toolbars for a project. Each icon of a toolbar has behind it a VBA and ArcObjects ...
4
votes
2answers
1k views

ArcObjects VB.Net - Editing in Geodatabase

I have a script in VB.Net for grabbing values from one feature and assigning them to another. It works fine on shapefiles, but upon importing the same shapefiles into a file geodatabase, I get an ...
0
votes
0answers
54 views

Maplex labeling don't work?

I have a problem with the application of Maplex label, I use arcobjects with VB.net This is code, gives no error but it appears just standard labels. Public Sub Show_MaplexLabel(ByVal ...
0
votes
1answer
49 views

Finding whether point on polygon or not in ArcGIS VB.NET?

I am working on GIS application. I am trying to find whether a point is located within a polygon or not. I have written a piece of code for this using Relational operator but the Contains() method of ...
0
votes
0answers
97 views

VB.net Converting UTM to Lat/Lon (State Plane with WKID) - ArcGis

I have looked at many libraries. Many simply don't work, others are very poorly documented. I have a very long list of X/Y coordinates (US FT) and an associated WKID. I am trying to convert that to ...
1
vote
0answers
15 views

IRasterLayerExport3 doesn't save raster until ArcMap closes [closed]

I'm trying to export raster using IRasterLayerExport3, but it saves raster file only after closing ArcMap. It seams that IRasterLayerExport3 creates placeholders for raster (empty file - 3kb), and it ...
3
votes
1answer
296 views

Repairing disconnected layers with selection sets using ArcObjects?

Has anyone had any success of repairing disconnected layers that have selection sets that have their data sources broken in ArcGIS? Is there a way to detect this through code and then re-create that ...
1
vote
1answer
513 views

Methods to accurately georeference geographic map?

I'm writing an application that allows the user to sample points and perform georeferencing In order to test it I have a large scanned map (16k x 13k) pixels covering the area 31 north to 34 north ...
0
votes
0answers
38 views

Finding nearest point on polygon if layer has more than one polygon using ArcMap AddIn?

I am developing an application using ArcGIS .net add-in. An application generates some maps based on point and polygon datasets. In that, I am able to find the polygons within the search distance. ...
-4
votes
1answer
448 views

Creating multipart polygon using ArcObjects if coordinates of each part are given? [closed]

How to create a multipart polygon if i am having the values of coordinates of each part. I am using ArcObjects in VBA or VB.NET
1
vote
1answer
83 views

Finding Points where two polylines cross in ArcGIS Runtime .NET SDK?

I am using ArcGIS SDK for .NET and have a graphic overlay defined on my mapview. I added two circles to the map (made with polylines) which overlap. I now need to determine the points at which the ...
2
votes
1answer
262 views

arcmap editor attribute window fill value programmatically

In my map I have a layer named PARCEL, when create new feature on this layer, the attribute window will open automatically. There are 2 attributes in this layer: PARCEL_ID and SUB_ID. Since the ...
0
votes
1answer
55 views

Split by attributes with 2 fields

I am using SplitLayerByAttributes toolbox. It’s a very useful tool for me to process certain activities. As you know, I can split the feature class as per 1 field. What if I want to split the features ...
3
votes
0answers
102 views

Listening for edit events through dockable window using ArcObjects?

I am creating a dockable window that allows users to select features of a particular featureclass, iterate through records in the featureclass, populate textboxes with certain attributes, and edit ...
2
votes
1answer
73 views

I am making a selection with ArcObjects, is there an Issue with iSelectionSet:AddList or do i have an error somewhere?

I collect a set of OIDs into an OID array (long), this happens in a loop and if i find an OID i want to add to the array, I REDIM PRESERVE to expand the array. iOIDListCount = iOIDListCount + 1 ReDim ...
2
votes
2answers
268 views

Why am I unable to enable my addin extension?

I am working on an ArcObjects addin for Desktop 10.1. I am using the SelectionExtension as a template for my addin. I was unable to listen for events through a dockable window, so at others' ...
-1
votes
2answers
106 views

Changing datasource of a .lyr file results in empty layer with empty symbology (ArcObjects VB.NET)

I'm having a hard time adding my grid to the map and changing its symbology with an existing lyr file. I have found a great post by Neil Clemmons that explains this, but it doesn't work for me. I ...
1
vote
1answer
68 views

Comparison between using VB.net or C# in ArcObjects or ArcGIS Server [closed]

Is there any differences between using VB.net or C# in ArcObjects or ArcGIS Server based projects, in functionalities, samples, Q&A community? Is there any comparison which covers these aspects to ...
2
votes
0answers
203 views

How can I get domain values associated with a field using ArcObjects?

I am trying to access the domain of a selected feature. I have seen examples for VB.NET and C#.NET, but I cannot access the domain of a specified field. Dim findName As String = Nothing Dim ...
3
votes
1answer
133 views

Field cannot be deleted because it is being used as relationship key?

I want to delete some fields of featureclasses, but when I run the code FeatureClass.DeleteField(Field) it works well for some featureclasses but after some time it gives an error such as: The ...
0
votes
1answer
47 views

How to use an array for buffer

I want to to use an array to create 3 buffer files with different buffer distances. The code should produce 3 buffer files in one step. Additionally, the code below runs already after using an ArcGIS ...
0
votes
1answer
121 views

vb.net arcobjects - show fieldname

I try to show the field names (alias names) of a feature class. I found code snippet but I don't succeed to get it to run :( Can somebody tell me please what is wrong in the code? (System: Arcgis ...