ArcObjects is a set of COM-based APIs from ESRI Inc. that are used in several of their products including ArcGIS Desktop, ArcGIS Engine and ArcGIS Server.

learn more… | top users | synonyms (3)

2
votes
1answer
29 views

Creating a Line at a Length and Angle in WGS84 - Arcobjects

I need to draw a line at desired length(around 10-20 Km length) and a user entered angle. The map/data uses WGS84 coordinate system. So the measurement is geodesic. Here are the methods that I tried. ...
0
votes
0answers
8 views

C# .NET Adding to a datagridview Date cell

I have a datagridview with two columns; a name and a due date. The name column is populated when you select a feature in ArcMap. The Date cell has a datetimepicker for the user to add a date. I'm ...
0
votes
0answers
16 views

Drawing markers, geometries on an ArcGIS Engine MapControl [on hold]

I'm building a windows application that uses ESRI.ArcGIS.Controls.AxMapControl. I've figured out how to create the map, and to populate it from a .mxd. Now I need to programmatically draw some ...
2
votes
1answer
27 views

How to use ArcGIS FeatureToLine with Managed Assembly

I am writing an ArcMap Add-In to combine multiple shapefiles and then run some custom python scripts on the resulting shapefile. However I cannot seem to get the Geoprocessor working to run the ...
1
vote
1answer
23 views

How to turn off the visibility of a layer?

I'm making a geoprocessing tool with ArcObjects Java (IBasicGeoprocessingTool) and I need to make a layer not visible. I managed to get this layer as IFeatureLayer and I get an access to the map or ...
7
votes
4answers
3k views

How can you find ArcGIS version programatically?

Is there a way using ArcObjects.net to find out what version of ArcGIS is installed on a machine (i.e. 9.3., 10.0, 10.1)?
0
votes
1answer
13 views

What file did esriControls.ControlsOpenDocCommand open?

I'm working on a Windows application, using ESRI's ArcObjects. In the ArcGIS 10.4 Engine ToolbarControl, I'm placing a esriControls.ControlsOpenDocCommand. With this, the user can select any .mxd ...
0
votes
2answers
51 views

ArcObjects C#: How to add selected features to a Data Grid View

[![enter image description here][1]][1]I'm trying to write a C# .NET add-in for ArcMap and I need some help. I want to be able to select a set of features in an SDE and then click a button that would ...
2
votes
1answer
437 views

Can I update the service on ArcGIS for Server programmatically?

There is Windows Service. This service adds user raster data to the Raster Dataset in sde database. The Raster Dataset registred on the ArcGis Server. This Raster Dataset also was publishing on ...
0
votes
1answer
18 views

Unable to populate required data in combobox

I am new in C#, I was given a VB code to migrate in C#. I have done most of it but not able to populate data in COMBOBOX. On clicking the dropdown button, Combobox is blank, on clicking the blank box ...
0
votes
1answer
313 views

vb.net arcobjects enable customized context menu item only if a feature is selected

The solution may be very simple, but I haven't made it work. I want to enable a data view context menu item only if a feature (in polyline layer) is selected, all other places the item should in grey....
3
votes
1answer
176 views

Row.Value returns rounded SHAPE.area and SHAPE.len values?

I have created a VB.Net Add-In, and am using IRow to get the value of fields in tables in ArcMap to use in a query. But I am encountering a problem when getting the values of the SHAPE.area and ...
3
votes
1answer
47 views

Not getting all decimal places when converting numbers to string (ArcObjects with VB .Net)

I would like to build some queries in my addin from layers in my map. I am having problems with double numeric types. esriFieldTypeDouble has 14 - 18 decimal places or more depending on the database ...
0
votes
0answers
15 views

Creating multi-row toolbar in ArcGIS Engine?

I am using ArcGIS Engine 10.1 and Visual Studio 2010 I created a MapControl App, (New Project>Visual C#> ArcGIS>Extending ArcObjects > MapControl Application) and added a toolbar (In MainForm and ...
1
vote
1answer
179 views

Trouble compiling ArcObjects Server Object Extension project into .SOE file

I'm writing a Server Object Extension(SOE) in Visual Studio 2012 using C# in Windows 7. I'm using the REST Template that comes packaged with ArcObjects 10.2. I'm able to build the program without ...
0
votes
0answers
20 views

Failed to create raster dataset using ArcObjects?

I am currently unable to create a raster dataset. These are the 2 functions i have for creating the raster dataset but it seems to always throws an error "unable to create raster dataset". After ...
2
votes
1answer
404 views

Programmatically get Layer source properties DataType with ArcObjects?

I am trying to access the DataType property of a Layer in the TOC in ArcMap. The layer is added from a web service as an IMapServerRESTLayer. The Data Type property is listed with Layer -> ...
0
votes
1answer
50 views

How to access output parameters from a Python Toolbox Tool called by .NET?

I am trying to access an output parameter from a Python toolbox tool and cannot find any information about how this is done: I am developing an Esri Add-In for ArcGIS 10.1 SP1 for Desktop (Build 3143)...
4
votes
4answers
631 views

Can Voronoi/Thiessen polygons be created using ArcObjects without 3D Analyst license?

Has any body used ITinNodeCollection to generate Voronoi/Thiessen polygons. I have a point featureclass for which I want to create Voronoi/Thiessen polygons. Does this require 3d analyst license?
1
vote
1answer
641 views

How to edit feature in sqlserver geodatabase

I am using arcmap 10.2.1 and arcobject 10.2.1,I just want to conncet to a geodatabase and edit,add,delete a feature from a feature class using arcobject,I tried to connect to database and it works ...
3
votes
1answer
33 views

ArcGIS not finding newly installed toolbar (.dll, .tlb files?)

I'm trying to use a toolbar that was developed by the EPA for BMP siting (see below link). The download seems like it should be fairly straightforward, an executable (BMPSitingTool_Setup.msi) is run ...
0
votes
1answer
190 views

How to batch export to PMF using ArcGIS 10.2 and VB.Net

I have modified a code I found online to batch export a series of map documents (mxds) to ArcPublisher files (PMFs). I have all the relevant licenses and the code does "work", the only problem is the ...
0
votes
0answers
37 views

Programmatically generate a heat map based on the the lat and long values

I am new to Arcgis and i am using version 10.2. I am using C#/.Net I would like to programmatically generate a heatmap based on the list of coordinates that i have in DB. I am stuck on how to ...
2
votes
1answer
32 views

How to make a polyline with two-sided arrows show two colors

I am very new to ArcGis development and so bear with me if I asked a silly question. I am using ArcGis 10.2 on C#. I have two features (A and B) on the map. I need to place two arrowed lines - one ...
0
votes
1answer
211 views

cad to shapefile conversion

i have use arcgis10.1,arcobjects.net. i did following code ESRI.ArcGIS.Geoprocessor.Geoprocessor gp = new ESRI.ArcGIS.Geoprocessor.Geoprocessor(); gp.OverwriteOutput = true; ...
0
votes
0answers
32 views

HRESULT EXCEPTION error - Arcmap Geoprocessing .net

I am writing a script / Add-in for Arcmap and am coming unstuck with an error when I am trying to "delete identical" records in an SDE Geodatabase. Running through the process. I have a SDE ...
2
votes
2answers
360 views

Refreshing display for newly added labels with ArcObjects from Python?

I've added a shapefile to an MXD and Edited the symbolization of it with ArcObjects. Now I'm trying to edit the labeling with ArcObjects. I've successfully been able to edit the default class in the ...
1
vote
1answer
17 views

An unhandled exception of type 'System.AccessViolationException' occurred

I am trying to learn Arcobject with C# through a book named "begining arcgis desktop using dotnet" , in this book an example is given to use geoprocesisng tool to be used through arcobject. below in ...
3
votes
1answer
213 views

How do I export circles from ArcObjects to WKB?

I have a small circle in SDE which I'm trying to extract through ArcObjects into well-known-binary (for later import into other systems). Using the IWkb interface I can obtain the WKB, but it comes ...
0
votes
0answers
13 views

Arcobjects not drawing GraphicContainer if layers are in the TOC

Im trying to draw some graphic labels in Layout View for every row in a feature class chosen by a user in a combobox. I am just in testing out some code to draw the label graphic and it works fine, ...
1
vote
1answer
45 views

setting label expressions causing duplicate labels

kind of new to VB.NET. Trying to set my label expression for a layer. Essentially a user picks a layer from a combo box, hits a button, expression is applied on the layer and then the single shp file ...
2
votes
1answer
39 views

Access resolved/rendered dynamic text from ArcPy or ArcObjects?

Using ArcPy (or ArcObjects if essential), is there a way to retrieve the rendered text of a text element that includes Dynamic Text? The text property of the TextElement includes the Dynamic Text ...
2
votes
1answer
30 views

Activate 'View Item Description' programmatically?

I have created an ArcMap add-in for browsing data layers and adding them to the TOC. I would like to add a button that when clicked will open the selected layers item description (before it is added ...
0
votes
0answers
22 views

Exporting map with arcobjects interupted by refresh event

I have developed an ArcMap extension in C# for ArcGIS 10.0 with a Form that configures the PageLayout and exports the ActiveView as PDF. There are two different ways to do that. You could use ...
1
vote
0answers
37 views

ARCGIS 10, VB.NET, calculate centroids

I have migrated an toolbar initially developed for ArcGIS 9.3. This tool is used by non-programmer or cartographers. One procedure is called to generate centroids of attributes table and after to ...
7
votes
1answer
758 views

Measuring Angle of two Points from North in ArcGIS 10.3 C# SDK

What is the most reliable method to calculate angle of a line from north, defined by it’s from and to points? I used to use IMeasurementTool interface found in defense solutions namespace found in ...
0
votes
1answer
286 views

Create a new BasicOverposterLayerProperties

ArcGIS 10.1 with VB.NET I have been trying to figure this out for days but can't seem to make the connection. For a layer I am trying to create a label. I create a new BasicOverposterLayerProperties ...
2
votes
1answer
273 views

Syntax for ArcGIS ICalculator object?

I have a code snippet that I can't figure out: 'Define a calculator for NewArea field pCalculator = New Calculator With pCalculator .Cursor = pCursor .PreExpression = "Dim ...
1
vote
1answer
303 views

Eclipse export as runnable jar file error

I am building a destop application , which takes user input for personal geodatabase and finds feature class in it . It works fine till i run it in eclipse , but when i export it as a runnable jar ...
7
votes
1answer
411 views

What is the function of the ESRI.ArcGIS.AddIns.targets file?

I am currently upgrading from 10.2 to 10.3 and as expected there are always some issues with recompiling addins and upgrading the the visual studio version. There is now a known issue for which ...
10
votes
1answer
161 views

Verifying that attribute indexes are being used in query from ArcObjects?

We have some software as part of a larger project written using ArcObjects via .NET. This software migrates and merges data from multiple file geodatabases in one schema to a single file geodatabase ...
2
votes
1answer
189 views

Standalone program can see license

I used standart license initialization code in C# standalone program. It was working perfectly on 10.1 and 10.2. But after migrating to 10.3 it says Licenses are not available. Meanwhile ArcMap and ...
1
vote
1answer
40 views

How to refresh displayed labels after setting properties via ArcObjects?

I originally posted this query on the ESRI forums but thought I may get more help here. I have cobbled together some code to set halos around text labels for a given feature layer in ArcMap. The ...
3
votes
1answer
2k views

ArcObjects add halo to label

I would like to add a white halo to labels using arcobjects. I think I need to reference the IFormattedTextSymbol interface, but I'm not sure how to implement this into my current code (see below). ...
1
vote
1answer
215 views

ArcObjects 10.1 IDatabaseCompact lock file

I'm trying to automate one of task by creating code that will execute the IDatabaseCompact.Compact method to a GDB file. Everything seems to work fine but there is always a .lock file generated after ...
0
votes
0answers
10 views

Using ArcObjects ILegendInfo.getLegendItem()

I would like to implement the function ILegendInfo.getLegendItem(). In the API documentation it is described as optional. http://help.arcgis.com/en/sdk/10.0/java_ao_adf/api/arcobjects/index.html?com/...
1
vote
1answer
155 views

CreateRasterCatalog on the fly using ArcObject 10 .NET SDK

My debugger crashes without showing any error. It crashes not even catches exception on the line: rasterWorkspace.CreateRasterCatalog(catalogName, fields, "Shape", "Raster", "defaults"); Code ...
0
votes
1answer
32 views

VB.net search for address in Geodatabase in ArcObjects

I am try to search for address in Geodatabase in ArcObjects using VB.NET I tray this sample but my database is large so when I use this sample in TextBox1_TextChanged it is slow ! How can I search ...
0
votes
0answers
32 views

Placement of the Legend in Layout

I am trying to put the legend at a specific place in the layout using ArcObjects. I am creating an Envelope and trying to create the UpperLeft corner but the placement does not appear correct. I am ...
1
vote
1answer
198 views

Connect to remote Sqlserver using arcobject

I want to connect to a database assigned to a vps with an ip address.I used this string to connect to Database when it was on localhost. how I change it to connect to remote one? ...