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

Problem with ArcGIS annotation

i have a problem with annotation (ok i will explain) : in database i have : parcelle : a geometry table that contain polygons personne : a table contain parcel's owners pll_personne : is the ...
1
vote
1answer
25 views

Assign a Value to a Customized Toolbar Item

I have developed a main toolbar that uses windows forms and arcobjects to write to sde databases. I am trying to extend the functionality of the toolbar to point to two different databases dependent ...
14
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 ...
2
votes
2answers
3k views

VBA to VB.NET (Visual Studio 10) Migration - ArcMap Focus

I will be migrating several VBA applications currently in ArcMap 9.3.1 to Visual Studio 10 in the near future, and wanted some feedback on the general migration steps listed below. I wanted to make ...
2
votes
3answers
409 views

ArcObjects Background Process (Thread) Progress Bar?

Using a toolbar, written in ArcObjects, it is possible to push processing to a separate thread so that the GUI does not lock. Is it possible to have the thread update a progress bar in the same ...
0
votes
1answer
138 views

How to use ArcObjects to limit classes visible in legend?

Is there a method use ArcObjects for .NET to manipulate the "Only show classes that are visible in the current map extent" option for legend items? The GUI for this functionality is accessible via ...
1
vote
2answers
362 views

How to create jpg image of map in Geomedia using vb.net?

I am using Geomedia. I want create jpg image of the map. How can it be done using vb.net?
5
votes
4answers
370 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
154 views

How to get x and y coordinate values of an annotational featureclass

I am able to get the x and y coordinate values from point, polyline, polygon and multipoint type featureclasses. However, I am unable to export x and y coordinate values of an annotational ...
3
votes
2answers
775 views

Add-in; Failure to get code to execute when toolbar button pressed

I had written several VBA routines for ArcGIS up through v9.3 and have since upgraded to 10. Since VBA will be a thing of the past in the next version, I downloaded and installed VB Express 2008 and ...
1
vote
0answers
43 views

IStepProgressor in While Statement

I have implemented DBScan in vb.net (forced to...). I am using a progress bar to track other parts of this tool. These all are implemented in For loops. Therefore, incrementing the tracker is not ...
2
votes
0answers
235 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
63 views

How to smooth XY Co-ordinates of linear feature?

I need to smooth xy co-ordinates. see the image: In this case, i need to remove 5,6,7,8 and 9th co-ordinates or need to make those co-ordinates as a straight line between 4th and 5th. is there any ...
1
vote
2answers
778 views

Data View/Layout View Changes - ArcMap 10

I have code that will hide a certain set of points from the view using an ExclusionSet, and then switch to layout view for printing. I noticed in my 9.1 version, when after I am done printing, and I ...
1
vote
0answers
230 views

arcgis server 10, vb.net, adding dynamic data

i am using arcgis server 10, with visual web developer 2010 express edition. i downloaded "ArcGIS_AddDynamicData_VBNet\Default_ADF.aspx" project form ArcGIS Add dynamic data for ArcGIS Server 10. ...
1
vote
0answers
156 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() ...
0
votes
1answer
545 views

Problem inserting new features to file geodatabase feature class using ArcObjects 10 SDK

I'm trying to add new feature to file GDB feature class and keep getting this error: Objects in this class cannot be updated outside an edit session. Feature class has attachments enabled (exists ...
1
vote
1answer
3k 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
321 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
121 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
484 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
920 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
97 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
2k 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 ...
5
votes
1answer
257 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
477 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
261 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
157 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
125 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 ...
3
votes
1answer
395 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? ...
4
votes
1answer
300 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 ...
3
votes
1answer
130 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
88 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
815 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 ...
1
vote
1answer
338 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
326 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
262 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
83 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 ...
1
vote
2answers
288 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
145 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
249 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
259 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
449 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
229 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
134 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
576 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 ...
3
votes
2answers
575 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
191 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
133 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 ...