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.

learn more… | top users | synonyms (3)

0
votes
0answers
5 views

Custom Data Reviewer check

I am working on developing a custom data reviewer check by implementing the Execute method of IPLTSCNTWorkspaceValExtension and IPLTSCNTSelectionSetValExtension interfaces. Unfortunately I only find ...
0
votes
1answer
33 views

How to query all layers in ArcMap and get access to them by name or index?

I have next issue: I have ArcMap with tons of layers. Some of these layers may contain another layers with data (aka Composite layers) or they don't. The depth of composite layers in unknown. I need ...
1
vote
0answers
32 views

Unable to create object class extension COM component?

I'm getting the error: Unable to create object class extension COM component in ArcMap 10.2 when trying to open feature classes from old geodatabases. I'm also getting "error repairing the ...
2
votes
2answers
53 views

How to fill gaps in a multipart polyline

I want a function that can fill small gaps between parts of a multipart polyline. The polylines represent events on roads and are linear, not branched. The parts may be separated by small or large ...
2
votes
1answer
40 views

How to refresh display for newly added labels with ArcObjects

I've added a shapefile to an MXD and Edited the symbolization of it with ArcObjects. Now I'm trying to edit the labeling with ArcObjects. I've successfully been able to edit the default class in the ...
1
vote
0answers
11 views

Editing data with Server Object Extension?

Is it possible to use an interface such as IWorkspaceEdit within an Server Object Extension to create new features or update data in a geodatabse? Perhaps this can only be done through a managed ...
0
votes
0answers
9 views

Arcobjects: Track new point from button click in DockWindow

I am wondering if anyone might have a potential solution for a problem i'm encountering in ArcObjects. I am trying to track a screen location on the map. after a button is clicked in my DockWindow ...
0
votes
1answer
25 views

how to make attribute read only arcobjects

I have created add-in toolbar with C# arcobjects. I am creating some empty geodatabase shapefiles. While creating featureclass i want to assign some default value to attribute and then make it ...
0
votes
1answer
15 views

how to use IUniqueValueRenderer for empty geodatabase point file with ArcObjects

I have empty geodatabase file with point geometry created programatically. I have style file with several symbols. I basically want to add all these symbols to my shape file before creating ...
0
votes
2answers
27 views

feature store get NullReferenceException error

I am trying to update a field value according to the selected OBJECTID. But get System.NullReferenceException error. Don't know what's wrong with the code. My code is as follows: pActiveView ...
4
votes
0answers
30 views

ArcObjects .NET - How to close/release FeatureClass, Workspace, Factory

I have a long-running process. I want to prevent resource leaks or rogue database connections. At intervals during the process I want to do this: get an ArcSDE (Oracle) workspace factory open a ...
0
votes
1answer
44 views

Change layer properties

How can I edit name of lines of layer in ArcMap from Visual Studio C#? E.g., change STR_NAME = "Pushkin street" to STREET = "Pushkin street"?
1
vote
0answers
20 views

How to find if ArcMap raised error during edit session?

I have a class extended IExtension and inside this class I catch OnCreate, OnDelete and OnChanged and OnStopEditing events of Editor object of ArcMap. However I need to know if ArcMap has raised any ...
3
votes
0answers
33 views

Rotate map with dynamic display layer?

I am developing an application using the dynamic layer. However, I have trouble rotating the map (Not the same as rotating data frame by default). See more details: ...
1
vote
0answers
33 views

ArcGIS Python Add-In: Enable snapping for OnLine method?

I am working on a Python Add-In using ArcGIS 10.2.2 where the user can draw lines and the Add-In will add dimension annotation showing length for each segment of the line that is drawn. I can get ...
2
votes
0answers
36 views

Row.Value returns rounded SHAPE.area and SHAPE.len values

I have created a VB.Net Add-In, and am using IRow to get the value of fields in tables in ArcMap to use in a query. But I am encountering a problem when getting the values of the SHAPE.area and ...
2
votes
1answer
26 views

Check if tool is selected in ArcMap

How to check, if ArcMap custom tool is active? I have MyCustomTool and docWindow. docWindow opens when MyCustomTool is created. When I close docWindow and select another tool (hand - for example), ...
0
votes
1answer
24 views

arcobjects determine when attribute dialog window closed

In arcmap, I choose to "Display the attributes dialog before storing new features" in editor options for several layers. I intend to do further development upon user closing the attribute dialog ...
2
votes
0answers
16 views

AxTOCControl - Using ArcMap context menu

Using Ax*Control's in a custom dialog that runs within ArcMap. When I right-click on a feature layer in the AxTOCControl, and go to display the context menu, is it possible to display and make ...
1
vote
0answers
14 views

Checking Annotation overlap with other features using ArcObjects?

I want to check annotation features overlap with any other feature and also have to give other overlapped feature list....please tell any method for this? Now i am using buffer around selected ...
0
votes
1answer
52 views

Layer cannot be found

public Int32 GetIndexNumberFromLayerName(String layerName) { IMxDocument doc = ArcMap.Application.Document as IMxDocument; IActiveView activeView = doc.ActiveView; ...
1
vote
0answers
17 views

Preventing Export Layer by user via ArcObjects?

In my project, I am using a Geodatabase (SQL Server) to store feature classes. I want to prevent users (who do not have permission to access or edit) exporting layers into shapefile or other ...
1
vote
1answer
32 views

Restrict attribute value in ArcObjects

Is there a way in ArcObjects to restrict attribute value when user modifies it. Let's say for integer value between 0-10 or for string : no/yes?
1
vote
2answers
28 views

Access to ITableFields interface from an ITable or IObjectClass interface

I am working in a File Geo Database and need to set certain columns to be readonly from an ArcMap user perspective only. I am aware of the IFieldEdit.Editable property, however that locks it down ...
3
votes
1answer
23 views

Call attribute window with ArcObjects C#

I want to programatically call AttributeWindow using C# ARCGIS SDK. UID uidDockWin = new UIDClass(); uidDockWin.Value = "esriEditor.CreateFeatureDockWin"; dockWindow = ...
0
votes
0answers
30 views

Using ListTransformations function in ArcObjects, C# and ArcGIS Engine?

I need to call arcpy.ListTransformations function in C#. I have to pass 2 spatial References (ISpatialReference objects, I guess) and an envelope(IEnvelope object) to this function. This function ...
0
votes
3answers
51 views

Arcmap Refresh Button

I am working with ArcMap and C#. In the bottom left hand corner, there is a menu where you can toggle between Data view and Layout View, a Pause button, and a refresh button. I have created an Add-in ...
0
votes
1answer
31 views

How to insert “Topo North Arrow” using ArcObject

Does anyone know how to insert "Topo NorthArrow" using ArcObject C# SDK? There is no example or snippet. I am not sure if it is even available through SDK. Thanks in advance.
1
vote
1answer
31 views

Is there a way to call the “Select By Location” dialog box and gain access to the parameters

In an application that I am developing using VB.Net with ArcObjects 9.3, I am trying to display the "Select By Location" dialog box in my code. I know that I can call it directly using the UID ...
0
votes
0answers
30 views

Common custom toolbar for several different arcgis desktop addins using C#

Suppose, I have two arcgis desktop add ins C1Addin and C2Addin developed in c# with the following components: C1Addin: Button_1 C2Addin: Button_2 When the 1st addin which may be any of the two ...
3
votes
2answers
37 views

How to save .mxd programatically?

How do I save a .mxd programatically? The project is never saved and on button-click, I want to save the project. I use SaveFileDialog to get the filepath and then use the following: IMapDocument ...
1
vote
1answer
25 views

Concurrency and lock challenge in Nonversioned editing in ArcMap

I use a non version SQLServer geodatabse with geometry type for spatial data storing.To do so,I have registered all layers in SDE repository and geodatabase and ArcMap shows all layers and edit them ...
3
votes
0answers
61 views

ArcObjects Memory Leak with IWorkspaceEdit?

I have ArcGIS 10.1 installed. I have created a function for copying all of the features from one shapefile to another using IFeatureBuffer, now every time the function when it is called, it takes ...
2
votes
1answer
55 views

Create a custom Identify dialog

How can I check if a point belongs to a polygon? I want to create a custom identify tool with edit option. I am using C# and ArcMap 10. My idea is to click on the polygon (building/park/etc) in ...
0
votes
0answers
17 views

WhereClause to get the row with least datediff to given date

I have an SDE running on Oracle10-database from that I need to retrieve that row that has least datediff to a given date. So I tried to order the rows and get the very first row, but I do not have a ...
1
vote
1answer
30 views

How to use IWorkspaceName2

I'm trying to make a little utility to generate encrypted passwords for MSD files (change the XML inside the zip). I found this example online, but I'm not familiar with esri's API, so I'm not sure ...
1
vote
1answer
28 views

Is there a way to programatically get the FeatureClass's alias name?

I'd like to get the alias name of a FeatureClass, but I can't find an interface exposing that field. UPDATE: using IClassSchemaEdit, I'm able to specify an alias name, but I'm still unable to ...
1
vote
1answer
30 views

ArcObjects - Highlight something in TOC

Can someone help me please, I'm searching for a way to highlight a Feature Class in the TOC. I tried so many snippets and I didn't get the result I wanted So what I'd like to have is a function ...
2
votes
0answers
19 views

Is it possible to zoomToEnvelope in a webmap

I am working on an app that displays a map. I have the code opening the webMap I have on ArcGIS.com. In the method -(void)webMapDidLoad:(AGSWebMap *)webMap I set an envelope and then call ...
1
vote
1answer
51 views

vb.net arcmap add-in loop through a dbf file get 'System.NullReferenceException' error

I am using vb.net arcmap add-in. I encounter a System.NullReferenceException error and cause arcmap crash. The workflow in my vb.net code is: (1) create a ShapefileWorkspaceFactory (2) use the ...
0
votes
1answer
22 views

List all ArcGIS Coordinate Systems using ArcObjects 10.1

We currently have an ArcMap addin that will convert selected or all point features to a SEGP1 file. We also allow projections to a different Coordinate System and this is where it gets tedious. We ...
1
vote
0answers
32 views

How use DataFrame Geographic Transformation User Interface with ArcObjects?

I am bringing data from SQL Server into ArcMap with ArcObjects as a Query Layer. If I do this manually, a 'Geographic Coordinate System Transformations' UI pops up. I would like the same thing to ...
1
vote
2answers
109 views

How to compile an ArcGIS Desktop add-in in Visual Studio 2013

I have several projects made in Visual Studio 2010, those projects are ArcGIS Desktop Add-in's. I have been change of computer, and my new one only have Visual Studio 2013 due to some company politics ...
0
votes
0answers
31 views

how to create map package programatically using C#?

I'm using .NET SDK to create ArcMap toolbar with arcgis 10.1. how do i create map package .mpk programatically? http://resources.arcgis.com/en/help/main/10.1/index.html#//006600000403000000
1
vote
1answer
36 views

Using ArcGIS for Server and ArcSDE for importing shapefiles?

Is there a way to use ArcGIS Server web services to perform the task below? I have .NET ArcObjects code to import shapefiles to Spatial DB which works on ArcGIS for Desktop. This code used ArcSDE to ...
1
vote
0answers
23 views

How to handle exception in Arcobject 'Attempted to read or write protected memory' while working with three different featureclass

I have three featureclasses representing Road,Rail and city junction respectively. First i have taken rail and road featureclass and done spatial query ...
2
votes
1answer
64 views

Creating a multiring buffer in ArcObjects

I am currently writing an an addin for ArcGIS in C#. The premise of the application is, the user will select a polygon, a multi ring buffer is created from the centroid of the polygon. The buffer ...
0
votes
0answers
42 views

ComboBox Addin to populate Layers .NET C#

I am using Arcgis 10.1 and created following class derived from ComboBox. class LayersComboBox : ESRI.ArcGIS.Desktop.AddIns.ComboBox I want Combo box Add-in to populate added layers(in table of ...
1
vote
0answers
38 views

The underlying connection was closed: The connection was closed unexpectedly. AOInitiliaze

I create a WCF Service. When I try to Initialize ArcGIS License with AOInitialize I get error: The underlying connection was closed: The connection was closed unexpectedly. public void ...
2
votes
2answers
31 views

Getting a list of ObjectID from a Selection Set Object using ArcObjects 9.3 in VB.Net

I am trying to get back a list of ObjectIDs from a selection set using VB.Net in ArcObjects for ArcGIS Desktop 9.3. I have been passing an object populated using the ".IDs" method from the ...