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)

3
votes
1answer
252 views

Repairing disconnected layers with selection sets

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

Get polygons inside a polygon

I have developed a tool in arcobjects on Visual studio 2010, the tool works fine but once installed my ArcMap drawing the map (refreshing) and printing slows down.. I have used ITopologicalOperator ...
5
votes
1answer
265 views

How should I publish an arcgis toolbox via arcobjects (c#)?

I've been able to create map and image services by creating, adding, and starting configurations through an IServerObjectAdmin interface to a version 10.0 (sp4) ArcGIS server. Now, I'm shifting my ...
3
votes
2answers
846 views

Why is ICalculator.Calculate significantly slower than the CalculateField geoprocessing tool with SDE datasets?

I just discovered today that there are essentially two ways to calculate field values in ArcObjects: 1. Using ESRI.ArcGIS.GeodatabaseUI.ICalculator: ITable table = …; ICursor updateCursor = ...
2
votes
2answers
2k views

How to overwrite a shapefile or feature class using arcobjects?

I can copy a shapefile but I want to be able to overwrite the copied shapefile to prevent multiple copies being created each time I run the program. I would also like for the saving and renaming of ...
2
votes
3answers
620 views

Split polygon with holes to get several hole-less polygons

Unlike this thread I actually need to split the polygons into several hole-less polygons. I'm not sure on how to approach to this problem. I have polygons with holes of many diferent shapes, like ...
1
vote
0answers
120 views

Why does IFeatureClass.Search fails with -2147215922 (FDO_E_SE_INVALID_NUM_PARTS)?

in a class extension, I'm trying to do search features inside a point feature class(part of a geometric network on an sql server sde database) and I get a -2147215922 (FDO_E_SE_INVALID_NUM_PARTS) ...
3
votes
2answers
583 views

Spatial Definition Queries?

Is it possible to spatially pre-clip layers (say with a IPolygon object) before they are loaded into ArcMap - a bit like a query definition but spatial?? Also I need to do this for raster data? ...
1
vote
1answer
441 views

How do I save edits from an ArcMap editing session using VB.Net?

I have figured out how to do a map save document, but I would also like to be able to save edits whether or not I am also saving the map document.
2
votes
1answer
586 views

How do I save an ArcMap map document using VB.Net?

I am trying to save the map document that is currently open. How do I write the code? I have tried many suggestions that I found using Google searches, but nothing works. Currently I have: Dim ...
4
votes
1answer
927 views

ArcObjects - Create a map in the background from layers and save as JPG

Given a series of map layers is it possible to arrange them in some order, add basic map features (north arrow, scale bar) and then save the result as a JPG. I'd like to accomplish this in the ...
2
votes
2answers
417 views

How to retrieve all subtype codes from ISubtypes interface

I'm trying to retrieve all subtypes for a given feature class. ISubtypes.Subtypes give you an enumeration of all subtypes in the class. However the IEnumSubtype.Next method requires the subtype code ...
2
votes
0answers
98 views

Is it possible to lock a single feature from editing in ArcObjects?

We're developing an ArcMap addin. Now we need a way to lock a feature from editing/deleting. Is this possible with ArcObjects or do we have to create our own implementation of locking? Example: User ...
6
votes
1answer
613 views

What is the right way to automate ArcMap 10 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 application with code like this: ...
1
vote
0answers
106 views

Clear or Disable Cache in ArcObjects Globe Control

Is it possible to clear or disable the cache for individual layers on the AxGlobeControl? If so, how? I would like to be able to do this programatically through ArcObjects.
3
votes
1answer
1k views

ESRI Flash Command in custom code

I would like to implement the same flash feature command that ESRI uses when accessing the context menu on a table row. I have used the following successfully to flash a selected feature: ...
6
votes
1answer
773 views

How to programmatically determine the size of a feature class in a file geodatabase?

My answer to the question How to get the size of a file geodatabase feature class on disk? shows how one can enable a column in ArcCatalog showing the file size of FGDB feature classes in the contents ...
4
votes
2answers
598 views

Problems Refreshing View in Editor Extension code

I can't seem to find anyone else with this problem, but I'm hoping maybe I'm missing something obvious! I am writing an Editor Extension add-in using VB.net for ArcMap 10. The feature layer I'm ...
8
votes
1answer
2k views

Is there a line symbology that also shows vertices?

Is there such a thing as a line/vertices symbology? If not a workaround? In some situations, particularly when editing, I would like to see my lines as well as all the vertices similar to the effect I ...
1
vote
0answers
78 views

Is there a way to reshape graphics in ArcEngine?

Our GIS-tool should allow the customer to reshape self drawn (polygon) graphic elements, like one can reshape features in edit mode with the Editor. Is it possible to reshape graphic elements? If ...
6
votes
3answers
373 views

What types of GIS problems does functional programming address?

After reading @ray vernagus post about using ArcObjects with F#, I have been wondering ... what types of GIS problems are better handled by Functional Programming, as opposed to more traditional forms ...
5
votes
1answer
297 views

Geodesic buffers for polygons

How can I create geodesic buffers around polygons? I'm on 9.3.1 ArcMap, but I need a programatic solution. IBUfferConstruction only does geodesic buffers for points. What are my options?
1
vote
1answer
141 views

ArcObjects 9.2: TableToTable tool fails depending on output location

The code I am writing for a button (ArcObjects 9.2, Visual Studio 2005) takes the attributes for selected points in a shapefile and writes them to a table: Dim pGp As GeoProcessor = New GeoProcessor ...
2
votes
2answers
885 views

Programmatically convert multipart polygon to singlepart in ArcGis 10

I have a multipart feature and I need to convert it to a singlepart feature. Couldn't find any code sample. I wonder if i could get some help from you! I'm working with ArcGis10 and c#. Tks
4
votes
3answers
375 views

How to use ITrackCancel to escape IRubberBand track?

I have a BaseTool for AX_MapControl and AX_PageLayoutControl that allows to draw a polyline via IRubberBand. But once the rubberband is started, you can't cancel it e.g. by hitting escape. I found ...
2
votes
0answers
24 views

How to implement VisibleBoundsUpdatedEventHandler

I have an ArcObjects add-in button that adds attribute value info as a text graphic into a map document layout. Now, instead of using the add-in button click event, I would like the code to run on ...
1
vote
0answers
113 views

Cutting Polyline at the beginning and end by some unit [closed]

The problem is: I have got a IGeometry (polyline dimension) - let call it A. Given a ray and a center point (disk B, polygon dimension ) I would like to result in a IGeometry that does not have the ...
1
vote
2answers
933 views

Getting the workspace from IGxDialog:DoModalSave

I'm writing an application that allows a user to save data into a table in a variety of formats: dBase, File or Personal Geodatabase, or SDE. I'm trying to see if there's a way to determine what type ...
3
votes
2answers
432 views

How to Get my Custom Toolbar to popup when my Custom Extension is Enabled?

I am developing a custom extension for ArcMAP in Arcgis 10, and would like to display my Custom Toolbar automatically instead of having the user to select it from the customize window. Is this ...
2
votes
0answers
96 views

Running a web application within ArcMap

I'm interested in creating a component / plugin for ArcMap that works something like ArcGIS online. Ideally a small web app would boot up within a window in ArcMap which would be able to perform ...
0
votes
2answers
158 views

Creating an INFO table using ITable in Arc (Java)

I'm trying to set up an info table in an addin for ArcGIS 10. I'm using Java and Eclipse IDE. The code I have is here: public class Tables { String database = "C:\\GIS"; String nameOfTable = ...
2
votes
1answer
323 views

ArcObjects DeleteLayer leaving layer artifacts

I'm working on some code for a button in ArcGIS 9.2 using Visual Studio 2005. The process adds a point layer, performs a select by location, exports the attributes of the selected points, then removes ...
0
votes
0answers
116 views

Run time error for GP objects

I have a code with toolbars which I tried to run it in another PC but it failed. I get a run time error "Method Addtoolbox of object I GDispatch failed". The line that the code stacks is the last one ...
0
votes
0answers
72 views

Why is IQueryGeometry crashing when ITextSymbol:Text contains more then one AMPERSAND (&) symbol?

I have a bit of an issue with my addin which converts annotations (text) to polygons. To do this I use the ITextSymbol obtained from the Annotation Feature which is then implemented by the ...
1
vote
0answers
215 views

Relative Path not working in ArcMap and ArcObjects

I'm using ArcMap 10.0 and Windows 7 64 bit. I'm trying to set a relative paths for my MXD file. My MXD is located c:\workspace\rastertest.mxd and the data is located at ...
0
votes
1answer
212 views

Creating a report from features that have been selected

I'm in need of some guidance, I have created an application where the users does the following workflow Enter Postcode Zoom to Postcode Create a buffer at specified distance Spatial Query to find ...
0
votes
1answer
425 views

Focus ArcMap application Window VBA

Very simple question to ask, I haven't been able to figure it out up to now though... How would you focus your ArcMAP application window using VBA? I have a script that runs and selects polygons and ...
2
votes
1answer
620 views

How to change Datasource of a Raster in sde using ArcObjects?

I'm building a C# application that lets the user change their DataSources of all the layers in their MXD. I have it working on FeatureLayers and LYR files but I'm stuck on how to change Raster layers ...
1
vote
1answer
350 views

Trouble trying to zoom to graphic (ArcGIS 9.3.1, VBA)

I am writing an application where one of the things it does is create a point then creates buffer (which is a graphic) at the specific point, what I want to do is when the buffer has been created, is ...
1
vote
0answers
76 views

Mosaicking a selection from a raster catalog and returning the mosaicked raster

I have pretty much given up on trying to get help from ESRI forums so I thought I would try my luck with the good people here... Here is what I have (in C#)... I have an IFeatureCursor that is ...
2
votes
2answers
830 views

ArcObjects Runtime Binding 10.0

I installed the ArcOjbects SDK (if I remember correctly) and in visual studio I have referenced the needed assemblies. Namely ESRI.ArcGIS.Geoprocessor. When in stepping through in debug mode I hit ...
3
votes
2answers
534 views

Zoom to Polygon in Arcmap from Access

I am attempting to Zoom from an Access record to a specific polygon in ArcMAP but I can't seem to get the function to work. The field in Access is identical to the field in arcmap. I.E. they both ...
1
vote
1answer
177 views

ArcGIS - Export - Security

We use an ArcSDE 10 database. We would like to log all events to export data (ArcObject) in ArcGIS Desktop 10. Do you have an idea? a sample (ArcObject)? Thank you
0
votes
0answers
129 views

Do any geodatabase schema and data migration libraries for .NET exist?

I'm performing code refactoring and database normalization in my project and looking for any .NET library for geodatabase schema and data migrations. Does any solution exist for ArcObjects? During ...
1
vote
1answer
66 views

Rebuild 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 ...
3
votes
1answer
894 views

How can I access standard ArcMap cursors?

I'm writing an Add-In for ArcGIS 10 and would like to use the standard mouse cursors ArcMap uses (e.g. the info cursor and the edit cursor). I hope it is possible to just use the right reference in ...
3
votes
3answers
1k views

Why does IActiveView.PartialRefresh not work?

I have a problem with the method IActiveView.PartialRefresh which is not working as it should be (or I'm using it not correctly). I'm writing an ArcGIS 10 Add-In using C# and want to clear a ...
1
vote
2answers
716 views

spatialFilter.SpatialRel = esriSpatialRelEnum.esriSpatialRelWithin; not working

I have a task of getting the total area of all the polygon features within a boundary. So I got the envelope of the boundary and did a spatial query to get the features inside that element but my ...
2
votes
4answers
980 views

How to distinguish between File and Personal Geodb workspace?

I am looking for a way - given an IWorkspace object - to check if it was created from a Personal-GDB or a File-GDB. I tried using IWorkspace.WorkspaceFactory to check if it's an instance of e.g. ...
5
votes
1answer
2k views

How can I update an MXD file programatically?

I'm using ArcGIS 9.3.1. product line and MXD files. At our customer we have multiple environment (DEV, QAS, PROD) which should be more or less identical except they use different datbases and a few ...