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
4k views

Code for SelectionChange Event on Comboboxes in VB.Net [closed]

I am programming 3 combo boxes so that each one feeds off the information from the previous combobox. For example, in the first box they would select a year, then the second combobox would provide ...
0
votes
4answers
344 views

How to solve a run-time error in Thiessen polygons command line

Well I revise my post by giving more information for my problem hoping I may get some help please. I call Procedure 2 from a loop that is within Procedure 1 (see below). The program stacks in the ...
2
votes
1answer
152 views

How can I suspend default shortcut menu and substitute with a custom menu in the TOC?

I looking for solution (using ArcObject SDK 10.1 (VB.NET) ArcMap Addin template) to substitute the default shortcut "right-click" menu in the TOC (When a TOC Item is right-clicked) with a custom menu ...
4
votes
2answers
617 views

Is IPolygon2.QueryExteriorRingsEx Method not working in ArcGIS version 10.1 SP1?

I am updating my addins from 10.0 to 10.1 and my code is crashing on the IPolygon2.QueryExteriorRingsEx Method. I understand there is something strange going on with this method because Developer ...
2
votes
0answers
1k views

How can I copy selected polygon features to a polyline feature class with ArcObjects?

I would like to copy selected polygon features to a polyline feature class. (Similar to how polygon features can be copied and pasted inside an edit session in ArcMap) Until recently I've been using ...
1
vote
0answers
99 views

ArcGIS Server - Polygon lines dimenstions

How to measure the lines of polygon . VB.NET + ArcGIS Server . I have ArcGIS Server 9.3 - WebADF - VB.NET
13
votes
2answers
3k views

How can I create weighted Thiessen polygons?

I have a point shape file and I create Thiessen (Voronoi) polygons programmatically using this scripting syntax: CreateThiessenPolygons_analysis (in_features, out_feature_class, fields_to_copy) ...
4
votes
2answers
3k views

How do I change the targeted .NET 4.0 Framework to version 3.5 in an existing VS 2010 EXPRESS project?

I am upgrading from ArcGIS desktop 10.0 to 10.1 and I have a bunch of addins developed in VS 2008 Express using ArcObjects 10.0. I would like to upgrade everything to 10.1 using VS 2010 Express. I ...
6
votes
1answer
295 views

Spatial Query works while stepping through debugger but not otherwise

ORIGINAL POST: I'm not actually sure whether this is a VB.net problem or an ESRI problem...but given the number of really odd ESRI quirks I've encountered, my money's on the latter... I have a piece ...
3
votes
1answer
504 views

Unable to create temporary GeoDatasets in g_g_g folders

I am converting a VBA macro that was written for ArcGIS 9.3 to a VB.NET project using the ArcGIS 10.0 .NET SDK. I am getting the following error whenever the code tries to create a temporary ...
1
vote
1answer
333 views

“There is not enough memory” Error when accessing IArea.LabelPoint

I have an intermittent error that I'm having a terrible time tracking down so I thought I'd see if anyone has encountered something similar. I am trying to access the label point of a polygon feature ...
0
votes
1answer
173 views

Activate layers that are in a checkbox list

I'm trying to do a code to activate layers that are in a checkbox list, the code that I'm trying to use is this: MxDoc = My.ArcMap.Document Maps = MxDoc.Maps If ...
1
vote
1answer
134 views

Don't move Layout

I'm doing a vb.net button to run in ARCGIS. the button is working, the problem is as I'm working in the layot when I press the button, change the layout coordinates and the map coordinates. Is a way ...
5
votes
1answer
493 views

How to programmatically clear all layers from data frame?

I'm trying to create a button using VB.NET and ArcGIS 10 to clear the layers of my data frame. I know how to add layers, but I don't have any idea on how to delete/clear them. Any suggestions? ...
5
votes
1answer
372 views

Turn off field programmatically in ArcMap via VB.Net

I'm creating an addin button in Arcmap via VB.net that when clicked, runs the identify tool. But I want only selected fields to appear in the identify dialog. My idea is to hide the unnecessary fields ...
4
votes
1answer
163 views

How to use IDatabaseCompact.Compact() on an used IWorkspace, without permission denied

I am writting an ArcMap-AddIn with vb.net. I get an error when trying to compact my IWorkspace(mdb), the error is: COMException You tried to open a database, which was already opened by the ...
0
votes
1answer
94 views

Unable to update integers in PGDB table field using ArcObjects

Dim pLinerow As IRow pLinerow = ptable.CreateRow pLinerow.Value(pLinerow.Fields.FindField("IS_CLOSED")) = 0 when this code is executed, the below mentioned error is returned, "Error HRESULT ...
2
votes
1answer
1k views

find path where add-ins are installed

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 ...
2
votes
1answer
401 views

Problem Initializing License for ArcEngine application

I have written an ArcEngine application using vb.net and Visual Studio 2010. When I initially started the code, I indicated an ArcInfo license was available during the project setup. This worked ...
4
votes
0answers
350 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 ...
-5
votes
2answers
304 views

How to create multipart polygon 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. Thanks in advance.
3
votes
1answer
90 views

The field cannot be deleted because it is being used as a 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 ...
2
votes
2answers
325 views

How to get radiobutton checked after pop-out window?

I am trying to migrate my program from ArcMap 10 VBA to ArcObjects VB.net add-in in Visual studio express 2008. I write a ArcGIS addin component tool to draw a geometry, perform a spatial query and ...
1
vote
0answers
153 views

Sending coordinates of features of any polygon featureclass to a table

I am trying to store x-coordinates and y-coordinates of a polygon feature in a table. But, i am getting an error message: Item not found in this collection. The code is like this: Do pFeature = ...
3
votes
1answer
275 views

Counting distinct values in a field of a table stored in pgdb

I need to calculate total count of distinct values of a field . That field contains many duplicate values also. The table which contains that field is stored in pgdb. I want things done in vb .net. ...
1
vote
1answer
321 views

exporting a featureclass to shapefile with selected fields only [duplicate]

Possible Duplicate: How to control which Fields are exported in ArcObjects? (via Field Mapping) I want to export a featureclass to a shapefile.The only condition i want to impose is that ...
1
vote
1answer
490 views

ArcObjects 10.1

just updated to 10.1 and I'm having issues moving from 10.1. I get the errors with my ADF reference when trying to create custom tool bars examples: 'BaseToolbar' is ambiguous in the namespace ...
3
votes
1answer
249 views

Repairing disconnected layers with selection sets

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
0answers
145 views

How to get label text for each feature in vb.net in Arcview

I am trying to get text for the label that Arcview is going to place for each feature when the labeling is on, so that I can write it to a file. Since the labels may have complex operations involved, ...
2
votes
3answers
638 views

Connecting to non geodatabase MS Access database using ArcObjects

I am trying to connect to an MS Access database from a program I have written in VB.Net with ArcObjects 10.0. My MS Access database is not a personal geodatabase so apparently I have to connect to ...
4
votes
2answers
628 views

DLL As Embedded Resource ArcMap Add-In? VB.NET

I tried using StackOverflow, but I don't think anyone can answer my question in context(ArcMap Addins). I am currently developing an add-in that needs to load a custom control DLL as a dependency. ...
2
votes
0answers
193 views

ArcGIS Desktop 10 - MyBase.UpdateBitmap()

I am changing one icon on my extension toggle toolbar in runtime using: MyBase.UpdateBitmap(New Bitmap(Me.GetType(), bitmapResourceName)) This works fine but I get a border/highlight around my ...
1
vote
0answers
139 views

Map Algebra in VB.NET Add-In Tool

I'm trying to run a map algebra expression in a vb.net add-in, and can't seem to get it to work. It's a roving window that interpolates noData areas in a DEM. The expression works in the Python ...
3
votes
1answer
412 views

ArcGIS 10 Addin - Code Doesn't Execute on Another Computer

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. ...
1
vote
1answer
100 views

How do I keep user from selecting a different tool when my custom tool is selected?

I am using VB.Net to write an add-in. I'd like to keep the tool that I created selected even when the user attempts to select a different tool, and only deselect when my tool is clicked on again.
1
vote
1answer
438 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
583 views

How do I save an ArcMap map document using VB.Net?

I am trying to save the map document that is currently open. How do I write the code? I have tried many suggestions that I found using Google searches, but nothing works. Currently I have: Dim ...
2
votes
1answer
567 views

Why do I get an “Type 'IPoint' is not defined” error in VB.NET

I am writing an add-in for ArcMap 10. I am trying to do Dim clickedPoint as IPoint in VB.NET, but I get "Type 'IPoint' is not defined" error. Do I have to import a class or how do I make this work?
1
vote
0answers
289 views

Create IPoint with Lat/Long in decimal degrees and Z in feet

I have written an ArcMap v10 AddIn that reads a folder of geotagged JPEG's and creates a new feature class where each point is the geotag information from on of the JPEG's. The issue is: The GPS ...
1
vote
2answers
472 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
0answers
24 views

How to implement VisibleBoundsUpdatedEventHandler

I have an ArcObjects add-in button that adds attribute value info as a text graphic into a map document layout. Now, instead of using the add-in button click event, I would like the code to run on ...
0
votes
0answers
115 views

Run time error for GP objects

I have a code with toolbars which I tried to run it in another PC but it failed. I get a run time error "Method Addtoolbox of object I GDispatch failed". The line that the code stacks is the last one ...
3
votes
1answer
394 views

ArcObjects 9.2 SDK: How to intersect two SelectionSets (in-memory pointers) and return a FeatureClass?

[Update] Since posting this question, I've come to the conclusion I'm not fighting flaws in the BasicGeoprocessor object, but more likely having issues with poor object lifecycle management on my ...
1
vote
1answer
432 views

Creating a SQL query in the 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 ...
1
vote
1answer
333 views

Use field names in combobox

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
471 views

ArcMap 10 Layout View: search for elements and delete

I've to regenerate a single layout with data from each point feature. So, I wrote a VB.NET routine to clean the layout, searching for text element, selecting it and deleting it. Well, the routine ...
1
vote
1answer
2k views

Add Attritube Field to Combo Box on Form

I am trying to create a user box that: When the button on the toolbar is clicked, a user form appears with a combo box filled in with a feature's location (Taken from the attribute table - such as ...
3
votes
3answers
429 views

Enable Add-In Button if One Feature is Selected from Specific Layer

I am trying to enable an add-in button on my toolbar if only one feature is selected from a specifc Layer. For example, when ArMap loads, the button should be disabled. If the user selects one feature ...
5
votes
2answers
383 views

Why esriSpatialRelTouches relation does not work?

I have two feature layers. The first one is just a polygon and the other one consists of a series of polygons which are enclosed by the first one. Thus, some polygons of the second feature layer touch ...
1
vote
2answers
3k views

ArcObjects VB.Net - Looping through Layers from TOC and ListBox

Greetings, I'm creating a tool in ArcMap 10 using a windows form... its been a struggle (maybe some of you recognize the same themes in my questions) because this is the first time I've really messed ...