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
24 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
32 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 ...
1
vote
0answers
22 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
0answers
27 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 ...
3
votes
0answers
36 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
28 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
21 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
22 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 ...
-1
votes
0answers
28 views

How to standardize raster layer in one scale to a range of 0-1

I'm trying to write a vb.net code in order to do a standardization for raster layers (raster scale from 0-1) by using Raster Calculator. How can I connect vb.net with raster calculator within ArcMap? ...
2
votes
0answers
33 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
13 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
29 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
43 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
46 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 = ...
3
votes
2answers
47 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
20 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 ...
0
votes
0answers
20 views

ArcGIS Server extension crashing after some time

I have developed an ArcGIS server object extension. It works fine the first hour or so no matter how many times I call it. However if I do some other work and start calling it after a few hours I get ...
1
vote
1answer
20 views

Displaying specific version of geodatabase on AxImapControl using ArcObjects in C#?

I am working on a sample ArcGIS Engine project which tries to map two versions difference on an AxImapControl i created two mapcontrol which first one loads the MXD file and for second one i make a ...
2
votes
1answer
53 views

Determine if Point is in feature class attribute table

I'm working with ArcObjects, C# and ArcMap. I have an attribute table that has several rows of data including a "shape" field that holds a point geometry. I also have a random point. How can I iterate ...
1
vote
1answer
51 views

ExportToPDF creates blank PDF

I have a MapDocument that I am trying to export to PDF. I am using this example. However, it always says it is finished but when I open the pdf file there is nothing in it. I have tried exporting to a ...
3
votes
1answer
43 views

ArcObjects in ArcMap 10.2.2 UpdateCursor refer to a calculated field value in the same Cursor

Is it safe to calculate a field value inside an update cursor and refer back to this calculated value to change another field value of the same row? I think some code will actually explain my ...
2
votes
0answers
36 views

How to connect to secured ArcGIS server shared on AGOL with ArcObjects

Our organization is hosting secured ArcGIS Server geodata and map servers (token based). The services are shared on ArcGIS Online, where specific AGOL users in a group are allowed access. Now I want ...
1
vote
0answers
22 views

setting a PictureFillSymbol via ArcObjects not wanted/allowed?

Have a problem in setting a PictureFillSymbol in polygon-layer-properties via ArcObjects. I just create the Bitmap not from file, it is "painted" in runtime. After loading the layer and setting the ...
1
vote
0answers
27 views

Control points in IAdjustXForm for georeferencing of raster (ArcObjects)

I am trying to create a georeferencing tool using ArcObjects in VB.Net. Though only a little text is available on this topic in forums as well as from ESRI; I found an esri article that states the use ...
2
votes
1answer
46 views

C# Arcobjects 10.3: Change the source version on a layer file

I'm using arcobjects (C#) to load my layers to the table of contents, and I need to update the data source to change the version. The layer file is set to the correct source at the DEFAULT version. ...
2
votes
1answer
44 views

Getting reference to existing reference of dockable window in class in ArcMap Addin?

I have an addin for ArcMap 10.2 that has a dockable window. For what it's worth, this dockable window has a DataGridView to which the user can add features for review. These features are added from ...
0
votes
2answers
28 views

Unable to make “IDataStatistics:UniqueValues” work in .Net

I would like to use IDataStatistics:UniqueValues to iterate through a set of unique values. This worked flawlessly in VB6 and VBA but I am having a difficult time making it work in VS 2013, ArcGIS ...
0
votes
1answer
25 views

ArcGIS Identity Tool Output Fields

I am using the Identity tool which takes 3 parameters: in_features, identity_features, and out_features. Does the output FeatureClass need to have fields that are a combination of the fields in ...
1
vote
0answers
21 views

Raster cleanup problem in ArcObjects

I am working on Raster cleanup tool and using below like but I can't understand what is the output rectangle or block. Could you please clear my doubt. ...
-3
votes
1answer
50 views

How to get midpoint of polyline in java arcobjects

Here I want the midpoint of every polyline and add that point to List. List<IPoint> pList = new ArrayList<IPoint>(); Polyline polyline = null; IPoint point = null; for(int ...
0
votes
1answer
56 views

How to iterate through each vertex in a line?

I am working with ArcObjects in building functionality for a toolbar inside of ArcMap. Once I start an edit session, I use the tools to manually draw a line. I am trying to loop through this line get ...
0
votes
1answer
229 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
56 views

Creating custom forms in Arcmap 10.3

I am hoping to make a custom form within ArcMap 10.3 where the end user can select a recently digitized shape file (or feature), and enter values of specific attributes through a custom form. This ...
0
votes
1answer
41 views

How can I delete an ITable?

I have created an ITable but I need to be able to delete it if it already exists. How can I delete an ITable? This is the code that I have so far which checks for an existing ITable. public static ...
1
vote
1answer
69 views

ArcGIS 10 arcpy to add a WMS Service to MXD

I want to batch insert WMS layer to my arcmap MXD project with python/arcpy script. Some issues has been unanserwed, here my "state of art": ESRI IDEAS ESRI GeoNet community #1 ESRI GeoNet ...
1
vote
1answer
27 views

Get the fill stipple of a predefined PictureFillSymbol in ArcMap

In ArcMap in symbol-dialog you can choose a predefined symbol for your polygon-features, i.e. agricultural area. This is a 1 bit picture with foreground- and background color. I grab this symbol as ...
0
votes
0answers
30 views

Does intersect result in non-simple geometry?

I have some features retrieved from SDE where I perform an Intersect on. Both feature-classes from which the features come from are polygon-featureclasses. IFeatureCursor cur = ...
0
votes
0answers
37 views

Storing Select Statements for ArcGIS Query Layers: LYR Files vs Views vs Application Code

I've inherited maintenance of an extension to ArcGIS Desktop (ArcObjects, C#) that allows users to view spatial data and related attributes from our databases (SQL 2008 R2). This is of course ...
0
votes
1answer
49 views

Highlighting selections using ArcObjects?

I have a problem you want help: In ArcMap 10.2.2 In my code I want to highlight selections but I can't. My code: void drawPoint(IFeature pfeature) { IRgbColor rgbColor = new RgbColorClass(); ...
0
votes
0answers
23 views

Having Trouble Masking Geoprocessing tool

The output TinLayer that is produced is the rectangle extent of the contour's feature. I want it to be the shape of the contour's feature instead. When I create a custom feature class in the ...
2
votes
1answer
52 views

How to symbolize multiple layers with different EMF's in ArcObjects C#

I'm trying to symbolize multiple layers with an emf logo. When debugging, it gets through the first layer then crashes. I'm thinking it might have something to do with the variable "emf1" not ...
1
vote
0answers
32 views

ArcObjects 10.1 Misplaced graticule labels after map export to jpeg

I´m currently working on an ArcObject 10.1 Extension which 'produces a Map' and exports it´s Page Layout to 'jpeg' after completion. The code follows the snippet for 'Create JPEG (high-resolution) ...
1
vote
0answers
22 views

Activating new Snapping feature in ArcGIS Engine while editing features and vertices?

I'm working on new Snapping Capability of ArcGIS Engine. I want to use snapping capability using ISnappingEnvironment class while users are editing a feature or moving vertices. I tried ...
1
vote
1answer
34 views

Create a mapping between polyline and raster in ArcObjects

In my case I have two sources of data: a vector shapefile with a polyline (expressing the path) and a raster with some integer metadata values available for each cell. What I would like to do is to ...
1
vote
0answers
59 views

ArcObjects OnChangeFeature event not firing unless you move feature

I am displaying points, lines and polygons on ArcMap as features with an addin. I want my end users to be able to change features (move geometries, add vertex, delete vertex etc) and get the updated ...
0
votes
0answers
22 views

hold some data at layer object

Is there in arcobjects the ability to store some data at the layer in table of content sth. like ILayer.Tag or an Interface which I can misuse for this?
2
votes
1answer
44 views

Create Feature Class from another Feature Class

I have a Feature Class and I want to create another Feature Class that is basically a subset of the first Feature Class. For example, I have a Feature Class containing public parks which I want to use ...
1
vote
2answers
67 views

AddIn button/tool force Arcgis 10.2.2 to close

Issue : AddIn button/tool force Arcgis 10.2.2 to close. Development environment: Visual Studio 2013, .Net framework 4.5 (I tried with 4.0 also), Arcgis for desktop 10.3 Works fine on development ...