Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

2
votes
1answer
66 views

Hiding particular field in parameter combo box using ArcObjects and C#?

I am currently fetching the all fields/attributes of feature class and display in Combo box parameter using below code: paramEdit = new GPParameterClass(); paramEdit.DataType = new DEFeatureClassType(...
1
vote
0answers
160 views

Is Python or C# with ArcObjects more efficient in memory management in ArcGIS Desktop? [closed]

I have two scripts one in Python and other in C# using ArcObjects, both of them perform same operations and that is making some edition by using Select by Location. The amount of data which is being ...
2
votes
0answers
76 views

How to use IGxDialog to save output feature class

I found this code to take input through IGxDialog box from a guidebook: IGxDialog gxd = new GxDialogClass(); gxd.AllowMultiSelect = false; gxd.ButtonCaption = "Add FileGDB"; gxd.Title = "Add All ...
0
votes
2answers
128 views

Opening feature class created in_memory using ArcObjects?

How do you open an IN_MEMORY featureclass? The code below is not working: IGPUtilities2 gpUtils = new GPUtilitiesClass(); IFeatureClass featureClass = gpUtils....
0
votes
1answer
268 views

Using IFeature Selection with ArcObjects and C#?

I have a list of IFeature (List lst) and I want to select and highlight and show in the map. All I am getting is like the IFeatureSelection , ISelectionSet and they work with Feature Layer not the ...
0
votes
1answer
141 views

Deleting Multiple Field from a Feature class in ArcObjects

I am trying to delete all fields from a feature class except 4 Fields "FID", "Shape", "OBJECTID" and "SUBTYPECD" With below code: IGPUtilities2 gpUtils = new GPUtilitiesClass(); ...
1
vote
1answer
366 views

Which programming language is used to develop ArcGIS Desktop application?

I just wanted to understand which programming language is used to develop the ArcGIS Desktop application, through my initial research I got to know that ArcGIS Desktop was created by using C++. I ...
0
votes
0answers
41 views

Merge Management Not Working with more than two input

I have code to merge two featureclasses with Merge_Management geoprocessing tool using ArcObject. Below is the code : for (int i = 0; i < map.LayerCount; i++) { if (...
0
votes
1answer
102 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 ...
1
vote
0answers
82 views

How to find intersecting features from inside a drawn polygon

I have drawn a polygon and I want to get all the intersecting features. But here I got stuck and not able to proceed.When I run the code it allows me to draw the polygon in the map. But I am not very ...
1
vote
1answer
41 views

Creating unique identifier for cadastral parcels in ArcGIS 10.5?

Creating unique identifier for cadastral parcels in ArcGIS 10.5 (ArcView)? I'm adding selected parcels to a feature class and I would like to have a text prefix and then three or four digit number ...
1
vote
1answer
212 views

Selecting an Area/ Boundary on MouseDown Event and find all the feature class within that boundary scope Using C#

I was thinking to select an area or a boundary in ArcMap on MouseDown Event and select all the features inside it. How do I select the boundary with the code in C#? Here is what I did: public ...
1
vote
1answer
327 views

Create buffer around selected points and add to a new shapefile

I am trying to figure out how to create a buffer around selected points and add them to an new shapefile. My idea is to have a loop that loops through the selected points and perform a buffer and ...
3
votes
1answer
144 views

Creating polygon with esrieditor.editor in C#?

How can I make a polygon using esrieditor.editor in ArcObjects? I tried this method: workspaceEdit.StartEditOperation(); IFeature feature = featureClass.CreateFeature(); Polygon p2 = featureClass....
2
votes
1answer
66 views

Using Merge_management Geoprocessing tool in ArcObjects?

I am trying to use Merge_Management Geoprocessing tool in arcobject, I want these tool to use layers named "HT Overhead Line" and "HT Underground Line" and create the output out.shp. Below is the ...
1
vote
1answer
111 views

How to select and add a featureclass through GXDialogue

I am new to arcobject i have learned how to add a feature class by specifying its name in code through gxdialogue. i want to change it so i could directly select the the featureclass instead ...
3
votes
1answer
337 views

How to find point on polyline using a starting point and a distance along the curve using ArcObjects

I want to query a point on a polyline, using a starting point on the polyline, and a distance from the starting point, using Arcobjects. My inputs Point A, Polyline A, Distance from pointA. Output ...
1
vote
0answers
71 views

How to get the closest line to a selected polyline

polylines A, B, and C meet at point P1. Whats a quick way that I could find out which line is closest to polyline A using arcobjects ? At first I used IProximityOperator by casting PolylineA and then ...
1
vote
1answer
360 views

In C# ArcObjects, how to get layer field names from ArcGIS Server layer?

I'm creating an add-in to ArcMap using C#. I need to get all the fields of every layer. Code below works to get the fields when the layer is added via a shapefile. However, I can't get the fields ...
0
votes
2answers
273 views

How to consume an ArcGIS Server service from ArcObjects?

I have this end point to my ArcGIS Server: http://myarcgisserver/arcgis/rest/services/prueba/GMRE/MapServer I'm trying it with GisClient: public void requestServer(string username, string password) ...
2
votes
0answers
85 views

Automation Error while running Geoprocessing tool using VBA in ArcMap?

I am trying to run a geoprocessing tool in ArcGIS 10.2 as a part of a VBA GUI (kind of) that I'm trying to create - unfortunately it gives me an automation error. I'm new to VBA and ArcGIS. The ...
0
votes
1answer
72 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 ...
1
vote
1answer
131 views

How to Use IGraphicsContainer.BringForward?

I'm making an add-in for ArcMap using ArcObjects. I'm trying to bring an IElement that I've added to the ArcMap.Editor.Map.ActiveGraphicsLayer layer up one level in Z-Order. How do I add my IElement ...
0
votes
0answers
41 views

ArcMap addin to save-as gdb

I have an add-in written in C# that provides several custom functions in ArcMap. For one of the functions, I'd like to export/save-as the currently-open document to a new GDB. I can use the ArcMap....
0
votes
1answer
223 views

How send parameters to a Dockable Window in ArcObjects?

I need send a IFeature element to a dockable window. I tried creating a public static variable, in eManager Class, that is inicialized with a feature that catch a function: public static IFeature ...
0
votes
1answer
61 views

ArcObjects Add-in - Making distinct add-in components talk to each other

I'm starting developing with ArcObjects and I'm stuck at trying to make two comboboxes talk to each other. What am I trying to do is changing the contents/selection of ComboBox B based on the ...
1
vote
0answers
98 views

Connect to ArcGIS Server 10.1 through ArcObjects

I want to connect to ArcGIS Server with ArcObjects. I am using the IGISServerConnection interface. and I use ASP.NET impersonation. The Esri documentation says : To succesfully connect to the ...
1
vote
1answer
86 views

Executing function on start up/ on started ArcMap in ArcObjects?

I need execute a function that init a timer when ArcMap application start. My extension class: namespace GMREAddin.Modules.Toolbar { public sealed class eManager : ESRI.ArcGIS.Desktop.AddIns....
1
vote
1answer
207 views

Temporarily disable snapping with Arcobjects add-in tool

I've built an Arcobjects add-in tool that creates point features OnMouseDown. I set up the tool's snapping environment with ISnappingEnvironment using code from the Arcobjects Help page Working with ...
4
votes
1answer
110 views

ArcMap event to detect when a toolbar open/close with ArcObjects?

I have this code to know if a toolbar is displaying: IApplication m_aplication = ArcMap.Application; ICommandBar versionToolbar = GetToolbarByName(m_aplication, "esriArcMapUI.VersionToolbar"); if (...
0
votes
2answers
138 views

Get UTM coordinate from mouse click in ArcMap using ArcObjects?

I am using ArcObjects C# tool in ArcGIS that identifies map coordinates when a user clicks on a location within a map. Here's the code that I have used: protected override void OnMouseDown(...
2
votes
2answers
57 views

ArcObjects “Tool” add-in - Polygon not persisting in display while moving

I am creating a "tool" add-in for ArcGIS 10 that basically draws a polygon where user left-clicks on map display and, as long as mouse is left-clicked, drags it around. When left button is released, ...
-1
votes
1answer
57 views

Importing .dll / .tlb in ArcMap?

Is it possible to import an application in ArcMap with .dll .tlb extension?
7
votes
1answer
67 views

What events are fired when a feature is copy and pasted?

I am trying to detect when a feature has been copied and pasted. The OnCreateFeature event fires, but I cannot tell if the feature object was copy/pasted. Is there an event or other method to ...
0
votes
1answer
241 views

How to remove or disable a fundamental toolbar from ArcGIS Desktop? [closed]

I don't want hide a toolbar, rather I need to prevent a user from using some fundamental toolbars (not custom ones). I have been reading anything about a file '.mxd' or '.mdx', but it's not clear to ...
1
vote
0answers
155 views

Canceling a Geoprocessing Tool (Arcobjects)

I am trying to cancel all the ArcMap geoprocessing tools executions (GPTools) using an ArcObjects Extension in C#, but it doesn't seem to work or do anything for any GPTool that I am trying to cancel. ...
0
votes
0answers
488 views

Getting Error HRESULT E_FAIL has been returned from call to COM component?

I'm working to develop ArcObjects C# tool in ArcGIS that plot the Elevation Profile after click on GetElevation Button but "Error HRESULT E_FAIL has been returned from a call to a COM component." Why ...
1
vote
2answers
149 views

Distinguishing feature class from shapefiles using ArcObjects?

private IFeatureClass GetFeatureClassSelection() { var gxObject = BrowseForFeatureClass(0); if (gxObject == null) return null; var gxDataset = gxObject as ...
1
vote
1answer
134 views

Getting all aliasnames of featureClassLayer in ArcObjects?

I'm a novice in programming: I'm trying to create a code which gives me the alias name from the attribute table. This is the code below that I tried, but it gives me only the layernames instead of ...
0
votes
1answer
67 views

Creating Hillshade after selecting Raster through pGXDialog

I am trying to create an add-in button which opens a dialog box filtering only rasterdata sets. After that once I select a Raster dataset, the Hill shade operation should be applied to that Raster ...
2
votes
2answers
73 views

Dialog Box Run-time error in ArcObjects

I am trying to open a dialog box which shows up only raster datasets so that I can select one and create Hill shade based on it. But I am facing a run time error for Dialog box when I click on the ...
-1
votes
1answer
462 views

Loading geodatabase file with C# code

I'm trying to get a pixel value from my geodatabase. The problem is at loading the geodatabase file (.gdb). Using this code Geodatabase gdb = new Geodatabase(@"C:\Data\Scotland.gdb"); Raster ...
0
votes
0answers
84 views

Getting profile graph and plotting Fresnel ellipsoid between two antenna using ArcObjects?

I have an ArcObjects C # tool that allows me to have the coordinates of two antenna after clicking on the map to calculate the distance between these two antenna. I need a code that allows me to ...
4
votes
1answer
322 views

How to zoom and flash geometry in ArcObjects?

I'm developing arcgis add-in tools. I now want the map display to zoom to the geometry and then flash it. I did this by defining two methods: public static void ZoomToGeometry(IGeometry geometry, ...
0
votes
0answers
273 views

AutomationException: 0x80040228 - The Product License has not been initialized. in 'ESRI GeoDatabase'

I want to perform agent-based modeling interdependence between critical infrastructure water, gas and electricity using agent analyst arcgis extension and geometric network. For accessing geodatabase ...
1
vote
1answer
96 views

How to resample raster exportation with ArcObjects

I noticed the resolution of a programmatically exported raster was not as good as the same image exported with the ArcMap GUI. I set the resample ratio in the GUI to 3 and the quality seemed identical....
2
votes
1answer
364 views

AutomationException: 0x80040228 - The Product License has not been initialized

After installation of Java SDK for ArcGIS version 10.0, authorization of the SDK I still can't run the simple code in agent analyst: def IWorkspace(): self.IAoInitialize = AoInitialize() self....
2
votes
0answers
68 views

ArcObjects Property Page usage

I have a Dockable window control that I want to have several properties associated with it. Specifically a data source. I currently have to hard code an Image service or a file GDB at a specific path. ...
3
votes
1answer
92 views

Watch when the View changes from Data View to Layout View

I'm creating a dockable window add-in that requires the Active View to be the Data View. I would like to disable my window when the user enters Layout View, but I've been unable to find an event ...
1
vote
0answers
101 views

How to disable advanced label expressions for all layers using ArcObjects?

I have some MXDs with a large number of labeled layers. Recently I discovered that the Tiled Labels to Annotation tool didn't work with advanced Python label expressions (with FindLabel functions), so ...