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

learn more… | top users | synonyms

0
votes
0answers
21 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
49 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 ...
2
votes
1answer
21 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
34 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
15 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 ...
0
votes
0answers
43 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 ...
1
vote
1answer
174 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 ...
1
vote
2answers
160 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 ...
2
votes
0answers
79 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
42 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 ...
0
votes
0answers
84 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 ...
1
vote
1answer
81 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
2answers
53 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 ...
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
86 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 ...
2
votes
2answers
143 views

Arcmap VB.NET export map to SHP error

I want to export a query to a Shapefile. If the query is empty I get an error and it will not export. How can I do nothing if the query is empty and export next query in the list? Sample if I ...
0
votes
2answers
63 views

feature store get NullReferenceException error

I am trying to update a field value according to the selected OBJECTID. But get System.NullReferenceException error. Don't know what's wrong with the code. My code is as follows: pActiveView ...
2
votes
0answers
99 views

Row.Value returns rounded SHAPE.area and SHAPE.len values

I have created a VB.Net Add-In, and am using IRow to get the value of fields in tables in ArcMap to use in a query. But I am encountering a problem when getting the values of the SHAPE.area and ...
0
votes
1answer
69 views

arcobjects determine when attribute dialog window closed

In arcmap, I choose to "Display the attributes dialog before storing new features" in editor options for several layers. I intend to do further development upon user closing the attribute dialog ...
1
vote
1answer
64 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
38 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
115 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 ...
0
votes
1answer
190 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
173 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
1answer
1k 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 ...
2
votes
2answers
126 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 ...
0
votes
1answer
127 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
33 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
69 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
156 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
80 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
89 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
54 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
44 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
62 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 ...
3
votes
0answers
253 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
50 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 ...
3
votes
0answers
66 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 ...
2
votes
2answers
287 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
169 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
0answers
29 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 ...
1
vote
1answer
75 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 = ...
0
votes
0answers
76 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
1answer
246 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, ...
0
votes
0answers
36 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, ...
2
votes
3answers
343 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 ...
0
votes
1answer
40 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 ...
0
votes
1answer
97 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.
1
vote
1answer
139 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
81 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 ...