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
0answers
125 views

Open ArcMap in Maximized State in C#?

I am running windows 7 enterprise with ArcMap 10.2 l have an application that processes data, when the data is finished processing I have a button that will show the results in a datagrid. From this ...
0
votes
1answer
46 views

Setting color to line layer using VBA in ArcGIS Desktop?

I am getting the compile error at pcolor.RGB. I want to add a color to the line feature. How to modify the code? Public Sub surya() Dim pmxdoc As IMxDocument Dim pstylegallery As IStyleGallery ...
4
votes
1answer
49 views

Knowing Previous Command Item C# in ArcObjects?

I am creating a tool for ArcGIS Desktop that will execute a command when I click a place on the map. The Code looks like this: public class TileLasLoader_Tool : ESRI.ArcGIS.Desktop.AddIns.Tool { ...
2
votes
2answers
84 views

How to make change to layer in ArcMap with python/ArcObjects?

In ArcMap 10.1 from the python window I am attempting to rotate a symbol for a point. After I run my code I can look at the symbol properties and the rotation expression is set on the symbol, however ...
-3
votes
1answer
54 views

not all code paths return a value [closed]

While writing the following code i am getting "not all code paths return a value" error for GetLayerByName() function. private ILayer GetLayerByName(string slayerName) { ...
2
votes
1answer
72 views

Attribute Table Window loses highlighted selection after Addin is Opened

I'm so new to GIS that this question might seem dumb to a lot of GIS Developers. I have taken over a project that is an AddIn for an ArcGIS Desktop app. C# VS 2010 project. I can get the Selected ...
4
votes
2answers
54 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
81 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
198 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
77 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
39 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
39 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
156 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
39 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
96 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
74 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
80 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
94 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
90 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
21 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
63 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
41 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
49 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
59 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
87 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
111 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
274 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
54 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
93 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
68 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
301 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
62 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
86 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
62 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
110 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
96 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
235 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
72 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
80 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
90 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
68 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
42 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
89 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
99 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 ...
0
votes
1answer
109 views

C++ code and ArcGIS Button [closed]

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
102 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
49 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
59 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 ...