An object-oriented programming language from Microsoft. It is the .NET version of the Visual Basic (VB) programming language.
1
vote
1answer
20 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
35 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 ...
0
votes
0answers
9 views
How to Personalize Page Format Crystal report [closed]
i want to print a page in format :
hieght = 15 cm and
width = 30 cm
using crystal Report in VB.net
Im blocked and waiting someone " knew How to change report proprieties " to help Me
1
vote
0answers
63 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
43 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
117 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
37 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
439 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
187 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
161 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
83 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
2answers
139 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 ...
3
votes
2answers
86 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 ...
1
vote
1answer
81 views
Difficulties in dissolving stream orders
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 ...
1
vote
2answers
199 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 ...
5
votes
1answer
137 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
116 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
88 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
67 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 ...
3
votes
1answer
172 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?
...
1
vote
1answer
127 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?
4
votes
1answer
100 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
70 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 ...
1
vote
1answer
173 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 ...
0
votes
1answer
58 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 ...
0
votes
0answers
41 views
How to turn off layers by default?
I am using vb.net, intergraph and oracle database. I am using 40 layers in my web map. I want to turn off the layers by default, so that the map loads fast. I want only the base map (5 layers) layers ...
-5
votes
2answers
151 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.
0
votes
0answers
137 views
spatial query vb.net geomedia
I am trying to develop spatial query for selecting features within a polygon/ rectangle. Iam using vb.net for coding, geomedia for GIS and oracle spatial database.
1
vote
2answers
198 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
108 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
119 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 ...
4
votes
1answer
285 views
Refresh Currently Open ArcMap Attribute Table using ArcObjects
I have written an ArcMap Addin (ArcMap 10.0) that allows a user to perform a join between an in-memory table and a feature class (feature layer) added to the TOC. I want the attribute table of the ...
3
votes
1answer
147 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. ...
2
votes
1answer
67 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
1answer
144 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
300 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 ...
1
vote
0answers
77 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, ...
0
votes
0answers
304 views
-2147220936 Coordinates Or Measures Are Out of Bounds — IFeature.Shape
I current have two tools that draw polygons using the same method. I dissolve the zones, delete the undissolved zones, and then add the dissolved polygon to the map.
I keep getting "Coordinates or ...
2
votes
3answers
399 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 ...
1
vote
0answers
104 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
182 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 ...
4
votes
0answers
246 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 ...
1
vote
1answer
77 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
158 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
280 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
215 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
179 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 ...
2
votes
0answers
21 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
89 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
277 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.
...