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.

Filter by
Sorted by
Tagged with
1 vote
2 answers
615 views

Querying annotations from GDB file in .Net [closed]

I have annotations in a GDB file that I need to extract to load into a non-ESRI spatial store. It's my understanding that there isn't any tool to export annotations to a shape file. I need to copy ...
0 votes
1 answer
347 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
1 answer
658 views

ArcObjects event when ArcMap table of contents selection is changed [duplicate]

I have been trying to figure this out for almost a full working day and I just can't get it working. All I want to do is fire an event when the user clicks different layers in the ArcMap table of ...
1 vote
1 answer
330 views

ArcObject 10.1 Java : Raster Analysis [closed]

I have been working with ArcObjects Java for a short time and have not been able to find a solution to the following problems: How to get the Raster object from a IRaster reference? IRaster raster = ...
6 votes
3 answers
6k views

Publishing map service to ArcGIS Server using ArcObjects

I am using ArcGIS Server 10.1. I am migrating some ArcObjects C# code to 10.1 and am having some trouble programatically publishing an MSD. We are using a multi-site configuration (not sure if that ...
3 votes
2 answers
5k views

Unable to load DLL 'ArcGISVersion.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

I recently migrated my desktop from ArcGIS 10.1 to 10.3.1 and visual studio from 2010 to 2013. I am now getting a problem trying to run an Engine application. It builds fine but when I try to debug it ...
3 votes
2 answers
367 views

Programatically transfer attributes from line to selected points: : Attribute transfer tool

Spatial Adjustment>Attribute Transfer Tool in ArcMap transfers attributes between mapped source and target layers by mouse clicks. The disadvantage is you can do one point/line at a time. My problem ...
0 votes
0 answers
17 views

Hitting REST Feature services via console app (C#)

I have a console app that currently leverages arcObjects through a desktop license. We are going to need it to transport data to and from a traditional versioned gdb to and from feature services along ...
0 votes
0 answers
33 views

Drop and re-calculate vertices M values for a polyline using ArcObjects

I am trying to implement this logic for my C# project that it will remove the M values of all the vertices on a polyline, and then re-calibrate them. There is another post out here asking a similar ...
1 vote
0 answers
36 views

Getting colour of raster for specific value based on its symbology using ArcObjects

For the software I'm working on I'm trying to get the colour that a raster would be using to display any given value based on the symbology set up for it. I've been more or less able to work this out ...
6 votes
3 answers
3k views

Drawing perpendicular lines at start and end of lines using ArcGIS Desktop? [closed]

I have some lines. I want to draw perpendicular lines at the start and end of the lines, on both sides of the lines. Can somebody help me in Python? I am using ArcMap.
5 votes
2 answers
2k views

Exporting ArcGIS Metadata as PDF using ArcPy?

I've been asked to automate the exporting of metadata from ESRI feature classes into .pdf files. We don't want the .xml files, rather a .pdf version of what you see in the Description panel in Catalog....
8 votes
3 answers
1k views

What are mystery green lines in Layout View produced during ArcObjects script execution?

Could any of ArcObjects guru tell me, what are these green lines on my Page Layout and what to do, or not to do, so they do not appear? See image attached. I do used ArcObjects from Python. My script ...
-1 votes
1 answer
100 views

Generating random points along network using ArcObjects [closed]

How do I generate some random points along a network? I am trying to do it with ArcObjects in the VBA environment.
1 vote
1 answer
21 views

Unexpected Output Using GridIndexFeatures in ArcObjects [closed]

I am using ArcObjects 10.2 to generate grid index features programmatically. I can get the correct output using the built in GUI geoprocessing tools, and with ArcPy. Furthermore, when I copy the ...
2 votes
1 answer
2k views

Geoprocessor Execute HRESULT COM Error

Recently, I started having problems with my C# projects running ArcGIS10.1 geoprocessing tools. My tools point to custom scripts in project toolboxes. The code in question has run without issue in the ...
1 vote
1 answer
255 views

Save spatial reference to application settings? [closed]

Having created a tool as a macro for several geoprocessing tasks, I'm saving user input to application settings so the user doesn't have to enter all required data on each use. I'm stuck on saving ...
0 votes
0 answers
44 views

No layers in the exported image of the MXD project using C#

I have created a console application to export the active view of an MXD document using C# ArcObjects. The app works, but for some reason the exported image is missing all the layers in the map and ...
0 votes
1 answer
213 views

Is snapping working when changing from NAD83(decimal degree) to NAD83 Zone UTM 11N(meters)?

I've used the following ESRI snippet to Convert the display extents in Pixels (at the current map scale) and then return out the map units. public System.Double ConvertPixelsToMapUnits(ESRI.ArcGIS....
1 vote
1 answer
123 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
0 answers
34 views

Implementing VisibleBoundsUpdatedEventHandler [closed]

I have an ArcObjects add-in button that adds attribute value info as a text graphic into a map document layout. Now, instead of using the add-in button click event, I would like the code to run on ...
0 votes
2 answers
5k views

Creating table and layer using ArcObjects in c# [closed]

I have used Make XY Event Layer to Creates a new point feature layer based on x- and y-coordinates using python and it worked for me. Now as a need of my project i want to apply the same in c# using ...
2 votes
0 answers
131 views

drawing line from points [duplicate]

I have a series of XY coordinates. I want to use these points to draw a line in ArcMap using ArcObjects 10.1 with c#. I have saved this in a table inside geodatabase. Am i supposed to create a feature ...
1 vote
1 answer
1k views

How can I get the coordinates of a grid cell?

How can I get the real coordinates (i.e. X and Y) of a given grid cell when I know its row and column position?
1 vote
1 answer
156 views

Dockerize ArcMap-application

I'm trying to dockerize my ArcMap-application, which is written using ArcObjects for Desktop. The reason to do that is, we have a huge code-base that we want to test automatically as much as possible ...
2 votes
2 answers
2k views

How do I programatically edit the layer 'Display Expression'

I'm wondering if someone has or knows where a tool is to edit the 'Display Expression' of a Layer, or more specifically, a TableView, in ArcGIS Desktop. I know that it can't be accessed with Python, ...
1 vote
0 answers
58 views

More than one ArcEngine GeoProcessor run at a time (concurrent)

I'm trying to run more than one AddRastersToMosaicDataset geoprocessor at the same from a test .NET 4.8 C# console application. So far I tried the below approach running in threads but it seems as if ...
2 votes
2 answers
1k views

.net Geoprocessing object: 000816: The tool is invalid [closed]

I am currently trying to build an ESRI Addin that supports multiple versions of ArcGIS (10.0 & 10.1). The project targets .net framework 3.5 and is built in the ArcGIS 10 environment. The ...
2 votes
1 answer
62 views

Using ArcObjects to allow assignment of unique numeric IDs

In ArcMap 10.6 > Data Frame Properties > We have the "Allow assignment of unique numeric IDs for map service publishing" and the associated Layer > Properties > General > ...
4 votes
1 answer
377 views

Access to ArcObjects DLLs on a build server using Nuget

We're in the process of standing up a new build server--Jenkins on Windows Server 2012 if that matters--and are attempting to configure it to build a solution that uses ArcObjects (currently at 10.2.2,...
0 votes
1 answer
210 views

ISurface.GetElevation extremely slow compared to GlobalMapper [closed]

I'm using ISurface.GetElevation on a Raster to get the elevation for a specific lat/lon. I have to do this for a huge set of datapoints. Currently i'm testing with a dataset of 10.000 items which ...
6 votes
1 answer
545 views

Display Feedback "Stutters" When Moving Features [closed]

I have a custom tool for moving features that implements IDisplayFeedback and geometry-specific CoClasses to show the user where they are moving the feature. IMovePolygonFeedback polygonFeedback; ...
5 votes
2 answers
308 views

Is the order in which ArcMap loads Extensions, Toolbars and Commands defined?

When you extend Esri's ArcMap with both an Extension, a Toolbar and a number of Commands, is the order in which these categories are loaded by ArcMap well-defined? (I.e. are Commands always loaded ...
0 votes
1 answer
1k views

ArcObjects "Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))"

I have an ArcObjects application that is throwing the exception, Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) on the line from the below code, feat.Store(). feat is ...
2 votes
1 answer
847 views

Casting ArcSDE table to IFeatureClassLoad

How do you cast an ArcSDE table to IFeatureClassLoad using ArcObjects? I'm getting an error with this attempt below which is not the correct method: Dim pSDEFeatWksp As IFeatureWorkspace = ...
1 vote
1 answer
417 views

VB ArcGIS 9.3 - Move column to the left [closed]

I'm trying to move text that is not aligned to the far left of the column due to programmer input. I'm trying to figure out the VB coding for it, but nothing seems to happen in the Attributes table (...
2 votes
1 answer
313 views

Locating ArcMap Commands page

If there is an updated ArcMap Commands site for version 10, where is it located? I could not find it at ArcObjects SDK 10 Microsoft .NET Framework.
0 votes
1 answer
63 views

Creating DbGeometry instances that honor SRID

I maintain an ArcMap Add-in tasked with allowing people to see & edit some native SQL shapes in ArcMap, which of course require working with SqlGeometry and DbGeometry types. Converting between ...
0 votes
1 answer
285 views

Listening to edit events using ArcObjects [closed]

I recently started working on ArcMap. I want to make some changes to the edit tools. For example, I want to prevent the user from using the sketch tool when the time is between 1pm and 2pm but I don't ...
0 votes
1 answer
244 views

Don't move Layout

I'm doing a vb.net button to run in ArcMap. the button is working, the problem is as I'm working in the layot when I press the button, change the layout coordinates and the map coordinates. Is there a ...
23 votes
3 answers
1k views

Are there any OpenSource ArcObjects Projects?

One of the major benefits of developing GIS applications based on opensource libraries, is that many projects spring up on top of them which are also opensource. Well designed opensource projects ...
6 votes
2 answers
1k views

Alternatives to ArcGIS Extensions using ArcObjects?

I was wondering if there are any projects based around using ArcObjects and external libraries to create open source alternatives to extensions in ArcGIS. For example 3D Analyst, Spatial Analyst etc ...
3 votes
2 answers
2k views

Creating Esri Grid and populating cell values using Python/GDAL or ArcObjects?

In terms of processing speed what's the fastest way of creating and then adding values to a raster? The values will originally come from ASCII files which can be about 500MB in size - ideally I ...
2 votes
2 answers
1k views

Problems closing dbf-table edited with ArcObjects

To change values and add new values to a dbf-file, I connect to the dbf and use the ITable interface to make the edits. In the end, I release the COM-objects of the table and the workspace. But when I ...
6 votes
2 answers
3k views

How to catch when scale is changed in ArcGIS?

We want to update a combobox so that it always shows the correct scale. If the user zooms-in, out or resizes the control hosting the map. What is the best event or events to catch and use in ArcGIS to ...
6 votes
1 answer
998 views

Are there any good resources on WFS support in ArcGIS?

Are there any good resources on WFS support in ArcGIS? The only documents I found so far are these: How_to_work_with_WFS_using_ArcGIS_Desktop and Consommer des services/données WFS dans ArcGIS 9.2 But ...
1 vote
1 answer
89 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
1 answer
1k 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 community ...
2 votes
1 answer
60 views

Can geodatabase edits be canceled/modified with ArcObjects?

I am working on some tools to automate some field data collection. I would like to restrict the user's ability to delete features (such as when the DELETE key is pressed, or if the MERGE editor tool ...
0 votes
1 answer
292 views

Determining partially Overlapped features from two linear feature classes [closed]

I have been trying to find object ids of features that overlap partially. Input taken is two linear feature classes , I have tried IRelationalOperator Overlaps methords , but it seems that it only ...

1
2
3 4 5
50