Questions tagged [arcobjects]

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.

399 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
17 views

Unable to set focus to the map from a dockable window

I have a dockable window with a single listview control on it. Selecting an item in the view will build a layer and add it to the map. At the point of the layer being added to the map, I need to set ...
1
vote
0answers
53 views

Implementing new Snapping in ArcGIS Engine C# Application?

As I can find, there are two kinds of snapping in ArcGIS 10.2.2: 1- Classic snapping. 2- New ArcGIS Snapping, which doesn't have any specific name as I know. I can't implement the New ArcGIS ...
1
vote
0answers
69 views

Serializing and Deserializing Elements using ArcObjects C#

I am using the XMLSerializerClass of the Arcobjects SDK to serialize graphic elements of page layout into XML then saving the XML string to the database. My issue is that when serializing graphics ...
1
vote
0answers
79 views

What is “Current Status” (IMMCurrentStatus) in ArcFM Downstream Trace?

I'm trying to develop a custom downstream trace Addin for ArcGIS using .net (C#) Miner.Interop.Framework Assembly. I'm using TraceDownstream Method from the ArcFM Desktop Developer Guide and ...
1
vote
0answers
26 views

Updating shapefile metadata to show up in ArcCatalog?

I am attempting to update the metadata for a variety of shapefiles to change the information under 'Summary' (or 'Purpose'), 'Description' (or 'Abstract'), etc. in ArcCatalog's Description tab. I am ...
1
vote
0answers
26 views

What type of object is required for IViewRefresh.RefreshItem “Data” parameter?

Esri's help for this method specifies this as LPUNKNOWN, which is rather unhelpful since I don't speak COM. I've tried an envelope, a geometry, and a graphicsContainer; each time receiving "System....
1
vote
0answers
67 views

Analyzing single Polygon or Polyline that overlaps itself using ArcObjects?

My current process is to determine obstructions in an area and determine properties of those obstructions as they relate to a centre polyline. Per the image below I take a polyline which denotes a ...
1
vote
0answers
52 views

ArcGIS C# RubberPoint.TrackExisting not working

I have a simple marker symbol I have drawn on the map. I am trying to use a rubber band to drag-move it to a new location. I think I am close because when I use .TrackNew instead of .TrackExisting the ...
1
vote
0answers
68 views

How export geodatabase version differences in ArcPy?

With ArcObjects I have this code in C# to export the differences to a XML file: ESRI.ArcGIS.GeoDatabaseDistributed.IVersionDataChangesInit pVDataChgs; var pvTemp = new ESRI.ArcGIS....
1
vote
0answers
45 views

Listing Tables for several MXD documents using ArcObjects?

I want to do a "Extending ArcObjects: Windows Application" app: I have a code snippet that lists all the layers from the MXD files stored in a directory: string[] fileEntries = Directory.GetFiles("C:...
1
vote
0answers
52 views

Setting ID in query as IQueryDescriptions OIDFields throwing error?

I have a layer and the query for layer is a select query consisting of ID field in it. This query is being executed on top of Oracle and its throwing an exception for field "ID" when "ID" field is ...
1
vote
0answers
131 views

Adding to group layers in loop is slow in ArcGIS Engine?

I am using ArcGIS Engine 10.5.1. I wanted to ask and see if anyone else has encountered this and or found a work around. I have a loop in c# where I am taking a large set of layer files and adding ...
1
vote
0answers
26 views

Error messages are not getting logged. I have created an Add-In button. I am using log4Net library for logging.

When i run Add-In button project on my machine, logging is being done successfully but as soon as i take the Add-In button and install it into different machine , no logging of messages occurs. Is it ...
1
vote
0answers
30 views

Drawing 3d polygon element on Arcobject axSceneControl?

I have standalone application (ArcObjects C# 10.1) uses axSceneControl. How to display on the scene 3d polygon elements? I have implemented drawing 3D line elements using ISimpleLIne3DSymbol. I tried ...
1
vote
0answers
51 views

how to Input polygon featuer using Rubber poly (ArcObjects)

Does any one know how to input polygon feature using Rubber poly? I would like to know how to input Polygon featurer using rubber poly.. as of now i can input polygon feature. but some times , polygon ...
1
vote
0answers
129 views

ArcObjects.NET, append with automatic field mapping not working

I got a strange problem with ArcGIS 10.4 using ArcObjects.NET. By using the code below, if I want to use the Append tool, I have to send it the source and the destination. Both of them are of Object ...
1
vote
0answers
51 views

ArcObjects Maplex labeling doesn't work?

I am trying to modify a FeatureLayer's Maplex label settings. For some reason those properties don't get modified when opening the document afterwards. The document I am opening HAS already set the ...
1
vote
0answers
272 views

'object' does not contain a definition for 'AddValue'

I have been able to get past this error, but I don't know why it was happening. I'm attempting to set symbology on a layer using IUniqueValueRenderer in ArcMap 10.4. When I try and use the AddValue ...
1
vote
0answers
40 views

Displaying NorthArrow on ArcObjects axSceneControl?

I have standalone application (ArcObjects C# 10.3) uses axSceneControl. How to display on the scene NorthArrow or Directional Arrow or something like that? I found an example for NorthArrow http://...
1
vote
0answers
60 views

ArcGIS Elevation and Z Coordinate

I have standalone application (ArcObjects C# 10.3) uses axSceneControl, I'm trying to get a mouse click point: private void M_axSceneControl_MouseDown(object sender, ...
1
vote
0answers
211 views

Geoprocessor won't execute with ArcObjects

When I use the geoprocessor in my ArcObjects code for creating a feature in the sdeworkspace it doesn't work and returns an empty path for geoprocessor output. How can I solve this problem? ...
1
vote
0answers
57 views

FeatureClass.Search freeze

ArcMap add-in is freezing on .Search() by spatial filter. Here is my code, for ArcMap add-in 10.3 version. When I used it with Oracle databases, happens only on one instance, works perfectly with ...
1
vote
0answers
161 views

ArcMap add-in to make connection and load the database on VB.NET

I'm new at Arcobjects programming. Currently I'm trying to make an ArcMap Add-in which can connect and load a database into ArcMap. I have found samples on the Esri website, but it seems not to be ...
1
vote
0answers
25 views

Saving user-imported shapefile to geodatabase

Is there any API or service out there that can do this? We have a SQL Server managed geodatabase (ArcSDE). It would be ideal to be able to create a web application where someone can upload a ...
1
vote
0answers
16 views

Map Tool Compatibility in IE & Chrome

I have a customized tool developed and running on ArcGIS server 10.0. using Web ADF The tool is used to draw a rectangle on map and mark selection to the selected area in a Graphics layer. This tool ...
1
vote
0answers
165 views

ArcObjects queries using selection set

I'm new to ArcObjects and I'm finding it difficult to work with the ArcObjects 'Feature classes'. Coming to my problem, I have a Map with few layers. I have coded for the layer names to display in the ...
1
vote
1answer
52 views

Disabling Start Editing command using ArcObjects?

How do I disable the Start Editing button in ArcMap when an added ArcSDE database version is the default? IMxDocument pMxdoc = m_application.Document as IMxDocument; IMap pMap = pMxdoc.FocusMap; ...
1
vote
0answers
44 views

Selecting multi features on map based on Datagrid row/rows selection?

I was trying to select feature depending on the selection change of the datagrid. Each row of the datagrid consists of the feature OID and feature Name etc. While selecting I am seeing that more ...
1
vote
0answers
41 views

Recognize Tiled Internet Layers

Is there a way to recognize a Tiled Internet Layer using arcobjects in .NET? I've tryed several ways but I always end up in a dead road... ILayerFile lyrf = new LayerFile(); lyrf.Open(@"G:\mypath.lyr"...
1
vote
0answers
192 views

How can I access custom parameters for WMS layers via ArcObjects, and create a new layer file with the updated parameters?

I have a set of data in PostGIS related to a large number (7,000) of species, and have a single PostgreSQL view, and corresponding GeoServer layer, that contains data for all species. Based on input ...
1
vote
0answers
293 views

Highlighting Selection Of Features in Map using ArcObjects?

I have some features which at the time of validation found to having incorrect attributes' values. How do I highlight those features in the map? Here is what I tried: public void ...
1
vote
0answers
193 views

How to find intersecting features from inside a drawn polygon

I have drawn a polygon and I want to get all the intersecting features. But here I got stuck and not able to proceed.When I run the code it allows me to draw the polygon in the map. But I am not very ...
1
vote
0answers
133 views

How to get the closest line to a selected polyline

polylines A, B, and C meet at point P1. Whats a quick way that I could find out which line is closest to polyline A using arcobjects ? At first I used IProximityOperator by casting PolylineA and then ...
1
vote
0answers
201 views

Canceling a Geoprocessing Tool (Arcobjects)

I am trying to cancel all the ArcMap geoprocessing tools executions (GPTools) using an ArcObjects Extension in C#, but it doesn't seem to work or do anything for any GPTool that I am trying to cancel. ...
1
vote
0answers
136 views

How to disable advanced label expressions for all layers using ArcObjects?

I have some MXDs with a large number of labeled layers. Recently I discovered that the Tiled Labels to Annotation tool didn't work with advanced Python label expressions (with FindLabel functions), so ...
1
vote
0answers
228 views

IFeatureCursor returning null features

I have created an IFeatureCursor using IFeatureClass.Search(). The features in this exist and are not null. However, when I pass that same cursor into another method there are suddenly no features. ...
1
vote
0answers
31 views

arcmap ExportFrame on FocusMap inconsistency

I have an issue where the ExportFrame would use the extent instead of the full extent after right clicking on arcmap and selected "Full extent". Sometime it will use the ExportFrame of the full ...
1
vote
0answers
210 views

Have Tool update info on Dockable Window

When this tool is active, and a user clicks within the main map window it's getting an IPoint using an IRubberPoint. I would like to use that point to update information on a dockable window. ...
1
vote
0answers
41 views

Does OnStopEditing always happen after OnSave

During debugging, I discovered that the OnSaveEdits event is always followed by OnStopEditing and then OnStartEditing. Is this always the case? I don't see the logic in this. I could understand if ...
1
vote
0answers
52 views

Inconsistent spatial comparison operations (ArcMap)

I'm trying to find geometries who's boundaries are coincident to a line. I've mostly been able to achieve this with IRelationalOperator.Touches in my code. Ideally my relation description of "FF*T*****...
1
vote
1answer
147 views

Show updated xy coordinates 'live'?

I want to create add-in tool to show x y coordinate on status bar live. protected override void OnMouseMove(ESRI.ArcGIS.Desktop.AddIns.Tool.MouseEventArgs arg) { //this.Enabled = !...
1
vote
0answers
44 views

Getting/Passing Polyline object to geoprocessor as parameter

I want to know how can I get or pass a polyline to a gp tool using ArcObjects. Basically the tool just returns a line created in the gp. Below is the code which I am using JSONObject obj = new ...
1
vote
0answers
119 views

AddIn button disabled in Data View but enabled in Layout View

VB.NET Addin for ArcMap 10.3 may be causing my Table of Contents to constantly refresh. I have a custom toolbar with a few buttons. I want all of the buttons to be disabled when in Data View and only ...
1
vote
0answers
49 views

Is it possible to have multiple versions of the same ESRI Addin on the same machine?

I will be adding new functionality to a ESRI addin that I have created and I would like to give it to users to test. They already have a working version. Is it possible to install 2 versions of ...
1
vote
0answers
30 views

How should I properly release .NET extensions I create?

This is an extension to the following question: ArcMap.exe processes stay open after closing ArcMap? None of the answers go into how to properly write your extension so that it releases when ArcMap ...
1
vote
0answers
71 views

ArcObjects SpatialFilter not working well

What I'm trying to do is this: I have a point that is snapped to an edge in ArcMap, and I'm using a SpatialFilter to find polyline and polygon features where the point intersects the interior of the ...
1
vote
0answers
89 views

How to filter fields values collection of selection layer in SQLQueryDialog

I'm trying to show SQLQueryDialog in ArcObjects for selection layer (layer created from feature layer via layer's context menu Selection -> Create Layer From Selected Features). When query builder is ...
1
vote
0answers
210 views

Invisible Marker Symbol

I'm attempting to place a custom marker over a point in my ArcMap add in on my map but nothing shows up on the map. What am I doing wrong? The file extracts correctly and I can view it just fine if I ...
1
vote
0answers
94 views

Deleting Relationship Class Programatically using ArcObjects?

I am having lots of trouble deleting the relationship that I create with this code. The last two lines below do not delete the relationship. I have tried many different things in an attempt to delete ...
1
vote
0answers
33 views

Reselect saved ISelectionSet

I currently have an ISelectionSet that has various features from different layers. When I submit my edits to the Geodatabase, I lose my selection in ArcMap. Is there a fast way to take the ...

1 2 3
4
5
8