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
0answers
12 views

Copying alias name from feature class to new feature class using C# and ArcObjects [closed]

I want to duplicate a feature class and have the same attributes in the new FC. The new FC has all attributes from the old one but the Alias property didn't passed and instead it was replaced with the ...
0
votes
0answers
17 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 ...
1
vote
1answer
21 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 ...
0
votes
1answer
20 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 ...
0
votes
0answers
56 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 ...
0
votes
1answer
8 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:...
0
votes
0answers
24 views

ArcFM Designer: When I execute copy design subtask it locks the current design in Workflow Manager

I need to create a copy of the existing design and when I take advantage of ArcFM CopyDesign subtask, it creates a copy (in wither current WR or new WR) but it locks the original design. Is there a ...
0
votes
1answer
18 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 ...
0
votes
1answer
53 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 ...
2
votes
0answers
10 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 ...
0
votes
2answers
23 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 ...
0
votes
0answers
33 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 ...
0
votes
0answers
77 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 ...
0
votes
0answers
18 views

Modifying available attributes when reading CAD feature classes using ArcObjects

I would like to read CAD data including the default attributes provided by direct-read CAD data models, as well as other 'optional' attributes, using ArcObjects. The direct-read CAD data model can be ...
0
votes
0answers
28 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 ...
1
vote
0answers
61 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 ...
1
vote
1answer
45 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
23 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/...
0
votes
1answer
40 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 ...
2
votes
1answer
95 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 ...
1
vote
1answer
55 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 ...
0
votes
0answers
45 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 ...
1
vote
1answer
19 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 ...
1
vote
1answer
40 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 ...
0
votes
0answers
30 views

Adding mapgrid to existing mapinsets in ArcObjects .Net (C#)

I am facing the problem to add a mapgrid to existing map insets created in a pagelayout at an earlier step. I can implement some code in a DLL loaded by reflection to add some operations like adding a ...
2
votes
1answer
87 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 ...
0
votes
1answer
73 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 ...
4
votes
2answers
61 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 ...
3
votes
1answer
52 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 ...
1
vote
0answers
58 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
119 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
1answer
48 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 ...
1
vote
1answer
96 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() { ...
1
vote
1answer
42 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 ...
1
vote
0answers
61 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 ...
2
votes
1answer
44 views

Adding AddIn to ArcMap UI automatically after AddIn installed?

For example: I create a basic MainMenu "My Menu" AddIn by VS2010, and add "isRootMenu=true", complie and install the addin, open ArcMap, I have to open the customize dialog -> ...
2
votes
1answer
68 views

Layer time extent calculating problem while table joining with layer using ArcObjects C# .NET

I have added a layer in the ArcMap. I want to see the different values of the items of this layer using the "Time Slider". For this, I have prepared a table that contains a field named ...
2
votes
2answers
138 views

ArcObjects VB.net looping through domains of a subtype

I'm working on an ESRI-Addin written in vb.net. I have a FeatureClass with subtypes (POI with categories). Each subtype (category) has a coded value domain defining the subcategories. I managed to ...
0
votes
1answer
35 views

Does MakeTableView work with field_info in ArcObjects?

gp.Execute(new MakeTableView() { in_table = $@"Database Connections\os@gisuat.sde\TESTGIS.SOME_POLY", out_view = "SOME_POLY", ...
0
votes
1answer
32 views

How to package an image with an Addin so it can be added to page layout?

This post shows the code I'm using to insert an image into the page layout. It works fine, but it's using a hard coded path. Adding picture to ArcMap PageLayout using ArcObjects in .NET? Currently my ...
1
vote
1answer
65 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,...
2
votes
2answers
52 views

Cannot reuse output feature class in a custom geoprocess using ArcObjects

I'm developing an arcobjects 10.4.1 custom GeoProcess (fusion shift) which has to be able to run within a model builder. The GeoProcess seems to run smoothly, but the problem is it needs to be ...
1
vote
1answer
48 views

Why do we use PolylineClass() instead of Polyline()?

I was wondering why we instantiate a class with a class word instead of just the name of the class?
1
vote
1answer
306 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
20 views

Geoprocessor cannot find input data, but only for some users

I am developing a stand alone application that at some point needs to run Dissolve on a subset of data in a feature class. This code works for me without issue, regardless of workstation. When another ...
0
votes
0answers
52 views

IFeature.Store() method throws COM exception

I am developing a custom ArcFM attribute autoUpdater to update a couple of field values within a feature class. The autoUpdater will fire while creating as well as updating any feature with the ...
3
votes
1answer
146 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 ...
1
vote
1answer
56 views

Setting the column-order of the attributetable in ArcMap programmatically?

I'm loading a feature layer to ArcMap and want to prepare the columns shown in the attribute-table. Aliasname and visibility I set with ILayerFields-Interface of the FeatureLayer by passing it to the ...
3
votes
1answer
98 views

How to get the bounding rectangle of the rectangle drawn in the ArcGIS using ArcObjects?

I am trying to draw the rectangle in the map and get the Rectangle bounds from it. I am able to draw it but I am not getting the rectangle bounds. I have followed this url :Follow URL And my code as :...
2
votes
1answer
103 views

How to set image for Picture / IPicture for ArcGIS Desktop?

I am struggling with ESRI's Picture / IPicture Java documentation for ArcObjects 10.4. I just need to grab the image file from my project's source (src) folder, and cast that as a Picture. Here's ...

1
2 3 4 5
50