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
1answer
33 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
14 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
48 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
28 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
28 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
78 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
30 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
44 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
13 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
15 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
13 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
29 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
60 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
53 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
38 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
45 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
33 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
17 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
29 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
98 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
22 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
65 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
37 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
38 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
42 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
36 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
47 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
13 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
70 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
47 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
55 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
31 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
40 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
17 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
24 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
20 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
25 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....
0
votes
1answer
107 views

Using ArcGIS Engine with Background Geoprocessing (64 bit)

Could someone suggest how to use ArcGIS Engine Background Geoprocessing (64 bit) in ArcGIS Engine 10.4 ArcObjects console application? I am using C#, .Net 4.5.2 framework, ArcObjects SDK 10.4 to ...
1
vote
1answer
50 views

Closing ArcMap getting started dialog using ArcObjects by C#?

I don't want the ArcMap "Getting Started" dialog to appear after arcmap starts up. I have a login form in my Extension and after login I set a proper MXD for the user. So I don't want the "Getting ...
2
votes
0answers
353 views

Setup ArcGIS 10.6.1 SDK runtime in Visual studio 2017

I have ArcGIS 10.6.1 and I wish to setup ArcGIS Add-in in Visual Studio 2017 community edition. I installed Visual Studio followed by ArcGIS Desktop. Then I installed ArcGIS 10.6.1 runtime SDK. ...
6
votes
2answers
88 views

Extending ArcGIS Metadata Style?

I want to extend metadata style. I want to add three new fields in metadata of feature class. I know there are different standards of metadata which ArcGIS Supports. Is there any way or possibility ...
4
votes
1answer
163 views

ArcObjects: Convert Feature to JSON

I need to get the JSON from a feature using ArcObjects. According to I tried to following code, but it does not work: var jsonWriter = new JSONWriterClass(); jsonWriter.WriteToString(); var ...
2
votes
1answer
47 views

ArcObject10.1:Memory Leak with ILasDataset.Export()?

I have created a function for exporting to the las in the geometry range by the ILasDataset.Export method.now every time the function when it is called,it takes some memory,but doesn't release that ...
1
vote
0answers
138 views

Run-time error -2147467259 (80004005) in VBA when clicking and saving polygon to shapefile? [closed]

I'm fairly new to this project and to VB and got some of old code to fix. The task is to click a polygon on the screen with the mouse and then save it to a shapefile. When executing the code, it ...
2
votes
1answer
35 views

Fitting to Margins of Layout in ArcObjects?

What ArcObjects are involved in making "Fit to Margins" work for a given Page Layout? Easier to see from picture below:
1
vote
0answers
50 views

Load WFS via QuickImport from ArcGIS DataInteroperabilityTools

For a project I have to load a WFS layer in ArcMap programmatically. Since Version 10.0 there is no ability to use the FMEWorkspace as discussed here. The only way to load WFS-Data to ArcMap is to ...