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
0 votes
1 answer
27 views

How to find if a point feature is snapped to a line using ArcObjects

Background to the problem: When I use the Editor Split tool on a line, the line gets split into 2, and a junction is placed between the two lines. When I use the Editor merge tool, the 2 lines are ...
ZZZ's user avatar
  • 614
0 votes
1 answer
23 views

Using SimplifyPolygon Class in ArcObjects

I want to use the SimplifyPolygon Class that existed in ArcObjects 10.3 in ArcObjects 10.6, but I cannot find it in 10.6. How do I apply the SimplifyPolygon Class in ArcObjects 10.6?
momo's user avatar
  • 1
0 votes
0 answers
41 views

How to add custom URL parameters to WMTS connection in ArcObjects SDK for ArcMap?

I am trying to add a WMTS layer to ArcMap with the ArcObjects SDK. The layer adds just fine however the tile calls will not go through because the call ArcMap is constructing do not contain the api ...
lowlyphe's user avatar
0 votes
0 answers
14 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 ...
Michael Rut's user avatar
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 ...
Tian W.'s user avatar
1 vote
0 answers
35 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 ...
Allan Mills's user avatar
1 vote
1 answer
20 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 ...
amasephy's user avatar
  • 1,234
0 votes
0 answers
41 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 ...
shadow031's user avatar
0 votes
0 answers
18 views

ESRI ArcGIS: FDO_E_VERSION_REDEFINED - .NET Application

I have an application for ArcGIS 10.6 which it's built as follows: A class called Geodatabase, which implements the interface IDisposable Inside the class, there are some methods, like: ...
Volturno Luca's user avatar
1 vote
0 answers
52 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 ...
Andy Arismendi's user avatar
2 votes
1 answer
54 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 > ...
captonssj's user avatar
0 votes
0 answers
88 views

Your login name has no roles assigned for the loaded extensions. ArcFM

i am trying to access process framework module in ArcFM using C#. connString = $"DRIVER= {driver}; SERVER= {server}; DATABASE= {database}; PORT= {port}; UId= {userId}; Password= {password}; ...
Vikrant Jain's user avatar
1 vote
1 answer
144 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 ...
MakePeaceGreatAgain's user avatar
2 votes
1 answer
57 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 ...
Barbarossa's user avatar
  • 5,797
0 votes
1 answer
56 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 ...
Dan Narsavage's user avatar
0 votes
0 answers
84 views

Getting symbols parameters using ArcObjects

I have FeatureClasses (point, line and polygons) with symbology in cartographic representation. How I can get each symbol's parameters (e.g. for polyline: width, colour, style)? Dim featureClass As ...
dr.petr's user avatar
  • 13
2 votes
0 answers
52 views

What is going on in ArcMap AddIn?

I have an ArcMap-addin which is working from ArcMap 10.2 until 10.8 but since an undefinite time in undefined circumstances there happen things that I can't explain. I'm searching for the cause while ...
Frau Schmidt's user avatar
  • 1,181
0 votes
0 answers
64 views

Highlight a feature in ArcMap from a web page

I have a web page that calls a PowerShell script to switch to ArcMap. I only want one instance of ArcMap running. If I open a new instance of ArcMap I can easily pass the PlotId as an Argument. ...
Ruairi's user avatar
  • 11
0 votes
0 answers
96 views

Get SessionName from SessionManager

I am trying to fetch the session name, but only manage to get if the session is available. I am using following code private bool IsEditSessionOpen() { bool enabled = false; ...
Vikrant Jain's user avatar
0 votes
1 answer
123 views

How can I Embed BaseTool to winform in ArcObjects?

I am new to C# and still doing research. I open a windows form from a dockablewindow menu in ArcMap. I also have a button in WindowsForm, and when I click this button, I want to draw a feature on the ...
Veysel Alceylan's user avatar
0 votes
0 answers
54 views

ExecutionEngineException due to getting SpatialReference parameters

We developed an ArcGIS .NET extension. The input datasets are one polygon and one raster layer. At first, we checked the SpatialReference of the layers. If the SpatialReferences are different, we show ...
osman's user avatar
  • 163
1 vote
1 answer
348 views

Downloading file asynchronously within ArcMap using C#

I am writing an AddIn for ArcGIS 10.x using C#. I want to asynchronously download a file within ArcMap using HttpClient. My test code works in a hello world app but just hangs when I debug it in ...
narmaps's user avatar
  • 665
0 votes
1 answer
880 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 ...
The Other Lebowski's user avatar
0 votes
0 answers
168 views

Get table in ArcPy object

I would like to get the output of StackProfile() into an ArcPy object to avoid writing files. As far as I know this is possible to do with geometry objects but I have not found a way to do it for ...
pyGisServer's user avatar
0 votes
1 answer
28 views

ArcGIS Java Configuration Tool (JCT) Error: could not creat a registry key

I am trying to select debugging options in the Java Configuration Tool, ArcGIS Desktop 10.5. I have done this before, many times, in 10.4. But now, in 10.5 on a new computer, I am getting this message:...
lep's user avatar
  • 117
0 votes
1 answer
406 views

Get FeatureClass name from Layer properties in ArcObjects C#

I am newbie in ArcObjects. I am trying to fetch the featureclass name from layer properties under Data Source. I am able to get the red-marked text via ILayer, IFeatureLayer, IFeatureClass. Is there ...
Vikrant Jain's user avatar
0 votes
1 answer
225 views

Highlight all features associated with selected feature via relationship in ArcObjects C#

I am trying to highlight those features which are associated (via Relationship) to the selected feature in ArcObjects C#. public void IRelationship_Example(IFeature feature) { //assumes that only ...
Vikrant Jain's user avatar
2 votes
0 answers
16 views

Export TIFF from ArcGlobe viewer

I'm attempting to export the current view to a TIFF (I attempted JPEG as well) image in ArcGlobe, but it seems most paths to this are broken in ArcGlobe even though the first two of these work in ...
danielm's user avatar
  • 1,539
0 votes
2 answers
54 views

VB.NET Executing Raster Calculator

I'm trying to execute the raster calculator function in VB.NET but I'm having trouble with the gp.execute line. Sorry if the code is confusing, I'm fairly new to VB.net. I keep getting this error: An ...
Lauren840's user avatar
0 votes
0 answers
174 views

Geometry offset function is not working correctly

I'm trying to add offset in polygon feature and I'm using Esri a GIS software in C#. The issue that I'm facing is after I create a polygon and click on functionality for creating offset inside polygon ...
Prabhat Kumar's user avatar
0 votes
0 answers
161 views

Insert OLE/ActiveX objects (Excel) into ArcMap Layout using ArcObjects c#

I am trying to create an ArcMap Add-In in which I need to insert a sheet of an Excel file into the Layout using SDK.net ArcObjects. I can't find the slightest example of how to implement this. The ...
Влад Сычёв's user avatar
0 votes
0 answers
63 views

C-sharp Add-in button issues

I have C# code for an Add-in button in ArcMap (10.8). An ArcGIS add-in would be built if no errors found in the C# code when building solutions. In the beginning, I resolved some errors by installing ...
Song's user avatar
  • 1
1 vote
0 answers
234 views

ArcMap stops working after installation of add-in [closed]

I developed an extension for ArcGIS Desktop 10.8.1 using ArcObjects and C#. After a colleague tried to install the Add-In using the ESRI ArcGIS Add-In Installation Utility, his ArcMap could not be ...
Philipp Wöhlte's user avatar
0 votes
1 answer
290 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 ...
Weequay's user avatar
  • 101
1 vote
1 answer
80 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/...
Amar's user avatar
  • 11
0 votes
1 answer
94 views

Adding Basemaps in Map Control using ArcGIS Engine

I am developing a .Net application that is using ArcGIS Engine 10.8. I would like to add programmatically the "Add Basemap" functionality into the application's Map Control. How can I add ...
kamranation's user avatar
2 votes
1 answer
206 views

Creating a selection set from selected features using select by location

I am trying to convert my VBA code to vb.net. I use “Select by location” to select all the points that intersect lines. Then I want to click a button to put the points into a selection set. Then I can ...
BCConnor's user avatar
1 vote
1 answer
98 views

Windows cursor being outside of visible bounds of map using ArcObjects

What is the method to determine whether the Windows cursor is outside of the visible bounds (envelope) of the map? I need to know if the cursor is currently over another window frame and not the map ...
Weequay's user avatar
  • 101
0 votes
0 answers
228 views

ArcObjects C#.Net 'System.NullReferenceException'

I'm new to C# and ArcObjects. I just started a book and I'm getting introduced to it. My fist ever ArcObjects code is to create an extension that zooms to the full extent of an active layer. I have an ...
Ahmad Raji's user avatar
1 vote
1 answer
36 views

Creating global Geoprocessor object for ArcObjects application?

I have an application that does many operations including some Geoprocessor tasks. Should I create a single Geoprocessor() object for the lifetime of the application or should I create a new one each ...
Programmer's user avatar
1 vote
1 answer
44 views

ArcObjects access to ArcMap's Geoprocessing Results

Is it possible to get ArcObjects access to the geoprocessing results that show up in the geoprocessing Results window in ArcMap? I'm looking to remove results from geoprocessing operations that are ...
Dan Jurgella's user avatar
  • 2,368
2 votes
1 answer
179 views

Adding GeoPackage to ArcGIS Desktop using ArcObjects

How do I add a GeoPackage layer to ArcGIS Desktop using ArcObjects code (preferably c#)? From the ESRI documentation: The WorkspaceFactoryProgID identifies the ProgID of the WorkspaceFactory object ...
narmaps's user avatar
  • 665
0 votes
1 answer
123 views

Setting DockableWindow Initial Size ArcObjects .NET SDK

In an ArcMap custom tool I used DockableWindow for user interaction. I want to set a size for the window while initial opening. I changed the height and width of InitialPlacement. After changing it ...
osman's user avatar
  • 163
4 votes
2 answers
331 views

Shift polygon along the coordinate axis

I am creating BaseTool using ArcObjects with C#. The tool should reduce the polygon and move along the coordinate axis. I managed to reduce the polygon. When I want to use the PutCoords() function to ...
Nolu's user avatar
  • 91
4 votes
1 answer
109 views

Cursor returns object reference not set when reading Annotation Layer in ArcMap

I have an annotation Layer of Geometry Type Polygon. There are few hundred features in it and I need to shrink each of them to a smaller size (for example reducing them by 50%). I am trying to use ...
Yogesh's user avatar
  • 41
2 votes
0 answers
175 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. ...
Nolu's user avatar
  • 91
1 vote
1 answer
392 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 ...
Omnia9's user avatar
  • 463
1 vote
1 answer
84 views

Running MosaicToNewRaster tool fails. C#

I am currently trying to run the MosaicToNewRaster tool via C#, on a set of TIFF files. I am inputting all the required parameters but am still receiving: ERROR 000582: error occurred during ...
theMoreYouNgo's user avatar
1 vote
1 answer
279 views

ArcObjects update feature attribute

I want to update enabled field of feature in an asp.net MVC application. I have below code but it returned "No update session in progress" error public string Test() { ...
Mahdi Ahmadi's user avatar
1 vote
1 answer
168 views

Esri ArcObjects - getting geometry directly from SHAPE value ID

I've been teaching myself ESRI ArcObjects in C# over the past few weeks, I'm still very new in the ArcObjects world. All of our data is in an Enterprise geodatabase on a MS SQL Server database. I've ...
megabytes's user avatar

1
2 3 4 5
50