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
3
votes
1answer
42 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 ...
0
votes
1answer
37 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 ...
2
votes
1answer
28 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 :...
3
votes
1answer
63 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
vote
1answer
64 views

Make IPictureMarkerSymbol file path accessible to all users?

I've written a little java add-in button for ArcDesktop 10.4, in eclipse, which makes a new ArcMap layer with some points. (NOT Runtime) My goal is to assign a picture as the symbol for each of these ...
0
votes
1answer
24 views

How to set the angle of an Annotation when use a shared symbol

I am creating annotations in an add-in and am trying to rotate the annotation using the Angle field while using a shared symbol, however when I try and set the Angle field directly it always sets back ...
0
votes
1answer
40 views

ArcObjects C# memory management - Out of memory exception

I'm a noob in C# and ArcObjects (started two weeks ago). I'm trying to write a stand-alone console program that will change label placement quality in all data frames for all MXD files in a given ...
1
vote
1answer
28 views

How to disconnect a feature from Geometric Network using Python ArcGIS

I am creating a Python add-in for ArcMap, which on click, will disconnect the feature from Geometric Network and then delete it from the feature class. But ArcPy doesn't have any method to disconnect ...
1
vote
1answer
32 views

How to bootstrap an MSI to Esri .NET Add-in

I support an old COM extension to ArcMap built using ArcObjects, and I'm exploring the possibility of porting it to an Add-in. The main benefit I'm seeking with the add-in is its ease of deployment: ...
1
vote
0answers
107 views

Update Esri SOAP to REST

I'm new to ArcObjects, not a GIS professional so please be patient with my lack of GIS knowledge. I have an .Net Web application with ESRI.ARCGIS.SOAP references, looking to update them with rest. ...
0
votes
0answers
22 views

ArcObjects Load features that don't exist

I'm trying to write a method in ArcObjects .NET that will load features from a file GDB into another geodatabase but only if they don't otherwise exist. Records are considered existing if there is a ...
1
vote
0answers
30 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
15 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
24 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
13 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
33 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
42 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) language. But I can ...
1
vote
0answers
42 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
21 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
80 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
28 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
36 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
42 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
40 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
19 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 ...
1
vote
2answers
80 views

Determining when layer has been loaded in ArcObjects?

Is there an event in ArcObjects to determine whether a layer (specifically a shapefile) has been loaded into a map? I'm using ArcObjects 10.4.1 and C#
1
vote
0answers
33 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
34 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
40 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
133 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
33 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
58 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
27 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
34 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
15 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
49 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
64 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
98 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
49 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
65 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
53 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
20 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
38 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
133 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
36 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
154 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
43 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
77 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
59 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
77 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 2 3 4 5 49