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
17 views

Set alias for subfields when performing query

As mentioned within the ESRI-docs we can set an Alias for the subfields of an SQL-query performed onto a file-geodatabase as follows: IQueryDef2 filter = (IQueryDef2) ...
1
vote
0answers
41 views

Releasing all schema locks in ArcGIS GDB

We use ArcGIS 10.3 products (Server, Desktop) with Oracle database. Our problem is we can not make any schema changes because of shared schema locks unless we stop all services and kill all database ...
0
votes
0answers
36 views

Get geographic coordinate system for its projected coordinate system in ArcObjects.NET

I have geometry in PCS, that must be convert to GCS, while PCS is projection of GCS. How can I get ISpatialReference for PCS's parent using ArcObjects.NET?
0
votes
2answers
53 views

Any extention Open File Dialog

GetOpenFilename doesn't work in arcobjects VBA, so I have to use pGxDialog. Standard pGxDialog doesn't let to open any file I want, a few extentions are available only (shp, dxf, xls...). Maybe, I ...
0
votes
0answers
30 views

Problem with Viewshed analysis in ArcObjects

I want to execute the Visibility Analysis Tool using ArcObjects 10.3. I tested the tool in ArcMap and it works great with the test data I provided, hence it should work as well in ArcObjects code. The ...
5
votes
2answers
2k views

How to let the user select a spatial reference using ArcObjects?

I need to build a tool where the user selects a coordinate system for a given CAD file. What is the easiest way to do this with ArcObjects? Obviously, I could populate a list with the hundreds of ...
4
votes
2answers
52 views

Is there a LINQ-provider for GeoDatabase

I want to query my ArcSDE geodatabase using LINQ but I don´t know if there is an ESRI-provider that may also read geometries and which is able to handle archiving as well. Thus I´d like to read data ...
1
vote
0answers
13 views

IRasterLayerExport3 doesn't save raster until ArcMap closes [closed]

I'm trying to export raster using IRasterLayerExport3, but it saves raster file only after closing ArcMap. It seams that IRasterLayerExport3 creates placeholders for raster (empty file - 3kb), and it ...
1
vote
1answer
23 views

IfeatureLayer.search() second time return error

I have the following method in my code and have a button that when clicked run this code. In the first click all of code runs without error. but in second run I receive an error on line: ...
1
vote
1answer
73 views

Rebuilding Locator with ILocatorWorkspace2?

Trying to use ArcObjects to rebuild locators in an IWorkspace, but enounter 'COMException was unhandled' error when trying to use the 'rebuildlocator' method on ILocatorWorkspace2. Here is the code I ...
1
vote
2answers
39 views

How to get the geometry type FIELD value of attribute table?

The problem is: I need to copy every cell's value of attribute table of some feature to string array. I do it by assigning cell's value to string variable StrBuf one by one. To check the result the ...
3
votes
1answer
640 views

Executing ArcMap AddIn function when there is mouse click on map?

I am developing an add-in for ArcMap 10.0 where I need to execute code when there is a click on the map open. How do I do this? I am using VB in Visual Studio 2010. I also need to get the coordinates ...
3
votes
1answer
280 views

Repairing disconnected layers with selection sets using ArcObjects?

Has anyone had any success of repairing disconnected layers that have selection sets that have their data sources broken in ArcGIS? Is there a way to detect this through code and then re-create that ...
1
vote
2answers
33 views

How to get the Features of FeatureCursor?

I am unsure how to correctly use IFeatureCursor.NextFeature method. I've selected a few features: I need to assigne the selected features into few pFeature variables (pFeature1, pFeature2, ...
4
votes
1answer
56 views

Cannot correctly iterate IFeatureCursor (calling ArcObjects from Python)

I have started recently using some of the ArcObjects inside my Python modules. Having all the useful posts and insights shared by @matt wilkie et al, I was able to get started pretty quickly ...
5
votes
1answer
498 views

Showing Progress Dialog in ArcGIS Desktop using ArcObjects?

I have an ArcGIS custom IGPFunction tool. I want to use the GP progress dialog not the progress bar at the bottom of the ArcGIS 10 window as I don't want people to interact with the map whilst it's ...
1
vote
0answers
27 views

Scale Selection Symbols with Reference Scale using ArcGIS Engine?

With an ArcGIS Engine application, I am trying to figure out how to have the Selected Symbols scale with reference scale when selected using ArcObjects. They are currently not scaling correctly in ...
1
vote
1answer
13 views

How to Use IWorkspaceFactoryLockControl in Java

I have tried to convert the interface but failed. IWorkspaceFactory2 pWorkspaceFactory; pWorkspaceFactory = new CadWorkspaceFactory(); ipWsFactoryLock = ...
0
votes
0answers
16 views

How to Install ArcObjects? [duplicate]

I'm looking to install ArcObjects so I can write an ArcMap add-in in .Net. Where can I find a download for ArcObjects?
0
votes
0answers
34 views

How to find NetworkAnalysis extension with ArcObjects?

I'm using ArcGIS 10.0 My code: IAoInitialize init = new AoInitializeClass(); var a= ...
0
votes
1answer
39 views

Add Layers to Arcmap 10 Crashes

Would anyone know the reason why this happens? and possibly a way to fix it. I am stumped In the following code. The first addlayer works, but crashes on the second addlayer with a 'vshost32.exe has ...
6
votes
2answers
922 views

Display map scale (like 1:20.000) next to ScaleBar

In my PageLayoutControl I add a ScaleBar. Additionaly I like to show the map scale/ratio (e.g. "1:20.000") next to it, but didn't find a way to achieve this with the ScaleBar. Am I missing something ...
-1
votes
1answer
340 views

Saving selected feature (polygon) as image from shapefile using C#?

I am new to ArcGIS and trying a do following things.. 1) Select polygon in the loaded shapefile.(right click on polygon -> choose option (select features). 2) Click button (build as Add-in) in ...
1
vote
1answer
526 views

Running ArcMap Addin Button with VBA from MS Access form?

I am using ArcGIS Desktop 10.0. I need a way to execute an ArcGis-Addin (vb.net) from a MS-Access database form (VBA). The problem is that there is no ESRI.ArcGIS.Desktop.Addin reference in VBA and ...
1
vote
0answers
33 views

How to Get ArcFM Session name

I need some information about session name getting. i am working on ArcMAP VBA with ArcFM database i have create some validation tools on this data. i provide error report with validation name but ...
0
votes
1answer
27 views

Capturing an event On Sketch Finish in ArcObjects

I am using IEditEvents_Event and IEditor. I invoked the GarciaUI_CreateNewFeatureTask and used: pID.Value = "esriEditor.SketchTool"; pCommandItem = pCommandBars.Find(pID); if (pCommandItem != null) { ...
0
votes
0answers
423 views

IronPython + ArcObjects

Is it possible to access ArcObjects with IronPython?
5
votes
1answer
177 views

Interface that provides access to property/method that shows whether Layer is visible?

I came across some hack code that I wrote from a few years back that I need rewrite in c#. At the time, I couldn't find property/method that would tell me if a layer was actually visible on the map. ...
1
vote
1answer
197 views

Binding IActiveViewEvents::ItemReordered to method in my ATL class?

How I can wire this event to my method? I have an ATL class and I need to know when a layer added to map object so that I can update my list of layers in this class.My class implements IExtension and ...
1
vote
1answer
265 views

How to draw into selection cache in ArcMap

I have a tool,something like Edit Tool in ArcMap,when I double click on mouse,and it selects a feature (polyline for example) and draw a sketch on it too,but if I change zoom,the sketch disapears ...
2
votes
2answers
434 views

Converting personal geodatabase feature class to coverage using ArcObjects? [closed]

how to convert personal geodatabase fatureclass to coverage using arcobjects with vba pls provide me any documentation or samples.
2
votes
2answers
1k views

ArcMap TextSymbol in ArcObjects?

I'm looking to do the following. Create a point on a map at a given coordinate (x,y) and then display text at that point. Right now I can create a shape file but nothing is displayed on the map. ...
4
votes
2answers
71 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 ...
9
votes
7answers
4k views

Is there an existing library for converting ArcGIS Features to Json?

Is there an existing library for converting ArcGIS IFeature types to and from Json/GeoJson?
3
votes
2answers
216 views

Enabling snapping for OnLine method of ArcPy Python Add-In?

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 ...
0
votes
0answers
28 views

Finding nearest point on polygon if layer has more than one polygon using ArcMap AddIn?

I am developing an application using ArcGIS .net add-in. An application generates some maps based on point and polygon datasets. In that, I am able to find the polygons within the search distance. ...
1
vote
1answer
853 views

Add-Ins Category missing from Customize / Commands / Categories - Can't Use Add-Ins? [closed]

I've created a Add-In button that says "Hello World" when clicked. I want to add button to a toolbar. I've tried creating my own "Category" in the Add-In wizard, no success. I've also accepted the ...
0
votes
2answers
1k views

How to Create shapefile using Geometry field

I am working on ArcObjects. I want to create shapefile. I am very close to it but need some better alternative as I feel my solution may fall short in time when there are thousand of records. I have ...
0
votes
0answers
24 views

How to create polyline feature through mouse picking in arcobjects (ArcMap VBA)

I want to crate polyline feature using mouse picking points(first point and second point) through pick points coordinates in ArcMap VBA could you please tell how to take mouse pick points. Private ...
-4
votes
1answer
420 views

Creating multipart polygon using ArcObjects if coordinates of each part are given? [closed]

How to create a multipart polygon if i am having the values of coordinates of each part. I am using ArcObjects in VBA or VB.NET
9
votes
5answers
7k views

Activating custom ITool from form without adding it to ArcMap AddIn toolbar?

I'm working on an add-in for ArcMap 10.0 that adds a toolbar to ArcMap. One command (OpenModelessDialogCommand) button on that toolbar opens a modeless WinForms dialog, from which a tool (MyTool) can ...
3
votes
1answer
1k views

Data dialog to select Geodatabase

I need to create a dialog that the user can select a proper Workspace. Is there a similar to IAddDataDialog, but for workspaces?
6
votes
1answer
2k views

Zooming to first queried feature using ArcObjects?

I'm attempting to query a feature class for all features that meet a certain criterion (in this case, the Status field is NULL). However, I'm not getting very far into the attempted method before ...
12
votes
8answers
5k views

ArcObjects Resources [closed]

What are the best books/web sites for C# development with ArcObjects? The ArcGIS Resource Center is very helpful, but I am trying to find sources with more examples.
1
vote
2answers
176 views

How to set up Visual Studio Development Environment for ArcGIS 10.3.x to develop Add-In?

How should I set up a development environment for making add-ins for ArcGIS 10.3? There is no walk-thru anywhere that I can find for this. First, ESRI says Visual Studio 2013 is supported but in other ...
6
votes
1answer
798 views

Automating ArcMap with ArcObjects for unit testing?

I need to run unit tests against ArcMap extension which closely coupled with specific edit workspace and map state. When I try to initialize ArcMap 10 application with code like this: ...
8
votes
3answers
2k views

Creating floating-only (non-dockable) window in ArcMap using ArcObjects?

I'm looking for a way to create a floating window in ArcMap. To give an example just look at the window of the Identify tool. Floating means that it stays in front of the map document at all times ...
3
votes
1answer
56 views

ESRI add-in not installed automatically after build (locked-down environment)

We are using Microsoft Visual Studio 2010 to compile ESRI ArcMap 10.0 add-ins. Generally it works without problems. But we have some PC with very high security policies. For example they have (beside ...
2
votes
1answer
186 views

Unchecking items in IToolbar?

I currently have an app with two menu bars. One being the AxToolbarControl in a UserControl and one in a separate menu bar containing in-house stuff. I currently have the issue where if I select ...
1
vote
2answers
489 views

Creating Context Menu using ArcObjects?

How can i create a context menu on Arcgis Desktop.And after creating it,how can i use it while a base command is open and active.I use C# but i can understand visual basic.