0
votes
1answer
12 views

vb.net arcobjects validate topology ITopologyExtension and esriTEEventHint not declared

I am trying to use arcobjects with vb.net to validate a topology (already defined). I am caught even when I use the sample provided by ESRI. The code I use for accessing a topology is: Dim topoUiD ...
0
votes
1answer
17 views

ArcObjects - Geometry type select with Vbnet

How can I read the geometry type of shapefiles with ArcObjects and Vbnet? I want to check whether it is a point, polygon, or a line.
1
vote
1answer
30 views

Error while scripting ArcGIS in VB.NET “Exception from HRESULT: 0x80040202”

I am getting this Run time Error while coding ArcGIS in VB.NET script to calculate distance between two 3-D objects. “Exception from HRESULT: 0x80040202” I tried to understand the problem but ...
0
votes
1answer
25 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 ...
1
vote
1answer
27 views

Update attributes during edit session using ArcObjects

I have made an attempt to create an ArcObjects addin to help with some workflows here in the office. I apologize in advance if I have something fundamentally wrong with the code. This is my first ...
0
votes
2answers
54 views

How to find the coordinate system of an existing Map in arcGIS using VB.NET [closed]

I already have a georeferenced base map loaded in ArcMap. I want to find the spatial reference of this map and assign the same coordinate system to a polygon that I created. I can not get a start with ...
1
vote
1answer
49 views

Distance analysis of 3-D surface in ArcGIS using VB.NET

Using VB.NET I created a 3D polygon in ArcGIS to model a fault plane and now I want to find two different distances from a point on earth's surface. How to go about this? Can some one help with the ...
0
votes
1answer
31 views

Difference between 'point' and 'WKSpoint' in ArcGIS

I have to add 3-D points to make a polygon in ArcGIS using VB.NET. I have defined an IpointCollection and want to add points to this. I have options to add 'point' or 'pointcollection' or 'WKSpointz'. ...
0
votes
2answers
40 views

Inverse of Selected Records using ArcObjects? [closed]

What is the Process to find the inverse of selected data from featureclass using vb.net arcobject?
0
votes
2answers
57 views

Find centroids of polyline and create point using Arcobject [closed]

I have one road feature class and one area feature class .What i have to do is i have to create a point at the centroids of the polylines of (road feature class) and find intersection of point with ...
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
1answer
49 views

How do you determine when user is clicking the end point of an edit sketch using ArcObjects?

I am using vb.net working on ArcObjects. One requirement is to pop up a toolbox once the user click the end point (double click the point under editing status). So I want to know how can I know when ...
0
votes
0answers
64 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
1answer
153 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
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
1answer
109 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
92 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
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
101 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
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
49 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
116 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
248 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
318 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
116 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
217 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
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 ...
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 ...
1
vote
1answer
97 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 ...
0
votes
1answer
137 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
407 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 ...
5
votes
4answers
368 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
42 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
324 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
81 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
544 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
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 ...
2
votes
0answers
913 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
481 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
3answers
979 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 ...
1
vote
2answers
776 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
1answer
260 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 ...
3
votes
1answer
394 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
299 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 ...
1
vote
1answer
337 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
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 ...
-5
votes
2answers
260 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.
1
vote
2answers
284 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 ...