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
25 views

ArcObjects using ArcPy [closed]

I'm trying to access ArcObjects from Python. I came through online resources from Alex Tereshenkov. Currently I'm using ArcGIS 10.6.. The snippets mentioned in the blog were up-to 10.2 only. Is there ...
1
vote
0answers
24 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
votes
1answer
14 views

While Runing the Code Showing Error on “pCalculator.Calculate”

Private Sub CommandButton1_Click() ' Part 1: Define the feature class. Dim pMxDoc As IMxDocument Dim pFeatureLayer As IFeatureLayer Dim pFeatureClass As IFeatureClass Dim name1 As Variant Set pMxDoc =...
0
votes
0answers
20 views

ArcCatalog doesn't run program

I've designed a program in which: user selects their input directory, the source of the shapefiles user selects their output folder, where their file will end up user names their resulting Excel ...
1
vote
0answers
12 views

ArcObjects and JavaFX [closed]

I am trying to export my ESRI add-in to ArcCatalog. I have access to ArcGIS for Desktop. I do not use Arc Runtime. I have created a java small program, and I'd like to kick it off with a button. ...
2
votes
1answer
30 views

Using IAddDataDialog2 to obtain layer from .gdb with ArcObjects and C#

I am using ArcMap 10.4.1. I cannot figure out how to properly initialize/create IAddDataDialog2 in C# to access a .gdb file in which I'm suposed to find a layer that I want to add in my TOC. I tried ...
1
vote
1answer
34 views

Getting subtypes from standalone table in ArcObjects

I have been working in the next code to get all Subtypes from a standalone table in a single string that concatenates it. I work with ArcMap and arcobjects library in C# (sharp) lenguage. But I can ...
0
votes
0answers
42 views

ArcMap 10.5 not opening when executing ArcObjects in Visual Basic 2015

When executing Visual Basic 2015, the following error appears A debugger has been found running in your system. please unload it from memory and restart your program.
1
vote
0answers
41 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 ...
0
votes
0answers
19 views

Calling .net DLL by using ArcPy [duplicate]

I had developed a tool by using C# (ArcObjects) and I want to (import that customized DLL and) call a particular function from that class by using ArcPy. How can I achieve this?
0
votes
1answer
64 views

Editor Tracking: What is the mechanism behind this functionality?

I have Editor Tracking enabled on a table in an Oracle enterprise geodatabase (versioned): Tracking an editor's changes to data says: ArcGIS automatically records new editor tracking values ...
1
vote
1answer
24 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 ...
0
votes
1answer
30 views

Duplicating feature layer with ArcObjects?

After opening a MxD document and getting the main map then a feature layer, I want to duplicate the layer with ArcObjects in order to inherit its properties (symbology, layer def and labelling). Then, ...
0
votes
1answer
38 views

Getting the difference between a multipart feature and a single feature using Itopologicaloperator

I am creating a C# addin for ArcGIS Desktop, where one of the functions is to create a feature from the difference between 2 other features. In the image below, I want to be able to create a new ...
1
vote
1answer
39 views

ArcMap - ArcObjects Text in Layout mode not showing

Refactoring VBA to VB.NET and most parts of the code is working expect for the part where I want to show the layername with today's date in the layout mode (pTextElement.Text) Any ideas why the text ...
0
votes
0answers
18 views

Retrieve WMX Database folder using ArcPy?

By using 'WMXAdvancedSettings.exe', the user can modify/change the default Database folder path(jtc-file path). In such case, how can I find the "WMX Database folder path" from current settings by ...
0
votes
2answers
63 views

Determining when layer has been loaded in ArcObjects?

Is there an event in ArcObjects to determine when a layer (specifically a shapefile) has been loaded into a map? I'm using ArcObjects 10.4.1 and C#
1
vote
0answers
32 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 ...
0
votes
1answer
33 views

Error when creating projected coordinate system

I have written a function to get a Transverse-Mercator IProjectedCoordinateSystem. However when calling the Define function I get an RPC_E_SERVERFAULT (HRESULT: 0x80010105) and no additional ...
3
votes
1answer
39 views

Display selected feature next to winform window

I'm trying to achieve a scenario like below image when a row selected in Grid, the selected row's feature should be visible next to winform window But in my case, I'm stuck with a selected feature is ...
3
votes
1answer
113 views

Georeferencing RasterLayer using ArcObjects?

I have a raster derived from a .png which has been drawn into a geodatabase. I also have the spatial reference and extent coordinates where I want to georeference the raster. Is there a way to ...
0
votes
1answer
31 views

Draw RasterLayer to map

I request a .PNG from a rest API, store it and create a IRasterLayer. My problem is I'm trying to draw it to the focus map with the RasterLayer.Draw() method, but does not look like I'm doing it ...
1
vote
1answer
49 views

How can I handle ArcMap events of CREATE, UPDATE or DELETE?

As a developer I can use ArcPy (Python) or ArcObjects (.NET) to develop some extensions or tools for ArcGIS platform. But I need to handle some events. When a user connected to an Enterprise ...
1
vote
1answer
24 views

ArcObjects - IFeature HasOID property returning false when there is clearly an OID [closed]

When inspecting features in my featureclass, I am checking to see if a feature has an OID using the HasOID property. Even though the feature(s) clearly has an ID on visual inspection (via ArcMap), the ...
1
vote
1answer
29 views

Programmatically open Viewer/Magnifier window in ArcMap 10.2+

Is there a way to programmatically open Viewer/Magnifier etc. windows of ArcMap from Add-In? I am using 10.2, but anything 10.2+ will be fine.
1
vote
0answers
14 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
42 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 ...
2
votes
1answer
62 views

Displaying list of features included in polygon

I want to find the object that is part of the polygon and displaying it in a separate listbox. I have two layers with polygons, the first polygon (Red) is the polygon in which you want to search for ...
0
votes
1answer
76 views

ArcObjects Error HRESULT E_FAIL has been returned from a call to a COM component

When you run a Python script from ArcObject .net, an error occurs, all parameters are correct. ArcMap 10.6 import arcpy from arcpy import env arcpy.env.overwriteOutput = True env.workspace = arcpy....
2
votes
1answer
41 views

Determining if raster can be clipped with polygon using ArcObjects?

Using ArcGIS 10.4.1 ArcObjects with geoprocessing. I have an input feature class with 100s of polygons and also one raster. I iterate through each polygon and clip the raster and then do additional ...
1
vote
0answers
56 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 ...
2
votes
0answers
41 views

How can I validate a SQL statement in ArcObjects?

I'm trying to validate the results of a ISQLQueryDialog2, but can't find any out of the box solutions. This particular dialog has a built in validate button, but I would like to programmatically ...
0
votes
0answers
19 views

Skip locked rows for editing using ArcObjects?

Can I lock a row so that the cursor does not bring it because it is in use by another cursor ? ITable table=GetTable(); ICursor crntCrsr=null; ICursor secondCrsr=null; crntCrsr=table.Search(filter,...
0
votes
0answers
37 views

Missing image in custom ArcMap toolbar

I am getting a [Missing] icon for a toolbar using ArcObjects. I have never seen this before and cant find any information on it. The custom extension that is this tool bar was written in VB.Net using ...
0
votes
0answers
123 views

Why does opening SDE Workspace Factory ask for credentials again? ArcObjects C#

I'm trying to open SDE Workspace Factory using IWorkspaceFactory.Open I give the complete Property set in the code to open. ESRI.ArcGIS.esriSystem.IPropertySet propertySet = new ESRI.ArcGIS....
0
votes
0answers
32 views

Converting geometric network's edge to Feature Class using ArcObjects and C#?

I'm tracing a Geometric Network with Forward Star. While tracing, I Also want to visualize the network edges after each trace. So I created a feature class of feature type Complex Edge (I have tried ...
1
vote
1answer
101 views

Select by Location (Between two layers) - ArcObjects C#

I have two Point Feature Classes - Say FC1 and FC2 - added in the current map I want to Select Features from FC1 that intersect with Features of FC2 This can be easily done with ArcMap's Select By ...
0
votes
1answer
38 views

Listing only Polygon Feature Classes in IMxDocument Using ArcObjects?

I am using VS 2017 with ArcObjects trying to list all polygons in IMxDocument to be used as clip feature in my add-In. I have a WinForms application and the following code: IMxDocument document = (...
0
votes
0answers
58 views

BC30456 'ITableSelection_SelectionChanged' is not a member of 'StandaloneTableClass'

I am seeing this error BC30456 when building this DLL for VB.Net ArcMap extension. I see the following in the ESRI.ArcGIS.Carto.xml which confuses me with the error. <member name="M:ESRI.ArcGIS....
1
vote
2answers
49 views

Clipping Feature by using irregular polygon in ArcObjects?

I want to clip the features based on selected polygon.I have the two layers "suburban" and "lot". I want to clip features of lot layer based on selected polygon from suburban layer. I have tried ...
1
vote
0answers
69 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
1answer
43 views

ArcMap / ArcObjects - Type “OLEDBWorkspaceFactory” is not defined when creating a new workspace

Making an Add-In for ArcMap, refactoring old VBA code into VB.NET. Trying to create a new workspace with ArcObjects in VB.NET. I am getting the error: BC30002 Type "OLEDBWorkspaceFactory" is not ...
2
votes
1answer
49 views

Getting line segment object from points

I am fairly new to Arc Programming and am currently using .net to build my tool. There is not much back ground information as I am starting from a Blank Map. The goal of my tool is just to create a ...
0
votes
0answers
14 views

IAttributeEditorDriver Interface - Ericsson Network Engineer

I was going through the SDK documentation for the IAttributeEditorDriver interface and it has the functions I am after, but the SDK does not detail what object does it need to 'latch' to in order to ...
1
vote
1answer
85 views

Using ArcObjects in ArcPy to change map grids in Data Driven Pages

I'm a newcomer to Python and have been working on using ArcPy scripts to automate Data Driven Pages in ArcGIS. I would like some help please to use ArcObjects in ArcPy and change map grids in DDP with ...
0
votes
0answers
53 views

System.TypeLoadException: Types extending from COM objects should override all methods of an interface implemented by the base COM class

Ok, here is the situation. I am looking to get a custom arcobjects vb.net extension running correctly on ArcMap10.5. When loading nodes in an attachment viewer I receive the following error once ...
1
vote
2answers
81 views

Refreshing Versioned Feature Class using ArcObjects?

I have a FeatureClass A. This Feature Class is Versioned. User X has a tool open, that reads records from this Feature Class, by clicking a refresh button. The refresh button code is basically a ...
0
votes
0answers
35 views

ArcObjects SDK for .NET JSONToFeatures fails when large JSON file is used

I have a large JSON file which I download from ArcGIS Server REST (size is 140MB). When I try to execute the JSONToFeatures Geoprocessing tool on this file I get an error. Code: (call below method ...
0
votes
1answer
68 views

Esri ArcObjects SOE

For my prototype I have published a service with one layer. The layer has 3 polygons with an entitlement attribute. Only one polygons entitlement is set to true. I need to write an SOE (in Java) to ...
1
vote
0answers
58 views

ArcObjects, “License not intialized” error, but it should be initialized [closed]

In my VB.NET application, I am using ArcObjects 10.4 and I am initializing ArcGIS. I load a feature class from a shapefile. The problem is that I get an HRESULT error 0x80040228, which is 2147220952 ...