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)

0
votes
0answers
14 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 ...
0
votes
0answers
15 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 ...
3
votes
1answer
31 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
2answers
44 views

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

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 add the selected features' field to a ...
0
votes
0answers
36 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
31 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
0answers
29 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 ...
1
vote
1answer
14 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 ...
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, ...
0
votes
1answer
47 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)...
0
votes
0answers
21 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
34 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 ...
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 ...
3
votes
1answer
43 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
1answer
17 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
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
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 ...
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
0answers
18 views

Make IDataElement from in memory featureclass

I'm trying to do some fieldmapping, but need to make a dataelement from an in-memory featureclass in ArcObjects to pass to the geoprocessor. Basically, this line from the sample code: IDETable ...
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 ...
1
vote
1answer
39 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 ...
0
votes
0answers
14 views

Selection anchor when selecting features programatically

In an edit session, I am using code to select multiple features from an SDE polygon layer. After the selection is performed, the user can then use the rotate tool to adjust the features to their ...
3
votes
0answers
41 views

Multiple columns in TOC and Legend in ArcMap

I would like to give the user additional information next to the label in the TOC of a UniqueValueRenderer for each class. I can just add the numbers in the labeltext, but it does not align to proper ...
0
votes
0answers
22 views

Is it possible to obtain the envelope of a Data Frame element in Layout view?

I'm wondering if there is a way to create an envelope in map units of the extent of the Data Frame element in Layout view. I've tried this approach: IMxDocument mxdoc = ArcMap.Application.Document as ...
2
votes
1answer
38 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 ...
0
votes
1answer
45 views

Update Attribute with user form input

I try to use this code to fill attribute of map with my form but it dose not work? Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ...
1
vote
1answer
39 views

How to access XY position of text element in Layout view using ArcObjects

I'm wondering which interface will allow me to set the XY position of a text element in the page layout of my MXD. I have tried the IElement.Geometry.Envelope.PutCoords(Y, X) to no avail.
0
votes
0answers
24 views

Problem with some C# code in ArcMap 10.2

I have been programming a Base Tool control using C# to allow me to initialize the edition of a specific featurelayer in an ArcMap view; a time ago I used to do the same thing in ArcMap 9.3 and it ...
1
vote
1answer
40 views

Cannot export IActiveView to PDF, invalid pixel bound value(s)

I understand that you have to re-orient the XY/min/max to fit a tagRECT but I'm still getting an "Invalid pixel bound value(s)" error. I have also tried setting Ymin/Ymax = bottom/top but I get the ...
2
votes
2answers
49 views

ESRI.ArcGIS.Desktop.AddIns could not be found. Visual basic build error

I am trying to compile a project in visual basic into an Arc map add on. I am receiving two warnings that are preventing the build from completing. Both errors entail that the assembly ESRI.ArcGIS....
0
votes
0answers
15 views

Cannot pan to correct location using IEnvelope.CenterAt(IPoint)

It seems no matter what projection I try it pans me to the Atlantic Ocean. I have run across this before in an ArcPy script and it was due to being in a projected coordinate system and thus it was ...
1
vote
1answer
27 views

Cannot center IActiveView at IPoint in C#.NET add in

I'm testing a simple portion of my add in and can't get it to center/pan to a specified point, I've included what is currently in my OnClick() method. No errors appear it just refreshes and nothing ...
2
votes
0answers
39 views

ArcMap custom extension registered but not added

I haven't found any info on this particular problem so let me try here. My job is to migrate a 9.3 desktop extention to 10.3, keeping the app in the original COM-based format (not converting it to an ...
2
votes
0answers
57 views

Change coordinate system to add buffer in meters

I have am trying to add functionality to allow users to find points that are within a buffer distance inside or outside the parameter of a polygon. The map is in IProjectedCoordinateSystem so to my ...
1
vote
0answers
45 views

I want to cut polygons in a polygon layer.

I want to programmatically cut polygons already loaded in arcmap. For instance if originally I have 1 polygon feature and 1 row in attribute table. When I cut them, I should see 2 independent features ...
2
votes
0answers
34 views

ArcObjects Custom Tool for a VB App

We have an old VB6 app that uses the map, toolbar and toc controls. On the toolbar, we've added the custom menu so users can add other built-in tools or tools they've created. One of our customers ...
2
votes
1answer
45 views

Add a map element with a frame border and background

I am trying to insert a north arrow and a legend into the map with a white background frame and a border with a 3pt gap. The code below partially works, but it changes the background colour of the ...
4
votes
0answers
44 views

How to prevent automatically redraw the graphic layers on ArcObjects?

After a Shape File that was read to IFeatureLayer converted to IGraphicElements, I'm trying to draw that on map (using Sublayer of ICompositeGraphicsLayer). Of course, I succeed to display it on map, ...
3
votes
0answers
30 views

Exporting ActiveView to Jpeg using ArcGIS 10.2.2 fails

I have some legacy VBA code that exports the activeview to a jpeg, which needs to be updated, so it can be used in ArcGIS Desktop 10.2.2. The application uses the following code Option Explicit ...
2
votes
0answers
31 views

Get Z value from point in LAS Dataset using ArcObjects

Using ArcObjects (C#) I am trying to build a tool that will extract the Z value from a point in a LAS Dataset when the user clicks on it (then use that value elsewhere). My intention was to use the ...
2
votes
0answers
30 views

Creating a Legend with arcpy and comtypes

I am relatively new working with python and arcobjects. Under normal limitations I know that you cannot create a Legend or any arcobject with arcpy.mapping. Is there a generic example of creating a ...
2
votes
0answers
35 views

Is it possible to create an ArcGIS library?

Can I create my own ArcGIS library that contains commonly used features inside my own functions/methods? I would like to make a dll that can be reference in my projects for using common features such ...
2
votes
1answer
24 views

The type 'ESRI.ArcGIS.Display.RgbColorClass' has no constructors defined

Trying to create a simple line symbol. But getting an error: "The type 'ESRI.ArcGIS.Display.RgbColorClass' has no constructors defined" public override void OnClick() { IDocument pdoc = ...
1
vote
1answer
20 views

Getting trouble with prefix clause for an ArcObjects Java query filter

I'm using ArcObjects/Java for ArcGIS 10.2.2 and I'm trying to get unique values of a field for a feature class. Here's my current code: List<String> values = new ArrayList<String>(); ...
0
votes
1answer
33 views

How to read a tile package file(.tpk) in ArcObject C#?

I should read and show some tile package file using ArcObject C# 10.x. However, I failed to find how to read an tile package file on My Application using ArcObject C#. So, please tell me about ...
1
vote
0answers
29 views

Validation on save in arcobject

I want to validate all the features that have been changed since last save. Currently I'm trying to do this in an ESRI.ArcGIS.Desktop.AddIns.Extension. My sde database is not versioned. public class ...
1
vote
2answers
48 views

Changing layout background from red to blue through button add-in with C# and ArcObjects?

I am working on Arc Objects using C# and I have to make a button add in, such that if I click button one time then layout background color changes to red and then if I click again then button add in ...
0
votes
1answer
51 views

Python-ArcObjects mxDocument Stand Alone

if I need to work with classes MxDocument with the MapDocument that I have selected to work , for example style gallery, How can I instantiate ? InitStandalone() pMapDoc = CreateObject(esriCarto....
3
votes
2answers
53 views

Which interface controls 'Place overlapping labels' for a feature layer?

I need to turn on the option to 'Place overlapping labels' for a feature layer via ArcObjects. In the ArcMap UI it is located here: I can get to most of the labeling options from the ...
2
votes
1answer
24 views

ArcGIS server extension: Marshal.ReleaseComObject() or not?

The ServerSimpleImageServiceRESTSOE example uses Marshal.ReleaseComObject(). The other examples seem to not use this. When should I use Marshal.ReleaseComObject()? As I understand if I am not using ...