Tagged Questions

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
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
750 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
584 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
367 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
292 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
862 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
371 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
909 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
431 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
155 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
318 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
115 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
71 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
214 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
209 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
424 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
592 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
337 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
75 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
816 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
528 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
128 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
873 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
695 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
954 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 ...
1
vote
1answer
501 views

How to determine if a LYR file has more than one Layer using ArcObjects?

In using arcpy, I have found that there are just a few lines of code needed to get a list of layers in a LYR file if more than one layer exist. How can I accomplish this same feat using ArcObjects in ...
1
vote
0answers
298 views

Open Network Dataset with ArcObjects SDK 10.0 .NET

I develop desktop standalone application and use this code to open Network Dataset, but it fails with HRESULT on datasetContainer3.get_DatasetByName(). public static ...
1
vote
0answers
153 views

Opening File GDB in Samba throws exception - but only in VS2010 debug mode

I'm accessing a file geodatabase through a mapped network drive pointing to a unix machine running Samba. When I start the app from within VS2010, I get a COM exception when I attempt to open the ...
1
vote
0answers
64 views

Viewing Tables in the AxTOControl using ArcObjects

SE, I was wondering if anyone out there has written a Table filter for the AxTOCControl in the ArcObjets Library. I've rolled my own Table view for now in C#, but would like to try and keep things ...
7
votes
2answers
570 views

Is it a bad idea to hold references to ArcObjects inside business classes?

According to best practices is it a bad idea to cache features and geometries inside business objects? If it is bad, what is the alternative way? References to features may be replaced with their ...
1
vote
1answer
687 views

ArcObjects - Listening for Map Click in ArcMap

I have a seemingly simple requirement that is causing me all types of headaches - listening for a map click event in ArcMap via ArcObjects. Simple as that, just tell me when the map is clicked (and ...
1
vote
0answers
107 views

ArcObjects: AfterItemDraw only fires for layers in the root of TOC

As I mentioned at the end of this answer the IActiveViewEvents.AfterItemDraw event (even with IViewManager.VerboseEvents enabled) only seems to fire for layers in the root of ArcMap's table of ...
2
votes
1answer
679 views

How to modify a LYR file using ArcObjects?

I'm creating an Add-in for ArcCatalog using C# that modifies the datasources of layers in a MXD and .LYR files by themselves. I have gotten the MXD code to work but I'm lost with how to modify a .LYR ...
3
votes
1answer
905 views

IFeature.set_Shape The coordinates or measures are out of bounds

I'm trying to add a point to my map, but something with the way I used shp2sde create caused me to have a incorrect spatial extent or something. So I'm getting "out of bounds" error. How do I go ...
2
votes
1answer
352 views

How to use multiple graphics layers in ArcEngine?

My organization is working on an ArcEngine application that displays a GPS cursor for the user's current position. We are using custom-made GPS code since ESRI's is buggy in ArcGIS 10. Whenever the ...
2
votes
1answer
2k views

Creating a featureclass in memory and adding to the map error

I have the code below, which is supposed to create a new featureclass in memory then add the FC to the map, but I get a Automation error when I use the createfeatureclass method Set pFC = ...
1
vote
0answers
222 views

Deploying Custom dll Commands etc in ArcGIS 10

Having followed the tutorial for deploying custom commands etc at the following link: How to deploy a custom component using a setup project It's a little different to how things were at version 9. ...
2
votes
1answer
948 views

ArcObjects: Setting image of a command button to a partially transparent bitmap

In an ArcMap 10 add-in, I am attempting to create a toggle button of sorts whose image changes based on the button's state. This answer describes how to set an add-in button's image programmatically ...
2
votes
1answer
405 views

Shapes of this entity type not allowed in this layer when CreateFeature() is called

I have the following code that calls on a remote geodatabase server. Everything is connected and working, but when I try to add a point and use featureclass.CreateFeature();, it shuts down. At first ...
3
votes
1answer
385 views

ArcObjects 9.2 SDK: How to intersect two SelectionSets (in-memory pointers) and return a FeatureClass?

[Update] Since posting this question, I've come to the conclusion I'm not fighting flaws in the BasicGeoprocessor object, but more likely having issues with poor object lifecycle management on my ...