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
66 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 ...
2
votes
2answers
248 views

Add to geoprocessing environments when creating ArcGIS .net Add-in?

I would like to add a new environment to the Geoprocessor Environments from an ArcMap.net Add in. I try adding the env to the GPEnvironmentManager with the following code but when ArcMap opens and I ...
0
votes
2answers
34 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#
0
votes
1answer
24 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 ...
1
vote
1answer
39 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
0answers
22 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
2answers
60 views

Reason of mismatch of projection system of rasterlayer and featurelayer?

What I would like to check is if the raster layer and feature layer have the same projection. Code developed so far: public void SpatialReferencEquality() { var rasterLayer = ((ILayer)comboBox1....
3
votes
1answer
31 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 ...
2
votes
1answer
229 views

Passing polygon to geoprocessing service?

We have a geoprocessing service that has been in limbo for 6 months. Finally after a great decision to eliminate one element of the service, we got it working this week. I am now at the point where ...
1
vote
1answer
689 views

Tracking Map Events in ArcObjects Dockable-Window Addin?

I'm building an Addin for ArcGIS 10.2 with c#. It is a dockable Window, that will host some controls for our custom export solution. I want to listen to Map-Move events of the main map (IActiveView),...
3
votes
1answer
76 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
26 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
50 views

Disabling Start Editing command using ArcObjects?

How do I disable the Start Editing button in ArcMap when an added ArcSDE database version is the default? IMxDocument pMxdoc = m_application.Document as IMxDocument; IMap pMap = pMxdoc.FocusMap; ...
1
vote
1answer
11 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
0answers
9 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
11 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 ...
4
votes
1answer
1k views

How to set focus on ArcMap map window using arcobjects and c#.net

I have developed a custom dockable window with textboxes, comboboxes and a button for use in ArcMap. After the user clicks on the button in the dockable window a function is invoked. After the ...
0
votes
1answer
75 views

Checking for polygon neighbors using ArcObjects?

Could you tell me how to check in ArcObjects same feature overlapping other feature like (Building OID 10 and Another building OID 11) i tried to like below code but i am not going to for other step. ...
1
vote
2answers
37 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 ...
11
votes
3answers
4k views

What are pros and cons of Python add-ins vs .NET add-ins to ArcGIS for Desktop?

I found in ESRI .NET help: Python All ArcGIS Desktop applications include an embedded scripting language called Python. Many areas of ArcGIS—particularly geoprocessing—are accessible through ...
0
votes
1answer
44 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....
0
votes
1answer
197 views

Making point move to right or left using ArcObjects?

I want to make a point and the point can move to the right or to the left. To make the point I can handle it , but I can already confused in the movement of the point. This code for draw point ...
7
votes
1answer
386 views

How to add a new Parcel inside Parcel Fabric from existing parcel features (ArcObjects)

I want to create a new parcel in a parcel fabric layer. I have the x, y coordinates for the parcels to be created. I searched around a lot and found really nothing that actually "CREATES" a parcel. ...
1
vote
1answer
73 views

Inscrutable behavior of ArcMap add-in? [closed]

I'm developing an ArcMap add-in that takes some specific data from our database, generates some new layers on the map, then populates a multi-select box within the add-in. All of that was largely ...
1
vote
1answer
124 views

I want show updated xy coordinates 'live'

I want to create add-in tool to show x y coordinate on status bar live. protected override void OnMouseMove(ESRI.ArcGIS.Desktop.AddIns.Tool.MouseEventArgs arg) { //this.Enabled = !...
5
votes
2answers
591 views

Automate Naming of Stormwater Network (Geometric network)

We have a geometric network representing our stormwater network. For anyone unfamiliar with stormwater drainage networks, they are composed of pipes and pits (simplified for this question). Pits are ...
3
votes
1answer
1k views

IElement added to IGraphicsContainer ignores zOrder

I display a balloon callout after casting a axMapControl.Map to a IActiveView and doing this: pGraphicsContainer = activeView as IGraphicsContainer; pGraphicsContainer.AddElement(pElement, zOrder); ...
0
votes
1answer
111 views

Getting features from given geometry in map using ArcObjects with C#?

I am trying to get features from a given geometry (getting only layers ). This is not selection. The validate part I will be doing using configuration. But I am not able to get the features from the ...
0
votes
1answer
122 views

Create feature class with ArcObjects in SDE geodatabase returns No editable Layer

I Want To create Feature Class in an enterprise geodatabase with ArcObjects. This is the small part of the our plugin. In our case, we want to Create Feature Class in the database Identical to the ...
1
vote
0answers
28 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 ...
0
votes
1answer
145 views

ArcObjects(Java) - register table to geodatabase ESRI 10.3

We are in need of connecting to the Oracle SDE schema for registering Tables to the sde schema using only ArcObjects(Java) is it possible to do that with no dependency. Assume the geodatabase was ...
0
votes
1answer
92 views

How get the toolbar added with 'OnCustomizationEvent' from interface 'ICustomizationFilter'?

I'm implementing the interfaz ICustomizationFilter, and using the event 'OnCustomizationEvent' of this way: public sealed partial class eManager : Extension, ICustomizationFilter { public bool ...
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 = (...
1
vote
1answer
364 views

ArcObjects OnChangeFeature event not firing unless you move feature

I am displaying points, lines and polygons on ArcMap as features with an addin. I want my end users to be able to change features (move geometries, add vertex, delete vertex etc) and get the updated ...
2
votes
3answers
231 views

Creating Custom Layers using ArcGIS Pro SDK for .NET?

We have a Custom Extension developed for ArcMap, which includes the Creation of a Custom Layer. The Code for the Layer is similar to what you see in this Answer to Custom Layer not drawing using ...
2
votes
1answer
58 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
94 views

With in Version Difference (DifferenceTypeUpdateNoChange) how to pass IQueryFilter in ArcObjects

I want to know only real shape edits between 2 versions. How can I pass iQueryfilter to DifferenceTypeUpdateNoChange? public void DifferenceTypeUpdateNoChange(ITable sourceTable, ITable ...
-1
votes
1answer
259 views

Performing vector projection using ArcObjects and VB?

I am creating a ArcGIS console application using ArcGIS 10.2 and Visual Studio 2010. I need to project a shapefile to a new location (.gdb) using console inputs and the Project tool within the Data ...
2
votes
1answer
642 views

Syntax for queryFilter.WhereClause in C# [closed]

I need help with a queryFilter WHERE clause that is giving me a headache. All it does is to convert the search to uppercase and perform the search whether the result is uppercase or not (e.g. it will ...
14
votes
6answers
5k views

What are the rules for releasing ArcObjects from memory in .NET?

Do I need to release each object? Is some memory management handled for me?
5
votes
1answer
2k views

ArcObjects SQL Server Connection not recognizing instance

I am trying to make a connection to a SQL Server database with SdeWorkspaceFactory. This is from my Windows 7 x64 Desktop to a Network database. If I use this: SDEWorkspace = NewObj(...
2
votes
1answer
35 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
4answers
452 views

Any extention Open File Dialog

GetOpenFilename doesn't work in arcobjects VBA, so I have to use pGxDialog. Standard pGxDialog doesn't let to open any file I want, a few extentions are available only (shp, dxf, xls...). Maybe, I ...
1
vote
0answers
32 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
28 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
16 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,...
2
votes
2answers
2k views

Benefits of relationship classes and how they can be accessed in c#

At the moment I've a personal geodatabase with two imported feature classes from shape files and an own created table. This table has columns for the IDs of the elements in the two feature classes. ...
0
votes
0answers
26 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 ...
6
votes
2answers
3k views

How to split a Polyline Geometry at a certain point in ArcObjects?

I have a polyline geometry and wish to split it into two different geometries, based on a given point on that line, in ArcObjects. I have tried to find out how to do this, but to no avail. I found ...
3
votes
3answers
1k views

Using ArcGIS Geoprocessing and 32/64 bit architecture with ArcObjects?

I am coding a VB.net console application using ArcObjects to call ArcGIS 10.1 geoprocessing tools. I have several geoprocessing calls that actually work, but that pop up an irritating message box when ...