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

Get CostDistance IGeoDataset as raster in C# ArcObjects

I have a CostDistanceCode that works correctly. I cannot cast the IGeoDataset result into a raster. The last line returns a null raster. How can I resolve this? // Declare the output ...
3
votes
0answers
55 views

LasDatasetToRaster does nothing to the Raster Layer

I have been trying to figure out how to clip and rasterize a LiDAR map file programmatically (Not through arcpy) I use C# but read many languages. So far I have been able to access and assign the LASD ...
0
votes
1answer
70 views

Activate / Deactivate customized ITool from Form in ArcObjects?

I'm using ArcGIS 9.3/VB6, and I have a little issue with the activation of a custom Tool: I have a Class, that implements both ICommand and ITool When I click on ICommand, the form is launched First,...
0
votes
0answers
49 views

Problem for Map Topology creation in ArcMap

I will create a map topology in ArcMap. My code defines the layer in my map topology but after call EditTopology Tools, a message show "No topology .... bla bla bla.." Any ideas why this would be ...
0
votes
0answers
20 views

GetAllProperties on Propertyset is slow for line network data

I am trying to resolve an issue with an ArcObjects extension. This particular portion of logic, gathers metadata for layers in the map. It works fine with regular data layers but with network data (...
0
votes
1answer
110 views

Determine whether table is registered in geodatabase with ArcObjects

In ArcCatalog we can register a table in the GeoDatabase using the tables context menu. Now i'm trying to find a way with ArcObjects, to detect whether an ITable is already registered, is this even ...
3
votes
0answers
37 views

Is possible to create a shapefile with a specific encoding using ArcObjects?

I have the code to create a shapefile programmatically, something like this 28310 - Create a new empty shapefile programmatically moreover I am able to put the data from a layer in it. It works ...
3
votes
1answer
91 views

ArcGis 10.2 returning an enum status of EsriLicenseNotLicensed

I have an old VS project that was using ArcGis for a map control. I now have 10.2 on my machine. code that I used previously to find & initialize the license no longer works. I know the enums ...
4
votes
0answers
157 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
67 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
55 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
107 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
60 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
98 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
60 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
125 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
211 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
102 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
46 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
201 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
51 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
108 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
90 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
105 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
135 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
137 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
24 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
75 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
44 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
55 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); GP....
1
vote
2answers
82 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
108 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
123 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
394 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
62 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 IFeatureWorkspace)...
1
vote
0answers
132 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
86 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
50 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
335 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
64 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
111 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
78 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
131 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
102 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
355 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
79 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
109 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
106 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
73 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 ...