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

learn more… | top users | synonyms

2
votes
1answer
376 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
2answers
34 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 ...
0
votes
1answer
207 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
170 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 ...
2
votes
0answers
31 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
105 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
0answers
10 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 ...
0
votes
1answer
20 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 ...
1
vote
1answer
397 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. ...
0
votes
1answer
37 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 ...
0
votes
1answer
38 views

Arcobjects vb.net stringbuilder

I'm newbie and have question about string builder to show the arcgis layers. (System: ArcGis 10.2, VisualStudio2012) I don't succeed to show the loaded layers in a line of the message box. code: ...
1
vote
1answer
2k 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 ...
0
votes
1answer
66 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 ...
1
vote
2answers
50 views

How do I find a layer based on source name using ArcObjects?

I am relatively new at creating tools with ArcObjects and I am having trouble finding a layer based on the layer's source name by looping through all layers. I've seen here that it is possible, but I ...
1
vote
1answer
39 views

Snapping Agent does not work with ArcGIS 10

I'm trying to create snapping agent, I'm using the standard code from ESRI ArcObject Library, this code works perfectly on VB6/ArcGIS 9.3, but not on VB.net (3.5 SDK) and ArcGIS 10. The property ...
2
votes
2answers
54 views

ArcObjects interface to construct circles with segments instead of arcs

I am trying to see if it is feasible, using ArcObjects (VB.NET), to create a tool to construct circles comprised of line segments instead of arcs. I've looked over the available interfaces here but ...
0
votes
2answers
216 views

Geoprocessor: using arc toolbox in vb.net

i am doing the following in order to use the predefined tool points to line in arctool box Dim ptoline As ESRI.ArcGIS.DataManagementTools.PointsToLine = New ...
0
votes
0answers
31 views

IDockableWindow ability to auto size?

I have a ArcObjects 10.2 vb.net Custom Add-in that is a dockable window. The dockable window displayes a windows form that has listboxes, textboxes, panels, tab panels, etc. that the user interacts ...
1
vote
0answers
37 views

Substract 2 rasters with Raster Calculator in ArcObjects (VB.NET)

I'm having a hard time substracting 2 raster with ArcObjects sdk 10.1. I keep getting a nullreference exception at the gp.execute() method, but I can't figure out where the problem is, I recall ...
1
vote
0answers
18 views

Is there a way to keep a a custom tool active while using the edit tools using ArcObjects?

I'm developing a tool that, when the user creates a feature in a certain feature class, prompts the user with a form to populate one of the fields in its attribute table. I'd like to have the user use ...
0
votes
1answer
65 views

Initial state of VB .net checkbox to toggle ArcMap layer visibility

I have a checkbox control as part of an ArcMap add-in with a dockable window in VB .net that turns a particular layer's visibility on and off in ArcMap. The initial state is set to "unchecked". But, ...
1
vote
1answer
97 views

Order a list of points to make a polygon with smooth outer border

I have a function that pulls some lat/longs from a Database and then I put those values in a polygon to see it's shape. The problem is they are so random in position and direction from each other that ...
2
votes
1answer
266 views

How to get a feature class from a File Geodatabase in ArcObjects? (VB.NET)

I just started out with ArcObjects and I've been stuck on this for days. How do you open up a File GDB and read out a simple feature class? The snippet for retreiving a shapefile from a regular ...
1
vote
4answers
2k views

How can I permanently reorder fields in a feature class programmatically with ArcObjects, VB.Net?

Would someone be able to share the logistics on how to permanently programmatically reorder fields in a feature class with ArcObjects, VB.Net. I want to be able to do this in the geodatabase not in ...
2
votes
1answer
1k views

ArcMap Geoprocessing vba code/tool - smooth polygon

I would like to execute the smoothpolygon tool within ArcMap vba and I'm having some trouble defining the parameters syntax for the tool. I'm getting this error below: ERROR 000622: Failed to execute ...
2
votes
1answer
27 views

Getting the New Map When the FocusMapChanged Event Fires

Normally, in ArcMap, when an event handler to catch the FocusMapChanged event is set up, and a new map (data frame) is activated, when the event fires, a reference to the FocusMap returns the map that ...
2
votes
1answer
42 views

Show selection set in Attributes Window

I have an ArcObjects extension that creates a selection set and then zooms to the selected features. This part works as expected. The problem that we are having, however, is that the selection set ...
1
vote
1answer
21 views

Catch the VisibilityChanged event for TopologyLayer

I can set up a handler to catch the VisibilityChanged event of every map layer returned by: pEnumLayer As IEnumLayer = My.ArcMap.Document.ActiveView.FocusMap.Layers(Nothing, False) Then with each ...
10
votes
4answers
583 views

Does SHAPE_Length take into account elevation values?

Does the Shape_Length attribute take into account the elevation? For instance, if I have 3 points: A, B, and C A.X = 10 A.Y = 10 A.Z = 10 B.X = 10 B.Y = 10 B.Z = 50 C.X = 0 C.Y = 0 C.Z = 10 Then I ...
1
vote
2answers
258 views

Export Page Layout to PDF using ESRI add-in with vb.net

Note: This message is cross-posted on geonet (https://geonet.esri.com/thread/127249) I have been trying to convert a vba script to vb.net but I have hit a roadblock and I'm hoping someone can help me ...
0
votes
0answers
66 views

Export map and mailing data via a console application in VB.NET?

Problem: A client saw a JavasScript demo and would like some of its functionality replicated in VB.NET. I don't understand how the JavaScript demo works nor how to convert it to VB.NET. I have also ...
2
votes
1answer
446 views

Unable to create .esriAddin; missing ESRI ArcGIS Add-in SDK components(s)?

What am I missing? I upgraded to ArcGIS 10.3 succesfully recompiled all other 20 or so addins after encountering a similar issue and renaming "ESRI.ArcGIS.AddIns.11.targets" to ...
2
votes
0answers
131 views

Visual Studio not creating “.esriAddIn” file

I have an addin that I've been maintaining with Visual Studio 2010 Express for quite some time with no issues. Recently my computer was replaced and Studio 2012 Express was installed. Since that time ...
1
vote
0answers
86 views

Need a free\open source library to calculate LOS & Viewshed using C# \ VB

I'm working in a Radio Propagation Analysis project that required to draw the Line-Of-Sight (LOS) between two radio antennas and calculating the View-shed for one radio antenna. So i need a Free\Open ...
1
vote
1answer
480 views

Creating SQL query in ArcGIS Explorer SDK?

I am using the ArcGIS Explorer SDK and have run into an issue surrounding a query I would like to perform with SQL. I believe my query is built wrong or perhaps I am looking at the wrong fields. Would ...
6
votes
4answers
538 views

Migrate in a new programming GIS language

The last five years I have been working with VBA and ArcObjects for developing a specific application within ArcGIS. That project that began around 2008-2009 carried out with VBA and ArcObjects which ...
0
votes
0answers
108 views

How to find co-ordinates of two intersecting features (circle and polyline) in vb.net using arcobjects?

I am new to arcobjects and i want to find the co-ordinates of the intersection points of a circular arc and a polyline. Can somebody please help me with this. I've tried the following code but it is ...
3
votes
2answers
2k views

Finding path where add-ins are installed for ArcGIS Desktop?

I see that my add-ins are installed to C:\Users\Me\AppData\Local\ESRI\Desktop10.0\AssemblyCache{6C90269B-D233-4122-3747-C2AE1131E22C} Is it possible to find that file path from within the Add-in ...
0
votes
1answer
125 views

Geometry to Shapefile

From importing the shapefile to postgis, its geometry is added to the database postgresql. The question, how can I load the shapefile in the Visual Basic.Net using the geometry in the database ?
1
vote
1answer
116 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 ...
5
votes
3answers
3k views

Remove Shapefile lock

I have an ArcObject Dissolve procedure that creates a shp in a directory. This dissolved layer is a temp layer and is not added into ArcMap. I would like to delete it when the user clicks a button ...
0
votes
2answers
107 views

How to read DGN using GDAL in VB.Net?

Reading a DGN file is a big problem for me. I tried more and more but can't find a way to read a dgn(v8) file by VB.Net. After many search, i found out that GDAL can read and write dgn file, but i 'm ...
2
votes
2answers
349 views

vb.net arcobjects spatial query get fields value of desired layer only

Currently I am using ArcObjects (10.2.1) in vb.net (vs 2012). What I intent to develop is a spatial query tool. There are 2 steps in the function: (1) Use "Select Features" tool in ArcMap to select ...
0
votes
1answer
92 views

How to run spatial query get fields value of 2 layers?

Last month I ask a question "vb.net arcobjects spatial query get fields value of desired layer only", url vb.net arcobjects spatial query get fields value of desired layer only. Now there is some ...
0
votes
1answer
338 views

What method should I use to accurately georeference a 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 ...
3
votes
0answers
314 views

Add WMS Layer into map using Arcobjects

I am going to add a wms layer to my existing map.I use this code: public load_wms(ESRI.ArcGIS.Controls.AxMapControl mapcontrol) { // Create an WMSMapLayer Instance - this will be ...
0
votes
0answers
27 views

ITopologicalOp simplify

I want to simplify a polyline geometry so that at the intersection line was torn, that is added EndPoint (see figure below). Polyline Feature class is stored in a file geodatabase in the dataset, it ...
0
votes
1answer
106 views

How to batch export to PMF using ArcGIS 10.2 and VB.Net

This is my first post, and was hoping I might be able to get some assistance. I have modified a code I found online to batch export a series of map documents (mxds) to ArcPublisher files (PMFs). I ...
4
votes
3answers
1k views

Problem creating a point IFeatureClass

I'm trying to create a point IFeatureClass, but my code doesn't work. Public Function CreatePointFeatureClass(ByVal featureClassName As String, _ ByVal ...
0
votes
0answers
641 views

How to solve a Run-time error 91?

I have a function which a part shown below. The problem is that I get a Run-time error 91 (object variable or with variable not set) and the debug highlights the last line of the code ( Set ...