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
1answer
24 views

How to use IWorkspaceName2

I'm trying to make a little utility to generate encrypted passwords for MSD files (change the XML inside the zip). I found this example online, but I'm not familiar with esri's API, so I'm not sure ...
1
vote
1answer
24 views

ArcObjects - Highlight something in TOC

Can someone help me please, I'm searching for a way to highlight a Feature Class in the TOC. I tried so many snippets and I didn't get the result I wanted So what I'd like to have is a function ...
1
vote
1answer
34 views

vb.net arcmap add-in loop through a dbf file get 'System.NullReferenceException' error

I am using vb.net arcmap add-in. I encounter a System.NullReferenceException error and cause arcmap crash. The workflow in my vb.net code is: (1) create a ShapefileWorkspaceFactory (2) use the ...
2
votes
2answers
21 views

Getting a list of ObjectID from a Selection Set Object using ArcObjects 9.3 in VB.Net

I am trying to get back a list of ObjectIDs from a selection set using VB.Net in ArcObjects for ArcGIS Desktop 9.3. I have been passing an object populated using the ".IDs" method from the ...
-1
votes
0answers
37 views

Searching in ArcMap using VB.NET?

How can I search in ArcMap Table with VB.NET and zoom to the world/location on the map?
0
votes
1answer
2k views

“Error HRESULT E_FAIL has been returned from a call to a COM component.” during using geoprocessor by VB.net

I am also get a error shows like "Error HRESULT E_FAIL has been returned from a call to a COM component." And the Exception snapshot shows the "stacktrace" is at ...
0
votes
1answer
231 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
22 views

vb.net arcobjects mapping different field values in attribute table

I need to mapping different field values in an attribute table. The attribute table as follows: For example, I want to get the "DrainName" value when "BQ no." = "22/22" and "Segment ID" = ...
0
votes
1answer
35 views

arcpy SearchCursor return a OBJECTID value not as an integer

I use summary statistics GP tool to extract the max OBJECTID from a feature layer. After that I use arcpy SerachCursor to get the OBJECTID value from the statistics, but the result returned is not an ...
1
vote
0answers
43 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
128 views

ArcGIS 10 export metadata to XML programmatically

I have some code that exports metadata from an iMetadata instance to a standalone XML file. This code uses the ExportXML type and the iMetadataExport interface (see below). Private Sub ...
0
votes
1answer
15 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
0answers
12 views

vb.net arcobjects remove a buffer

I have a function which can select and zoom to a feature, at the same time I will create a buffer around the selected feature so that further more function provided only for the selected feature. The ...
2
votes
2answers
24 views

vb.net arcobjects determine whether arcmap is in editing session

I have a vb.net arcmap addin which provide a function to validate geodb topology. But there is a problem, when I am not in editing session and use the function, arcmap will crash. In this case I ...
0
votes
1answer
36 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
36 views

How to create a transparent buffer of a polyline?

I use vb.net arcobjects create a buffer around a polyline feature once it is selected. The problem is the buffer has a obvious colour. Since I have other functions on the selected feature, I cannot ...
0
votes
1answer
21 views

vb.net arcobjects determine 'create features' on which layer

When I create new feature in editing session, I need to determine the new created feature is in which layer because after that have further more action on the layer. I wonder can this be done in ...
1
vote
0answers
18 views

vb.net arcobjects validate topology function only works after I use arcmap topology tool validate topology first

I find a strange thing occasionally, I have a validate topology function developed by vb.net arcobjects. It work not properly. The case is: open arcmap start editing use my validate topology ...
0
votes
1answer
21 views

vb.net arcobjects check if topology has error

I follow the esri example for validating topology, is it possible to tell whether topology error exists? The code I use: ' Step 1 - access a topology Dim topoUiD As UID = New UIDClass ...
3
votes
0answers
45 views

How do I check what type of mapsurround is on the map?

I want to have the program add a scalebar to the map, but only if there isn't one already on the map. The code below works for legends, but when I try to replace ILegend with IScalebar it doesn't ...
2
votes
0answers
46 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 ...
1
vote
1answer
25 views

Working with topology errors sample code error

I am following the sample code from ESRI for checking topology errors using vb.net. But in my workspace an error happened. My code is listed below: ' Step 1 - access a topology Dim topoUiD As ...
2
votes
2answers
56 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 ...
3
votes
0answers
29 views

ArcMap add-in (vb.net) datagridview will crash map when right click on the title part

I find the problem accidentally. In my ArcMap add-in, there is a search function which allows the user to search the geodb based on the value of a field. It works fine but today when I right click the ...
0
votes
1answer
60 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 ...
1
vote
1answer
38 views

Access a topology sample code runtime error when define ITopologyExtension

I encountered a runtime error when I used the sample code from ESRI on Accessing a topology. The sample code is as follows: Dim topoUiD As UID = New UIDClass topoUiD.Value = ...
1
vote
0answers
21 views

vb.net arcobjects “current no topology available”

I am using ArcMap add-in to perform a topology validation. I have defined a topology in the geodatabase and add it in ArcMap TOC. When I try to get the current topology using ArcObjects, I get this ...
0
votes
0answers
35 views

IMap.FeatureSelection get the selected feature field value always return -1

I am following the sample code of ArcObjects (vb.net) of IMap::FeatureSelection, I want to get 1 field value of all selected features. unfortunately I always get the value -1, any idea on it? The ...
2
votes
3answers
161 views

ArcGIS Geoprocessing and 32/64 bit architecture Issue

I am coding a VB.net console application using ArcObjects to call ArcGIS 10.1 geoprocessing tools. I have several geoprocessing calls that actually work, but that pop up an irritating message box when ...
2
votes
1answer
74 views

vb.net ArcObjects is there a function the same as “Select Features by Polygon” of ArcMap's tool

I want to know whether there is a function provided by ArcObjects (vb.net) to realize the "Select Features by Polygon" on ArcMap (shown below). I am using VS 2012 (vb.net) and ArcObjects 10.2.2, ...
15
votes
5answers
2k views

How can I find the farthest point from a set of existing points?

I have a set of points as a shapefile and I want to find (the coordinates) of a new point which will have the longest possible distance from each of the existing points. Is that possible? If yes, is ...
0
votes
0answers
25 views

Can arcobjects validate topology globally

I want to develop a function which allow user to validate a topology in the whole map wide. But from what I searching from internet, to validate a topology, a dirty area (polygon) must be defined, ...
1
vote
3answers
1k 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 ...
0
votes
1answer
35 views

ArcObjects - Geometry type select with Vbnet

How can I read the geometry type of shapefiles with ArcObjects and Vbnet? I want to check whether it is a point, polygon, or a line.
0
votes
1answer
27 views

vb.net arcobjects validate topology ITopologyExtension and esriTEEventHint not declared

I am trying to use arcobjects with vb.net to validate a topology (already defined). I am caught even when I use the sample provided by ESRI. The code I use for accessing a topology is: Dim topoUiD ...
1
vote
1answer
63 views

Error while scripting ArcGIS in VB.NET “Exception from HRESULT: 0x80040202”

I am getting this Run time Error while coding ArcGIS in VB.NET script to calculate distance between two 3-D objects. “Exception from HRESULT: 0x80040202” I tried to understand the problem but ...
0
votes
1answer
33 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 ...
3
votes
2answers
378 views

ArcObjects Geoprocessing Failures

I am working on launching the GenerateNearTable using the ArcObjects Assembly method. I have the advanced license (10.1), so the tool is available. The code to launch geoprocessing is: Private ...
2
votes
1answer
61 views

Update attributes during edit session using ArcObjects

I have made an attempt to create an ArcObjects addin to help with some workflows here in the office. I apologize in advance if I have something fundamentally wrong with the code. This is my first ...
1
vote
1answer
70 views

Distance analysis of 3-D surface in ArcGIS using VB.NET

Using VB.NET I created a 3D polygon in ArcGIS to model a fault plane and now I want to find two different distances from a point on earth's surface. How to go about this? Can some one help with the ...
0
votes
2answers
72 views

How to find the coordinate system of an existing Map in arcGIS using VB.NET [closed]

I already have a georeferenced base map loaded in ArcMap. I want to find the spatial reference of this map and assign the same coordinate system to a polygon that I created. I can not get a start with ...
0
votes
1answer
47 views

Difference between 'point' and 'WKSpoint' in ArcGIS

I have to add 3-D points to make a polygon in ArcGIS using VB.NET. I have defined an IpointCollection and want to add points to this. I have options to add 'point' or 'pointcollection' or 'WKSpointz'. ...
0
votes
1answer
34 views

How to create a TIN in arcGIS from 5 points using VB.NET

I am asking this question as I do not have any experience in VB.NET coding. I tried to follow ESRI help but I did not quite understand it. I have 5 points with X,Y and Z dimensions. How to add these 5 ...
1
vote
1answer
38 views

How to enable 3D analyst in ArcGIS through VB.NET?

I tried to create a TIN and suddenly an error comes saying "3D analyst is not enabled". In ArcGIS it can be done through managing extensions. How to do it through vb.net ?
0
votes
2answers
52 views

Inverse of Selected Records using ArcObjects? [closed]

What is the Process to find the inverse of selected data from featureclass using vb.net arcobject?
0
votes
2answers
155 views

Find centroids of polyline and create point using Arcobject [closed]

I have one road feature class and one area feature class .What i have to do is i have to create a point at the centroids of the polylines of (road feature class) and find intersection of point with ...
3
votes
1answer
55 views

Is extrusion of a line (which is curved) into a plane at a certain angle possible in ArcGIS?

I have a polyline shape file which is a fault trace on earth's surface. I want to extrude this into a 3-D plane at a certain angle (which is dip angle of the fault). However, the extruded plane ...
2
votes
1answer
170 views

Dissolving stream orders using Python rather than VB script?

I've been trying to dissolve streams, using orders programatically and I came across this VB script. The reason is that if I use ArcGIS dissolve, it merges the confluence of the same orders. I would ...
0
votes
0answers
113 views

Using Code Block in Field Calculator with ArcObjects (VB.NET)

I'm having trouble using a code block in the Field Calculator with ArcObjects. Ideally, I'd like to be able to read a text file which contains the Python code for the code block. I've tested this code ...
0
votes
1answer
51 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 ?