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)

4
votes
2answers
45 views

Is there a way to get the current way a table is sorted in order to iterate over it?

I have a tool in ArcObjects that I'm working on where the OnClick() method finds the current row in the active attribute table (not the selection, but the row that has the carat to the left of the ...
0
votes
2answers
47 views

How to fill combo box of a form with the map layers name

While writing the code for adding all the layers in arcmap into combobox of a form, I am getting the error: 'Bestaurents.frmRestaurentviewer' does not contain a definition for cmblayer and no ...
6
votes
1answer
179 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. ...
3
votes
1answer
53 views

IApplication in AxMapcontrol (FindExtensionByCLSID in ArcEngine Application)

I have a small problem. I have begun rewriting code to work with an AxMapControl. Now at first this seemed to work and I was able to get a lot of code converted and working with the AxMapControl, but ...
2
votes
0answers
35 views

Is there a way to change the selection in the Editor Attributes window, while maintaining current selection?

I was wondering if anyone knew of a way to alter the selection within the Editor Attributes window while maintaining the current selection set. In the image below, I've manually selected an item in ...
0
votes
0answers
33 views

ArcGis Engine app crashes when map contains class extension

I have an ArcGIS Engine 10.1 app. It has been running fine. It opens an .mxd on initialization. The .mxd contains 3 feature classes that have class extensions applied. I just tried to make a change ...
2
votes
0answers
122 views

Handling ArcMap closing event in AddIn?

I'm trying to handle the closing event of ArcMap within an ESRI Addin Extension using C# and arcobjects. Furthermore I would like to handle 'a closing event', that is fired BEFORE ArcMap tries to stop ...
1
vote
0answers
31 views

Get spatialReference Domain, with XY Precision

I'm trying to get a spatialReference domain from prj file by using the function : private void ConstructCoordinateSystem(bool highPrecision) { // SpatialReferenceEnvironment is a singleton object ...
2
votes
1answer
81 views

Get the number of bends of a polyline

I am trying to get the number of curves/bends of a polyline. I know that I can accomplish this by getting the vertices of the polyline, and check the from and to and compare their angles, if they ...
2
votes
2answers
61 views

How to use IDatabaseConnectionInfo3 Interface ArcObjects!

I try to retrive the connected users from an entreprise geodatabase using ArcObjects . first I tried to cast My workspace to IDatabaseConnectionInfo3 but it throws ClassCastException ...
1
vote
2answers
69 views

I need to draw Rectangle with Simple Fill Symbol

I need to draw this rectangle on layoutview : I try this but it doesn't work. How can I draw this rectangle ? IPoint p1 = new PointClass(); p1.X = 9.9936; p1.Y = 5.8777; ...
1
vote
1answer
65 views

How to change owner of a version in an enterprise geodatabase using ArcObjects?

I have ArcObjects/.NET code used to create few versions for workspace. Versions are created successfuly but their owner is who created them (the user connected to the workspace). I want to change the ...
2
votes
0answers
61 views

Open an existing document (MXD) inside ArcMap

I try to open a specific MXD inside a running ArcMap-Application, but I always get "System.UnauthorizedAccessException" and ArcMap crashes. I have an Add-In-toolbar with a button, which opens a form ...
0
votes
0answers
18 views

Using Image Coordinate System in ArcObjects AxMapControl

In ArcMap you can display images in the Image Coordinate System (ICS) by choosing Focus on Image in the Image Analysis window. Is it possible to achieve the same thing in ArcObjects .NET AxMapControl ...
1
vote
0answers
47 views

Disable right click “Open attribute Table” in ArcMap using arcObjects

I have a requirement on the ongoing project to allow the tables to be accessed by only the users with right privileges. So I am looking for methods to disable adding tables to view programmatically. I ...
0
votes
0answers
32 views

Zonal statistics as table fails using Geoprocessor and C#

The above code snippets fails while calculating the Zonal statistics as table using Geo processor in C#, butit works in ArcMap. Any ideas where/what I did wrong?
0
votes
1answer
40 views

Distributed Geodatabase ExportDataChangeMessage

How to perform ExportDataChangeMessage. I am not getting where to get in_replica. My code is: Geoprocessor GP = new Geoprocessor(); GP.SetEnvironmentValue("workspace", outputpath1); ...
1
vote
2answers
52 views

Return Information from Feature Class Fields by XY Point

I am trying to get information from fields within specific feature classes based on an XY point. The user will click on the add-in tool, click on a location in ArcMap, and the tool will find the ...
2
votes
1answer
71 views

How to correctly use ArcObjects to search or to obtain a count (IQueryFilter) from a selection set?

This only appears to be an issue with Personal Geodatabases (MS Access back end)... I need to search within an existing selection set to populate an ICursor. My main objective is to test whether my ...
2
votes
1answer
94 views

Splitting polyline by point using ArcObjects?

I want to split gas pipe line by point and add two new feature and delete the old feature gas line. I reach the code to split pipe line but does't work and stopped there ISet newFeaturesSetTemp = ...
0
votes
2answers
139 views

Draw Line in Layout View with ArcObjects

I'm trying to draw a line on layout view on ArcMap with C# and ArcObjects. I'm working on this sample. But I have some problems. 1.) This code for draw line on data view but I need to draw line on ...
1
vote
1answer
47 views

How to programmatically load an annotationlayer to ArcMap

I have a geodatabase with an annotation feature class in it containing 3 subtypes. Now I load the featuredataset to the map with this code: IFeatureClass featClass = (workspace as ...
1
vote
0answers
62 views

ArcObjects Style of a symbol chosen with the ISymbolSelector interface

I am trying to store the properties of a SimpleMarkerSymbol symbol selected by the user using the ISymbolSelector interface. I plan to store the size, colour and style number in a file. I can get ...
2
votes
1answer
48 views

I am making a selection with ArcObjects, is there an Issue with iSelectionSet:AddList or do i have an error somewhere?

I collect a set of OIDs into an OID array (long), this happens in a loop and if i find an OID i want to add to the array, I REDIM PRESERVE to expand the array. iOIDListCount = iOIDListCount + 1 ReDim ...
2
votes
1answer
44 views

Release IFeature Object Efficiently

I have the following code: //qf is a query filter var fCursor = FC.Search(qf, true); var feat = fCursor.NextFeature(); int selCount = FC.FeatureCount(qf); var userId = new int[selCount]; if ...
2
votes
2answers
205 views

Develope ArcGIS Desktop Add-Ins with ArcGIS Runtime SDK

I need to learn develop add-in in ArcGIS 10.3. I have this book : http://www.amazon.com/Beginning-ArcGIS-Desktop-Development-using/dp/1118442547 but he was using visual studio 2010 and ArcGIS ...
2
votes
1answer
57 views

Determine if ArcSDE service or direct connect

Does anybody knows if there is the ability to check a layers datasource, if it is an direct connect to a database or if an ArcSDE service is used? For both the esriDataSourcesGDB.SdeWorkspaceFactory ...
0
votes
1answer
72 views

Reconcile and post with c#

I am trying to understand Esri example of reconciling and post with C#. Could someone give me some hints or point me in the right direction. The reconcile and post in Arcmap toolbox has edit version ...
1
vote
1answer
46 views

Selecting Workspace and Datasets from same dialog using ArcObjects?

I want to select the workspace and the dataset from the same dialog and this is my code for the workspace: private IWorkspace BrowseForWorkspace(int hwnd) { IGxDialog gxDlg = new ...
3
votes
1answer
82 views

How to remove a domain from a field using ArcObjects

I need to delete a domain in my database. Since the domain is still associated with a field, I first need to delete the association. After reading the documentation for IWorkspaceDomains.DeleteDomain, ...
2
votes
1answer
92 views

Create geometry from a result of intersection [closed]

Split a polygon in half with an extended line public Ipolygon CreatePolyFromIntersection(Ipolgon polygonA, Ipolygon bounradyThatcontainsPolylgonA, IFeature lmark){ ...
2
votes
2answers
124 views

Why am I unable to enable my addin extension?

I am working on an ArcObjects addin for Desktop 10.1. I am using the SelectionExtension as a template for my addin. I was unable to listen for events through a dockable window, so at others' ...
0
votes
0answers
66 views

Starting ArcGIS 9.3.1 Desktop Development using Visual Studio 2008/2010?

I know VB Language. I am using ArcGis 9.3.1. and want to develop an ArcGis Desktop Development but I don't know how to start it. I have Visual Studio 2008 and 2010 available. ArcObject Add-ins are ...
0
votes
0answers
64 views

error while using idw geoprocessing tools of Arcobjects with java

I am trying to use idw geoprocessing tools to generate a raster file, but it doesn't work fine for me. I have got a input point shapefile named "TrafficMap_Count.shp" which has a WGS84 coordinate ...
2
votes
2answers
77 views

Query Features in Certain Direction

I have a polyline that I would like to query features that are on it's left, right, top, bottom. I am not looking for the features surrounding it but for features that are on a certain location from ...
1
vote
1answer
66 views

Comparison between using VB.net or C# in ArcObjects or ArcGIS Server [closed]

Is there any differences between using VB.net or C# in ArcObjects or ArcGIS Server based projects, in functionalities, samples, Q&A community? Is there any comparison which covers these aspects to ...
0
votes
0answers
39 views

Properties of Spatial Reference

I have a layer in ArcMap. I want to get all spatial reference properties of that layer. How the properties can be accessed through ArcObjects? I am using .Net technologies.
3
votes
0answers
71 views

Listening for edit events through dockable window using ArcObjects?

I am creating a dockable window that allows users to select features of a particular featureclass, iterate through records in the featureclass, populate textboxes with certain attributes, and edit ...
1
vote
1answer
48 views

How do I store a reference to a workspace in a feature?

I have a feature class where each feature needs a reference to a raster in another workspace. Is there some way I can get a string that uniquely identifies any workspace (ArcSDE, personal or file)? ...
-1
votes
2answers
77 views

Changing datasource of a .lyr file results in empty layer with empty symbology (ArcObjects VB.NET)

I'm having a hard time adding my grid to the map and changing its symbology with an existing lyr file. I have found a great post by Neil Clemmons that explains this, but it doesn't work for me. I ...
1
vote
1answer
96 views

C++ code and ArcGIS Button

I have some code in c++ that used gdal and process raster and create an output raster. I want to create a button in ArcGIS Desktop (using ArcObjects SDK 10.2 c#) and pass the raster layer to my c++ ...
2
votes
2answers
86 views

Proper way to check if a Factory Code is Projected or Geographic

I would like to create a SpatialReference with ArcObjects, but I won't know whether it is Projected or Geographic, I'll only have the SRID. Is it fine practice to use ...
0
votes
0answers
45 views

ArcObjects - Interacting with existing ArcGIS Server layer

I have a bunch of users running a 10.2.1 VB.Net extension, which assumes they have a particular MXD loaded. That MXD contains an existing ArcGIS Server layer (ie. not added programmatically by the ...
2
votes
1answer
44 views

Filtering Layers based on types in ArcGIS

I want to loop through all the layers in TOC in ArcGIS and report Raster and Vector Layers. I want to see how many layer are raster and how many are vector. I can access the layers using: IEnumLayer ...
3
votes
0answers
92 views

ITopologicalOperator2 operation Simplify taking very long in ArcGIS 10.3.1

I have a method that does a simplification of geometries. I have used this common code since ArGIS 9.2 without issues and it still works fine in ArGIS 10.2.2. Recently I upgraded a project to 10.3.1 ...
5
votes
2answers
122 views

Polygon points to Polyline

I am trying to create a polyline from the points that I query from a polygon. I have a polygon, and I am getting its edges, casting them to segments, and then use QueryNormal to get the mid point ...
4
votes
2answers
87 views

IRasterLayer background transparency in C++ with ArcObjects 10.x .NET

I have a georeferenced IRasterLayer which is displaying data from a PPM file with no alpha channel. I am trying to specify a color which should be treated as transparent. In ArcMap it is possible to ...
0
votes
1answer
38 views

This operation is not allowed while editing error

When I tried to delete a feature, I got :This operation is not allowed while editing" error when I wanted to refresh version. The related code is: 'Start Editing Operation ...
2
votes
0answers
124 views

How can I get domain values associated with a field using ArcObjects?

I am trying to access the domain of a selected feature. I have seen examples for VB.NET and C#.NET, but I cannot access the domain of a specified field. Dim findName As String = Nothing Dim ...
2
votes
1answer
117 views

Standalone program can see license

I used standart license initialization code in C# standalone program. It was working perfectly on 10.1 and 10.2. But after migrating to 10.3 it says Licenses are not available. Meanwhile ArcMap and ...