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
1answer
114 views

Add-In button Click open ArcCatalog window with list of .sde files

I want code to open ArcCatalog window with list of .sde files.The below code always opens an ArcCatalog window with home location. I have to go to database connections from the window which finally ...
1
vote
0answers
50 views

Setting ID in query as IQueryDescriptions OIDFields throwing error?

I have a layer and the query for layer is a select query consisting of ID field in it. This query is being executed on top of Oracle and its throwing an exception for field "ID" when "ID" field is ...
0
votes
0answers
121 views

Attribute Table is empty

I am trying to point all layers in MXD files to a different database server. Databse server is Oracle type. Most of the layers consist of views. After changing the datasource programatically for all ...
0
votes
2answers
65 views

Com Exception when feature Class Select

I am using ArcObjects 10 and when I select a feature using queryFilter I get this exception : An exception of type 'System.Runtime.InteropServices.COMException' occurred in EMS.exe but was not ...
1
vote
0answers
120 views

Adding to group layers in loop is slow in ArcGIS Engine?

I am using ArcGIS Engine 10.5.1. I wanted to ask and see if anyone else has encountered this and or found a work around. I have a loop in c# where I am taking a large set of layer files and adding ...
1
vote
1answer
47 views

Raster attribute table [closed]

IRasterLayer layer = map.getLayer(0); I want know that how can get attribute table of raster layer. Such as how many rows that attribute table of raster layer have and...
1
vote
0answers
26 views

Error messages are not getting logged. I have created an Add-In button. I am using log4Net library for logging.

When i run Add-In button project on my machine, logging is being done successfully but as soon as i take the Add-In button and install it into different machine , no logging of messages occurs. Is it ...
0
votes
1answer
147 views

How to select features that are outside the boundary of a polygon

I have a polygon that there are some partitions inside its boundary and some partitions outside its boundary. My question is how to select the partitions that are outside the boundary of the polygon? ...
0
votes
1answer
348 views

How to find major and minor axis of a polygon for polygon subdivision

I want to divide a polygon into smaller polygons. For this purpose my procedure was to first convert the polygon into minimum bounding geometry and divide it into smaller polygons using major and ...
-2
votes
1answer
68 views

IRasterLayer to IFields [closed]

If I have a layer of IRasterLayer type how can I get the attribute table field values in ArcObjects? IRasterLayer layer = (IRasterLayer) map.layer[0];
0
votes
1answer
344 views

Accessing four extent values of layer using ArcObjects in C#?

How can I access the four extent values of a layer shown in the below image using C# in ArcObjects? Below is the code that i am using to achieve it but "AreaOfInterest" is null. public ...
0
votes
0answers
131 views

Resetting Layer Extent in MXD file using ArcObjects and C#?

When I change data source properties of a layer using ArcObjects in C#, I lose the extent set for that layer. How can I reset the layer extent? Below is the code in which I am resetting database ...
1
vote
1answer
468 views

Changing Layer DataSource using ArcObjects?

I want to change data source information of a layer. Lets say I have a MXD file in dev env configured with dev environment datasource details like server,database,username,password and I want to use ...
0
votes
0answers
96 views

Change Layer Field DataType

I want to change data type of a field to type esriFieldTypeOID in a layer. So i copy existing field into a new field than delete existing field first and than change datatype for copied field and than ...
0
votes
1answer
541 views

Getting Layer DataSource information in ArcObjects with C#?

I have a mxd file with 6 layers. I want to get datasource information for each layer. Please see the code below. I want to know how exactly i should get layer's datasource information IDocument doc = ...
1
vote
1answer
42 views

How to listen group layer added layer in ArcObject 10.1?

I tried using the following code to listen to the layers loaded into MapControl. However, it is found that the next event is not triggered when the layer is added to the layer group. How do you listen ...
1
vote
0answers
30 views

Drawing 3d polygon element on Arcobject axSceneControl?

I have standalone application (ArcObjects C# 10.1) uses axSceneControl. How to display on the scene 3d polygon elements? I have implemented drawing 3D line elements using ISimpleLIne3DSymbol. I tried ...
0
votes
1answer
182 views

Adding picture to ArcMap PageLayout using ArcObjects in .NET?

I'm using ArcGIS Desktop 10.6 and I'm creating an Add-in to simultaneously add text (textelement populated from user input) and an image (company logo). The issue i'm having is with the image. I ...
1
vote
0answers
39 views

how to Input polygon featuer using Rubber poly (ArcObjects)

Does any one know how to input polygon feature using Rubber poly? I would like to know how to input Polygon featurer using rubber poly.. as of now i can input polygon feature. but some times , polygon ...
1
vote
2answers
104 views

esriSelectionResultEnum

I was selecting features using IFeatureSelection interface like as below. IFeatureLayer2 featLayer = layer as IFeatureLayer2; IFeatureSelection featureSelection = featLayer as IFeatureSelection; ...
0
votes
2answers
347 views

Selecting point feature on Mouse click using ArcObjects?

How do I select point feature on mouse click? I can select polygon feature but I cannot select apoint feature. ESRI.ArcGIS.Carto.IIdentify identifyLayer = (IIdentify)iLayer; IArray array = ...
1
vote
0answers
118 views

ArcObjects.NET, append with automatic field mapping not working

I got a strange problem with ArcGIS 10.4 using ArcObjects.NET. By using the code below, if I want to use the Append tool, I have to send it the source and the destination. Both of them are of Object ...
1
vote
0answers
47 views

ArcObjects Maplex labeling doesn't work?

I am trying to modify a FeatureLayer's Maplex label settings. For some reason those properties don't get modified when opening the document afterwards. The document I am opening HAS already set the ...
2
votes
1answer
208 views

How to get Feature Attachments using ArcObjects .NET (using AttachToMemory)?

I am trying to retreive the Attachment of a Feature using ArcObjects in C#. The data is correct, I am able to dump the attachments to the disk using SaveToFile. I want to work in memory and not dump ...
1
vote
0answers
236 views

'object' does not contain a definition for 'AddValue'

I have been able to get past this error, but I don't know why it was happening. I'm attempting to set symbology on a layer using IUniqueValueRenderer in ArcMap 10.4. When I try and use the AddValue ...
0
votes
2answers
183 views

Using keyboard shortcuts to invoke custom ArcGIS Base commands using ArcObjects and C#?

I developed multiple ArcGIS Commands added in a toolbar. I want to invoke these custom commands based on the keyboard keys pressed by the user. How to implement this?
1
vote
0answers
40 views

Displaying NorthArrow on ArcObjects axSceneControl?

I have standalone application (ArcObjects C# 10.3) uses axSceneControl. How to display on the scene NorthArrow or Directional Arrow or something like that? I found an example for NorthArrow http://...
3
votes
0answers
69 views

ArcObjects modify Map Scale

I'm trying to modify the scale of the map so I can further export to pdf. The mxd document has a fixed map scale option set. The initial value is 250 and final is still 250 unchanged. The code looks ...
2
votes
1answer
62 views

Enabling “Place Overlapping labels” in ArcObjects?

I am currently using ArcObjects and I'm trying to tick the "Place Overlapping labels" option programatically. I have been using Standard ILabelEngineProperties and the properties of ...
2
votes
0answers
125 views

Removing slivers from IPolygon using ArcObjects?

ArcGIS Desktop Basic 10.1 with Spatial Analyst and 3D Analyst I have multiple neighboring polygons which I unionize. On occasion the result has slivers where the multiple polygons meet. I have been ...
1
vote
0answers
57 views

ArcGIS Elevation and Z Coordinate

I have standalone application (ArcObjects C# 10.3) uses axSceneControl, I'm trying to get a mouse click point: private void M_axSceneControl_MouseDown(object sender, ...
2
votes
1answer
57 views

Passing multiple Raster layers from C# to ModelBuilder?

I have created a model in ModelBuilder and I need to pass a list of rasters from my code (C#) but until now, ModelBuilder gets only the first record in the array. I have been passing it in different ...
1
vote
2answers
235 views

ArcGIS .Net Automation - Error when creating a feature

I try to create a (point)-feature in an existing Layer via ArcGIS Automation. I can create the Feature but when I call feature.Store() I get an HRESULT: 0x80010105 (RPC_E_SERVERFAULT) error. If ...
-1
votes
2answers
142 views

UID for Trace task commands in arcobjects .net

I have found below UID for Trace task Dropdown List. Trace Task Dropdown List : {DE03EE81-BE26-11D2-BABE-00C04FA33C20} But nothing is executed when using this UID. I would need to know the exact ...
0
votes
1answer
54 views

UID for set flag and barrier commands in arcobjects .net

I have found below UID to add a flag and barrier. Flag and Barrier Tools : {C86085FD-D8D9-11D2-9F4F-00C04F6BDF0E} But nothing is executed when using this UID. I would need to know the UIDs for ...
0
votes
1answer
294 views

Creating Feature Class in ArcObjects and C# says X Y domain on spatial reference system not set or invalid?

I'm trying to create a Feature class. It shows the error X Y domain on the spatial reference system is not set or in valid Here is my code attempt: IWorkspaceFactory wsf = new ...
3
votes
1answer
405 views

Missing Symbology Categories after performing join using ArcObjects?

I am trying to join a table to a feature class in , and use the joined fields to create custom symobology based on the joined fields as the picture 1 below for Arcmap using ArcObjects. I am ...
1
vote
1answer
39 views

Using addbasemap command in ArcObjects.NET?

Here I executed the save edit command programmatically pUid.Value = "{59D2AFD2-9EA2-11D1-9165-0080C718DF97}" 'save edits pCmdItem = pApp.Document.CommandBars.Find(pUid) pCmdItem....
2
votes
2answers
216 views

Creating holes from overlapping polygons in ArcObjects and C#?

I have a polygon layer which contains some overlapping polygons. I want Holes instead of overlapping polygons. i tried some code ESRI.ArcGIS.ArcMapUI.IMxDocument mxd = ArcMap....
1
vote
1answer
258 views

Python, comtypes and ArcObjects: The specified product or version does not exist on this match this machine

Im trying to incorporate the Snippets Module on another machine running 10.3.1 I've sucessfully apdapted it to script that uses it with 10.5, along with the comtypes module. However, a machine running ...
1
vote
1answer
74 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 ...
3
votes
1answer
82 views

Using Union tool in ArcObjects?

I am currently working with the Union tool of ArcObjects but I do not know how to properly pass the input_features to the union object. I´ve tried several methods but all throw an Automation Exception ...
2
votes
0answers
91 views

Communicating with separate ArcGIS Add-in?

Is it possible to access the functions or properties of an ArcGIS Add-in project (C#) from another Add-in at run time? I have a custom ArcMap application extension installed and I would like an Add-...
2
votes
2answers
490 views

Comparing geometry of two features to get changes using ArcObjects and c#?

I would like to compare the geometry between two feature, Already I selected the two feature. How do I start the comparison? depend on the image below I need to write code to compare this two ...
4
votes
1answer
70 views

File Doesn't Exist/Isn't Supported Error - Running Python Script through C# ArcObjects

I have a script that is run using a combination of ArcObjects and a python script. The process starts in C# Arcobjects code, I create a geoprocessor, and then I run a toolbox tool (python script) with ...
1
vote
2answers
437 views

Updating all attribute data in Feature Layer using ArcObjects

I have a layer with over 250,000+ features, and I want to update all the attribute data using ArcObjects and C#. I have written the code below and it takes around 3 hours to perform the update. Can ...
0
votes
1answer
134 views

ILayer to IFeatureLayer casting problem in VBA

I am facing problem with ILayer to IFeaturelayer casting in ArcObjects(VBA) after casting debugging time it is showing error message. Run-time error(Type Mismatch). error getting at **** For i = 0 ...
-1
votes
1answer
109 views

Checking if selected layer is poly line or point in ArcObjects C#? [closed]

My TOC contains two layers one polyline and point. If i selected polyline layer execute the polyline related code..else if selected layer is point execute the point related code. How do I get ...
2
votes
1answer
360 views

Creating multiple features in Featureclass using ArcObjects?

I am tried to create 10 points and store in a featureclass.But it store only one point that is p9. How to store multiple points code: ESRI.ArcGIS.Carto.IFeatureLayer flay = lay as ESRI....
1
vote
1answer
106 views

Casting igxobject to ifeatureclass in ArcObjects C#?

In above Image text box show the file path. I selected file from the igxdialog and file stored in igxobject. Now to how to casting from igxobject to ifeatureclass of selected file... but igxobject is ...