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
246 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
0answers
52 views

Warning References to embedded interop assembly in arcobject.net

I am including arcobject.net in vb.net project, but i am plagued with following warning. A reference was created to embedded interop assembly 'ESRI.ARCGIS.Geodatabse' because of an indirect reference ...
0
votes
1answer
162 views

adding custom tools to a toolbar

I have created 3 custom tools, using vb.net, to run in ArcGIS. They all runs fine.They are inside a same project, in three different tool classes . Now i want them all to be added in a single toolbar, ...
2
votes
0answers
122 views

How to add multiple shapefiles with VB.Net

I have created a toolbar add in for arc with a button that opens a form with 3 selections that are shapefiles, once the shapefile is selected I click the Add Layer button. Currently I can only get one ...
0
votes
2answers
73 views

How to maintain many-to-many relationship between feature class and table with multiple disconnected editors?

I have an application coded with VB.NET (ArcGIS Engine) and its functionality is: digitize a parcel and enter information for its owners, so i have a M-N relationship between them. every parcel has ...
0
votes
0answers
11 views

Change layer border in arcmap through arcobject [duplicate]

I wish to change the border of layer in arcmap through arcobject vb.net program .Through my program i have added layer to arcmap now i want to change its property .Can anyone please tell me where to ...
0
votes
1answer
136 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
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
0answers
22 views

issues migrating + updating an older vb.net add-in

Key points to consider: -The original add-in was written in VS 2005 for ArcGIS 9.1, uses Framework 3.5, with now deprecated namespaces, but those don't appear to be problematic -Migration is to 9.3.1 ...
0
votes
0answers
40 views

Can we change envelope.expand parametres from double to metre

I wish to find all those line intersecting from point which are 8 metre away from the point.Let me expalin you what i did so far- pEnvelope=Frompt1.envelope pEnvelope.Expand(0.5, 0.5, true); And ...
0
votes
0answers
53 views

Find Gap between two Continuous One Way street in Road Feature Class

I wish to find gap in the continuity of One Way street.I have One Road(Polyline) Feature Class and one way road are represented by one column called ONE Way.If ONE WAY="Y" that means road is one way ...
0
votes
2answers
128 views

Geoprocessor: using arc toolbox in vb.net

i am doing the following in order to use the predefined tool points to line in arctool box Dim ptoline As ESRI.ArcGIS.DataManagementTools.PointsToLine = New ...
1
vote
1answer
331 views

How to create point feature from longitude/latitude coordinates using ArcObjects and VB.net?

i Want to add a point feature to my feature class. an i want to enter the coordinates manually. here is what i am trying to do pworkspaceedit = pFeatureWorkspace ...
2
votes
3answers
414 views

How to calculate Polyline length in kilometres without changing projection from WGS84 (using ArcObjects)?

I have Road (polyline) feature class and I wish to find those roads whose length are greater than 500 kilometre. The feature class projection is in GCS_WGS_1984 and I do not want to change the ...
2
votes
1answer
139 views

Writing an algorithm to find the most efficient line angle at which to draw lines

I've written a tool that fills a polygon in ArcMap with parallel lines at a user specified distance apart and at a user specified angle, written in vb.net and arcobjects. What i'm looking to do next ...
2
votes
3answers
251 views

How to find duplicate nodes in feature class using ArcObjects?

I am unable to find duplicate nodes in a Road network through my program. I have a polyline feature class as Road, and i want to find duplicates nodes in it. How can I generate a report of duplicate ...
0
votes
1answer
72 views

Printing a Form includes data grid and axmapcontrol

i have created a windows form with some controls in it like data grid and axmapcontrol, it seems that printform cannot print the content of the axmapcontrol. i need to create a table of data and a map ...
0
votes
1answer
64 views

Divide a Square to a serval equal squares using Acrgis [closed]

hi i'm looking for an algorithm to split a square to a SEVERAL equal squares: i have only : x min , y min x max , y max please see picture (not valid picture only to describe problem): any ...
0
votes
1answer
49 views

How to access functions from another project in vb2010

I have written a project which has common functions in Visual Basic 2010 i.e. Visual Studio 2010. for e.g. Public Function FlashPolygon(pDisplay As IScreenDisplay, pGeometry As IGeometry) Dim ...
4
votes
3answers
244 views

How to number polygons according to their spatial relationships?

I have, for example, this layer in postgresql (polygons): table : poly (objectid: integer, num: integer, shape: geometry) I want to enumerate the polygons from left to right and top to bottom ...
0
votes
1answer
118 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
26 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 ...
1
vote
1answer
100 views

Create Feature and store to different FGDB

Create Feature and store to different FGDB I'm creating a feature and I want to store it to a specific geodatabase. At the moment I'm using feature.Store() but it's not storing it to where I want. How ...
1
vote
1answer
81 views

Geoserver Query

we are developing two application, the desktop and web application.. we are using vb.net for desktop application and drupal for web application.., what we are trying to achieve is plot a certain ...
0
votes
1answer
160 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 ...
2
votes
3answers
459 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 ...
1
vote
0answers
104 views

How to display labels from many-to-many relationship in ArcGIS 10 using VB.NET?

I have two tables in a geodatabase: parcel; and person 1 or + parcel, can have 1 or + person (relationship is many-to-many) Using VB.NET I can display all the parcel labelled with the ...
5
votes
4answers
394 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 ...
1
vote
0answers
52 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 ...
3
votes
2answers
397 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 ...
1
vote
1answer
100 views

VB.Net Field Population Methods

Disclaimer: I am basically brand new to VB.NET and ArcObjects. I am computing some statistics as a component of a larger arcobject script. I write these components to an ITable. This ITable is ...
0
votes
1answer
68 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
0answers
175 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() ...
2
votes
0answers
266 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
596 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 ...
2
votes
1answer
139 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 ...
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 ...
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 ...
4
votes
2answers
567 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 ...
1
vote
0answers
98 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
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 ...
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 ...
2
votes
1answer
173 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 ...
2
votes
2answers
878 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 ...
6
votes
1answer
288 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 ...
1
vote
1answer
304 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 ...
1
vote
1answer
131 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 ...
0
votes
1answer
165 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 ...
4
votes
1answer
443 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? ...
2
votes
2answers
415 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?