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.

409 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
225 views

Process to gather raster cells under features

I need to gather individual raster cells underneath a feature in a featureclass as quickly as possible. It seems that most ArcObjects functions have problem with island polygons, multi-part polygons, ...
2
votes
1answer
361 views

Deployment, creating jar file?

I want to generate the executable jar file for my application, so i used the export tool in eclipse with the extract required libraries into generated JAR option, but when i run it with command line ...
2
votes
1answer
2k views

Adding fields to raster attribute table

I have a raster attribute table associated with an IMAGINE .img raster that I build and open with: IGPUtilities utils = new GPUtilities(); IRasterDatasetEdit2 raster = (IRasterDatasetEdit2) utils-...
1
vote
1answer
44 views

Remove .sr lock on shapefile after removing layer from map using ArcObjects and C#

I am having difficulty figuring out how to remove .sr lock files from shapefiles using ArcObjects and C# after removing the associated layer from the map. I notice that using the straight UI in ...
1
vote
1answer
20 views

Assigning multiple Customize keyboard shortcut keys for ArcMap

I am using ArcMap 10.1 and 10.2.1. I have attached the below image for reference. I want to assign multiple Customize keyboard shortcut keys at the same time. Is it possible do this using ArcPy/...
1
vote
0answers
51 views

The project does not build. The command “esriRegasm.exe …” exited with code -1

I want to build the project to create a tool with ArcObjects in Visual Studio. I get this error: The command "esriRegasm.exe "...Project1.dll" /p:Desktop /s" exited with code -1. ...
1
vote
1answer
104 views

ArcGIS .Net Framework SDK for 10.8: Does not install correctly

When using the installer: ArcObjects_SDK_for_NET_Framework_108_172796 with having Visual Studio 2017 and ArcGIS 10.8 installed, the select features is missing the VS 2017 (see second image) Steps ...
1
vote
0answers
60 views

Lost ArcMap Add-in Toolbar Built with ArcObjects SDK in .NET and Problem with AssemblyCache folder and ArcGIS Cache Manager

Our organization manages an ArcMap 10.6.1 add-in written using the ArcObjects SDK for .NET Framework 4.7.2. We publish the add-in file to a server folder. We edited the registry to make ArcMap look ...
1
vote
1answer
64 views

How to read the relevant join information out of a MXD file (above all the name of the destination table attribute)

Goal: Read all joins within a MXD file and its relevant information. This should include: origin layer name, origin attribute name, destination table name, destination table attribute. To solve this,...
1
vote
1answer
294 views

ArcObjects SDK for .NET Framework with Annual Educational Advanced (ArcInfo) Single Use License

I usually use my organization's ESRI account when at work, but I am now working at my home Desktop PC. On my home PC, I have an ArcGIS 10.6 annual educational license that I do not want to sacrifice. ...
1
vote
1answer
79 views

Make IPictureMarkerSymbol file path accessible to all users?

I've written a little java add-in button for ArcDesktop 10.4, in eclipse, which makes a new ArcMap layer with some points. (NOT Runtime) My goal is to assign a picture as the symbol for each of these ...
1
vote
0answers
156 views

Update Esri SOAP to REST

I'm new to ArcObjects, not a GIS professional so please be patient with my lack of GIS knowledge. I have an .Net Web application with ESRI.ARCGIS.SOAP references, looking to update them with rest. ...
1
vote
0answers
39 views

Weird XY-resolution for map in ArcObjects

I have an MXD file with 240 feature-layers, all having the exact same spatial-reference and spatial resolution. I checked this using the following code: var sortedLayers = allLayers.OfType<...
1
vote
0answers
47 views

Opening Raster with “bad” vertical coordinate system crashes program

I have an elevation TIFF file that comes from another program that seems to have something wrong with its Vertical Coordinate System. The coordinate system is EGM96 Geoid. I cannot open this TIFF in ...
1
vote
1answer
63 views

ArcMap - ArcObjects IGeoFeatureLayer Renderer is giving a NullReferenceException

Refactoring a VBA add-in into VB.NET add-in. I'm getting: An unhandled exception of type ' System.NullReferenceException' occured in MyAddin.dll Additional information: Object reference not ...
1
vote
0answers
43 views

Scrolling TOC programmatically using ArcObjects in ArcMap AddIn?

I've created the small add-in command for ArcMap, that allows find in TOC and select the layer by it's alias or feature class name. Useful when map document contains several hundreds of layers. The ...
1
vote
0answers
40 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
89 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
95 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
132 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
29 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
81 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
69 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
29 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
66 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
74 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
625 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
42 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
71 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
279 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
186 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
226 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
61 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
49 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
43 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
357 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
262 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
166 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
231 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
160 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
289 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
35 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
218 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
47 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
53 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
163 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 2 3
4
5
9