The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
8 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 ...
-1
votes
0answers
5 views

ArcFM IMMCustomFieldEditor Implementation [on hold]

How can I identify features in ArcFM grid, using the IMMCustomFieldEditor interface in a C# application?
0
votes
0answers
35 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
37 views
+50

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
56 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
18 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
24 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
36 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
37 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
55 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
31 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
92 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
46 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
21 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
27 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
38 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
61 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
63 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
39 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
51 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
38 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
18 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
34 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
111 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
29 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
77 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
37 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
50 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
41 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
45 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
42 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
48 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
75 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
50 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
71 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
34 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
63 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
48 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 ...
0
votes
1answer
18 views

ArcObjects: with transformation reprojected tiles are drawn with spaces

I have used this Code from Kirk to choose a transformation if the spatial reference do not match when adding a layer with tiles. The tiles already got automatically reprojected to the existing ...
0
votes
0answers
25 views

How can I obtain the layers and tables catalog from within an ArcGIS SOI?

I am writing an ArcGIS 10.4 SOI in .Net and I would like to obtain the layer name for a layer id during an HTTP REST request intercept. Currently, when the SOI is started the first time, two requests ...
2
votes
0answers
21 views

Pan viewer window changes scale first time

I have written a simple tool to pan a viewer window (if present) to the centre of the map view, which reduces the number of clicks required and mouse travel to Pan Viewer to Map Location, it works ...
1
vote
0answers
25 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
26 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....