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

learn more… | top users | synonyms

3
votes
1answer
456 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 ...
4
votes
1answer
582 views

Visual Basic editor command icon is always disabled

I recently installed ArcGIS 9.3 in a PC with Windows 7.0. I opened an existing mxd file within which I developed some toolbars for a project. Each icon of a toolbar has behind it a VBA and ArcObjects ...
2
votes
1answer
329 views

How to use nested loops with cursors?

I use the following nested loops to read the first point feature of a dataset and the rest points in that dataset. Then read the second point feature of a dataset and the rest points in that dataset ...
3
votes
2answers
604 views

How to loop through an array of point features?

I have a set of point features and I wish to find the points that have common coordinates. Now I changed the code as shwon bewlo by using the IPoint and the compare method through a function. I have 2 ...
2
votes
1answer
351 views

How to cast SDE table to IFeatureClassLoad

How do you cast an SDE table to IFeatureClassLoad using ArcObjects? I'm getting an error with this attempt below which is not the correct method: Dim pSDEFeatWksp As IFeatureWorkspace = ...
4
votes
1answer
1k views

Filtering a raster by pixel cluster size in ArcGIS?

I have a raster image representing islands in a river (see image) created using the following process: 1) Clip a water surface DEM and watershed DEM by a bounding polygon (waters' edge). 2) Subtract ...
1
vote
0answers
1k views

Edit SDE table with ArcObjects - continued [closed]

Update So, I believe I'm getting closer to being able to edit my sde table, however now I'm getting stuck on this line: Dim updateCursor As ICursor = table2.Update(Nothing, True) With this ...
10
votes
4answers
446 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 ...
0
votes
1answer
367 views

arcgis server 10, vb.net, IMathOp problem

i am using arcgis server 10 and visual studio with vb.net to build web mapping application. inside my code i have the following line: Dim RasterCal As ESRI.ArcGIS.SpatialAnalyst.IMathOp = _ New ...
5
votes
1answer
2k views

Selecting the MAX value from a feature using ArcObjects?

I have a feature (point) with a field called 'Sequence'. The values in this column range from 1 to n. I can use IQueryFilter to get the first value, 1. Dim pQry As IQueryFilter = ...
2
votes
1answer
311 views

arcgis server 10, vb.net add reference problems

i am using 'arcgis server 10' and 'visual web developer 2010 express'. now, i opened a 'web mapping application' then wanted to 'add a reference' to 'esri arcmap object library 10.0' it says: A ...
1
vote
0answers
225 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. ...
2
votes
5answers
2k views

Programmatically calculating the length of all polyline features in a featureclass

I've come across this issue a few times and have not yet found an agreed upon solution on any forum. Simply put, I have a featureclass containing many polyline features. I would like to calculate the ...
2
votes
1answer
477 views

Adding an ILayer to IMap in Arcgis Server 10

I wanted to add ILayer to IMap, i think it has been added but problem is that it does not display it on the website. I am running arcgis server 10, using visual web developer 2010 express edition ...
1
vote
0answers
214 views

arcgis server 10, vb.net, non pooled service, web adf

i am running arcgis server 10. i created a A.MXD file, then started arcgis server and successfully added non-pooled service using A.MXD. i also installed visual web developer 2010 express and created ...
2
votes
1answer
544 views

arcgis server 10, .net web api samples

i am running arcgis server 10, installed visual web developer express 2010 edition, now wanted to run samples from arcgis.com for .net web api, for example the following one ...
2
votes
2answers
940 views

ArcObjects: Getting the properties of a layer that has lost its data source (VB.NET)

When you save an ArcGIS map document (MXD) and then change the data source of a layer in the MXD, you can no longer see the layer in the MXD and you must redefine its data source. But suppose you ...
4
votes
2answers
890 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 ...
3
votes
4answers
3k views

Sum the values of a single raster and output the value as a number?

I have a floating point raster and have applied a conditional to it in order to only extract the positive values, so there are 'no data' "holes" in the raster. I simply need to sum the values from ...
6
votes
4answers
849 views

Deriving separate polylines from coded points using ArcObjects (Figure inside)

I have a single point featureclass that represents the left and right sides of a landform (the points are coded as either 'right' or 'left'). Visually I can pick out and digitize two lines along these ...
8
votes
4answers
2k views

Connecting line features and determining the length of the longest line

I have a line feature (see image) representing a river that I created using the Stream_to_Feature tool. The attribute table contains several records representing different lines - the problem is the ...
2
votes
1answer
592 views

ArcMap Commands .NET code equivalent

What is the .NET code equivalent for this general ArcMap command syntax: Application.Document.CommandBars.Find(ArcID.Query_ClearSelection).Execute() I have been using this one below as a work ...
1
vote
1answer
456 views

ArcObjects DataStat Error

I have some code that adds a bunch of group layers into ArcMap based on a table within ArcMap. The code works fine in VBA, however in VS 2010 I get an error on the "pEnumVar = pDataStat.UniqueValues" ...
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 ...
3
votes
2answers
879 views

ArcObjects VB.Net - Editing in Geodatabase

Greetings, I have a script in VB.Net for grabbing values from one feature and assigning them to another. It works fine on shapefiles, but upon importing the same shapefiles into a file geodatabase, I ...
1
vote
3answers
2k views

ArcMap Form/Button VB.NET MxDocument hook

---UPDATE--- see below I have a scaling raster tool that I'm attempting to migrate from ArcGIS 9.3.1 VBA to VB.NET (Visual Studio 2010). I have a BaseTool that is used to put two graphic points ...
-1
votes
3answers
687 views

ArcObjects conform to .NET standards Error

So, I'm following the "Walkthrough: Migrating VB6 to VB.NET for ArcGIS 10" to convert my VB code to .NET (using Visual Studio 2010), and I'm running into this error, "NullReferenceException was ...
4
votes
4answers
1k views

Exploring ArcObjects through C# or VB from Python background

While I understand that this may be off topic to an extent, I am in a bit of a bind and could use some help directing my thought process and research. I have little programming background aside ...
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
0answers
187 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 ...
2
votes
3answers
591 views

CreateFeatureClass failure in vb.net

I'm using ArcGIS 9.3.1 and trying to get the code to create a new feature class in an existing personal geodabase to work but I am having no luck. When running in debug mode from within vb.net it will ...
1
vote
2answers
801 views

How to get a polyline from a polygon in ArcGis Server 9.3?

I'm want to get the lines of a polygon and then get the length of each line, I'm looking on how to do this, Can anyone show me some code? Does anyone have any pointers on how to do this? I'm using ...
2
votes
1answer
639 views

Create data table in geodatabase

Using vb.net, my custom tool needs to create a data table in my geodatabase to store some information for later use. The user will be in ArcMap 9.3.1 with the geodatabase up and layers displayed. I ...
2
votes
1answer
980 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 ...
3
votes
2answers
727 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 ...