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
26 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 ...
0
votes
1answer
43 views

Geometry to Shapefile

From importing the shapefile to postgis, its geometry is added to the database postgresql. The question, how can I load the shapefile in the Visual Basic.Net using the geometry in the database ?
0
votes
1answer
164 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
1answer
1k 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
1answer
66 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 ...
4
votes
0answers
328 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 ...
2
votes
0answers
93 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 ...
2
votes
0answers
236 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 ...
2
votes
0answers
928 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 ...
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 ...
2
votes
0answers
95 views

How to solve a filename conflict problem?

I use a procedure to remove and delete a feature layer with a certain name. Then, using another procedure which is called during the run time of the program (as the remove and delete procedure as ...
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
20 views

Menu - onCreate Event

In ArcObjects, the Class 'BaseCommand' has 'OnCreate' method(to handle oncreate event). Similarly is there any equivalent method available for Menu ('BaseMenu' Class)?
1
vote
0answers
88 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 ...
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 ...
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() ...
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
1
vote
0answers
147 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 = ...
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, ...
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 ...
1
vote
0answers
260 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
0answers
160 views

How can I denote the values of reclassification using variables?

I used the following lines of code to classify a raster. However, my problem is how can I denote the old and new classification values in the last code line using variables? Then number of values ...
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
232 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 ...
0
votes
0answers
6 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
14 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 ...
0
votes
0answers
21 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, ...
0
votes
0answers
67 views

Using Code Block in Field Calculator with ArcObjects (VB.NET)

I'm having trouble using a code block in the Field Calculator with ArcObjects. Ideally, I'd like to be able to read a text file which contains the Python code for the code block. I've tested this code ...
0
votes
0answers
34 views

Geomedia Objects Customization

I have created a form using VB.net based on Geomedia 2013. IN this form i have created a DATAGRID view in which i m able to see all the assets that are present in connected database with a click of a ...
0
votes
0answers
38 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
0answers
20 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
34 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
50 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
0answers
155 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 ...
0
votes
0answers
109 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 ...
0
votes
0answers
406 views

How to solve a Run-time error 91?

I have a function which a part shown below. The problem is that I get a Run-time error 91 (object variable or with variable not set) and the debug highlights the last line of the code ( Set ...