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)

1
vote
1answer
69 views

Area of Interest of focus map in ArcObjects. [closed]

I want to change the extent (area of interest of the view of the focus map) to the bounding box of the selected features. I use the code below ( I wrote lots of classes for my project and i'm using ...
3
votes
1answer
468 views

ArcGIS 10 Addin Code Doesn't Execute on Another Computer? [duplicate]

I've created an ArcGIS 10 Addin that consists of a toolbar containing one button and one tool. The button opens a form, and the tool is disabled until the user enters some information on the form. ...
3
votes
1answer
1k views

ArcGIS 10 Add-In Does not Work on Other computers

I developed a user form that allows user to edit feature attributes in visual basic 2008. vb.net. The add-in's that I built work great on my computer, but when I tried it on another, it crashes ...
99
votes
5answers
16k views

How do I access ArcObjects from Python?

I would like to be able to script some things that are not exposed via arcgisscripting or ArcPy. How do I access ArcObjects from Python?
1
vote
1answer
45 views

Exporting a raster with renderer enabled to file

I have a problem when trying to export a layer with renderer to a file. Basically, what I have at start is a correct IRasterDataset. Then I define a stretch renderer in form of IMultiPortColorRamp and ...
2
votes
2answers
3k views

How to create a graphic point by xy value?

I have implemented this code to create point event layer by xy text file, however I'm wondering how to create a point graphic by xy value? This script draws point graphic by mouse down. When I ...
11
votes
1answer
4k 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 ...
3
votes
2answers
1k views

How to apply new renderer in ArcObjects?

I try to create a new renderer for a geo feature layer in ArcGIS 10. (My project is an asp.net based webservice) There is one solution I got from a tutorial that works, but only for a ISimpleRenderer ...
3
votes
1answer
463 views

Draw text in PageLayoutControl in OnAfterDraw?

I have a PagyLayoutControl in a print preview dialog. It shows the same extent and layers as the master MapControl. Both controls are not syncronised, because changes made in the PageLayoutControl ...
4
votes
2answers
546 views

Uniquely identify feature classes & compare them for equality using ArcObjects?

I want to implement EqualityComparer<T> for feature classes so that I can stuff them into a Dictionary or HashSet. For motivation, say that I am looping over many IFeature objects which belong ...
1
vote
1answer
53 views

Remove feature class from group layer in C#

I have a large program that pulls in various group layers and feature classes. What I am trying to do is check each feature class within a specific group layer that is empty. The count part is easy ...
2
votes
0answers
51 views

How can I get representation geometry created by rules (not manually overrided) using arcobjects.net?

I have feature class with representation rules and now need to extract representation geometry from selected features. If representation geometry is manually overrided, I can get it just using ...
0
votes
0answers
25 views

Check if feature class has at least 1 shape that overlaps raster

In ArcGIS 10.3.1 ArcObjects, Zonal Statistics As Table throws ERROR 999999: Error executing function. when the input feature class has no features that intersect the input raster (as nearly as I can ...
1
vote
0answers
265 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 at C:\workspace\rastertest.mxd and the data is located at ...
2
votes
1answer
559 views

Check for licensing level in ArcGIS 10.2.2 [closed]

I am in process of migrating some legacy code from 10.0 to 10.2.2. As part of application, I need to make sure user is using ArcEditor (now called Standard) level license. Current logic looks at the ...
3
votes
3answers
2k views

IFeatureCursor.NextFeature not releasing memory

I've got a non recycling cursor retrieving features into a List<IFeature>. When I populate the list, I can see my memory usage climbing up. When I discard my list (or it goes out of scope), ...
2
votes
2answers
69 views

ESRI forms using hooks

This has been bugging me for a while. I can easily call a form from a button using ShowDialog() if I use standard vb.net windows form. However when I use the ESRI addin dockable window which uses ...
3
votes
1answer
65 views

Passing in complex parameters to geoprocessing tool?

I'm currently using the Statistics geoprocessing tool (called Summary Statistics in the UI) from ArcObjects. This tool accepts two "complex" (for lack of a better term) arguments: Case fields ...
3
votes
1answer
728 views

Setting CQL_FILTER on WMS in ArcGIS?

Is it at all possible to use a CQL_FILTER on a WMS service in ArcGIS? Ideally we'd be able to programatically change the CQL_FILTER parameter in the WMS URL.
3
votes
2answers
3k views

Opening geodatabase files using Browse Dialog Command (VB.NET/C#) of ArcObjects?

I am currently using the following method with ArcGIS 10 to open raster files from a form: Public Function BrowseRaster(ByVal sTitle As String, ByRef sFolder As String, ByRef sName As String) As ...
2
votes
0answers
89 views

“Geometry cannot have Z values” exception in ArcGIS Engine

I'm trying to put a list of point features (selected points) into a new FeatureClass. but when I add them to my FeatureClass I get the "Geometry cannot have Z values." exception on the line ...
2
votes
1answer
54 views

Getting point from known points to specific distance of polyline using ArcObjects?

I want to know the coordinates of a polyline from specific point and distance. I have attached image to clear the specification. say, I have a points B(2,3). I want to know the coordinates of A and C ...
2
votes
1answer
274 views

Adding INDEX to IFeatureClass with ArcGIS SDK for Java?

I want to add an index to a feature class. To do so, I used the very short and complete example given there: ...
3
votes
1answer
481 views

Arcgis -> python -> ctypes -> c++ dll tool cancels itself, why?

Since optimizing my python-ctypes-dll based geoprocessing tool, it seems to cancel itself a lot. Followed by arcmap reporting a pure virtual function call (which is odd, because you'd think any such ...
3
votes
2answers
1k views

ArcGIS 10 MapControls in MS Access, can it be done?

In the past (9.3 ArcGIS) I was able to develop forms in MS Access where I could drop a MapControl on and have GIS functionality all within Access as long as ArcMap was installed on the same machine. ...
3
votes
1answer
163 views

IGPutilities in IGPFunctions?

In Esri's area calculation sample of IGPFunction implementation they use IGPUtilities but they don't release the instance. On the singletons page in SDK help they list GPUtilities as a singleton ...
2
votes
1answer
60 views

Putting features (IFeature) into ifeatureclass with ArcGIS Engine?

I am trying to get the selected features from axMapControl and put them in a new feature class. I can get the selected features but when i'm trying to put them in a IFeatureClass and then cast it as ...
1
vote
0answers
318 views

Extract by mask run time error in VBA

I have the following script language code shown below within a main code just to run the tool of spatial analyst "Extract by mask". Unfortunately, when I run it I get a Run Time Error. I checked file ...
0
votes
0answers
180 views

How to make sure OnSketchFinished always works?

In my VBA application I have a listener set up that listens for OnSketchFinished, when the polygon is created a message box appears and then a userform. My problem is that the listener will work 90% ...
3
votes
0answers
837 views

ArcObjects - IExportPDF2 and esriExportPDFLayerOptions Not Working as Expected

I have a small function that exports a map document to a pdf. The function works in the fact that it does export a pdf. However, regardless of what I set ...
1
vote
0answers
488 views

Intersecting with Geodatabase.ISpatialFilter - no results

I'm trying to intersect two layers and get resulting features with the following code I've written: ESRI.ArcGIS.Geodatabase.ISpatialFilter spatialFilter = new ...
2
votes
0answers
353 views

Create custom pixel block size in ArcGIS 10?

I'm using the new IRawBlocks in ArcGIS 10 from the adopted sample in ArcGIS 10 SDK help and I want to create a custom sized pixel block that feeds me a block of values column by column instead of a ...
0
votes
0answers
240 views

ArcObjects - Select fields to Layout

I have a project which I need to do the following task: there are several points with coordinates (X,Y) in the correspondent table. I select, manually, a few points and I want to use ArcObjects to ...
1
vote
1answer
430 views

Transforming layout page units to map units using ArcObjects?

I am trying to build an add-in that will create a polygon from the current map extent. This is not a problem in Data View where I can easily get the envelope of an iMxDocument:iActiveView in data ...
3
votes
1answer
941 views

Obtaining envelope of data frame in Layout using ArcObjects?

This is to expand on How can I transform layout page units to map units? How can i programatically obtain the corner coordinates (in page units) or the envelope of the data frame in layout view? I ...
3
votes
2answers
1k views

Creating Esri Grid and populating cell values using Python/GDAL or ArcObjects?

In terms of processing speed what's the fastest way of creating and then adding values to a raster? The values will originally come from ASCII files which can be about 500MB in size - ideally I ...
0
votes
2answers
40 views

How can I set Changed flag in ArcMap using ArcObjects.NET?

In my task I changes representation geometry in selected features. When I edits something in ArcMap manually, question dialog about saving changes causes: Editor - Start editing Edit geometry Editor ...
1
vote
1answer
723 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.
8
votes
1answer
103 views

ArcObjects with Left Join

I'm expecting an ArcObjects code which is equivalent to SQL left join. For example: I have the below SQL code, it's simple join to fetch the records from the both tables based on the ChecklistId ...
4
votes
1answer
82 views

Can I compile an addin developed in ArcGIS 10.3.1 for use with 10.1 and 10.2?

I made an update to one of my addins mainly because users requested new features. I made the changes and compiled the addin in 10.3.1. Although I specified that the addin is compatible with 10.3 and ...
2
votes
1answer
70 views

x, y to decimal degrees on mouse click in ArcObjects?

I am converting an old VBA code I used to use in ArcMap 9.2, into VB.NET for ArcMap 10. It should extract x, y coordinates from OSGB and converts to decimal degrees while copying to clipboard. I ...
3
votes
2answers
648 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 ...
5
votes
2answers
508 views

How do you determine which dbclient connection property to use for an Oracle SQLWorkspace connection?

I have an Oracle11g database that I connect to via a SQL Workspace; however the actual dbclient string value that works differs depending on machine (and I'm guessing oracle client configuration). On ...
2
votes
1answer
25 views

How to extract points off a polyline at certain distances using ArcObjects using VB.Net

I am trying to extract longitude and latitude of points from a polyline shapefile at certain intervals(10-50m). Using ArcGIS I was able to do using Densify followed by Feature Vertices to Points in ...
6
votes
3answers
2k views

Is it possible to target an ArcMap add-in to an earlier version?

My development environment is Visual studio 2010 with ArcGIS Desktop 10.1 installed. I need my add-in to support 10.0 AND 10.1. Right now, if I try to install it on ArcMap 10.0, it fails. Is it ...
3
votes
2answers
56 views

Fetching single value without Cursor in ArcObjects?

I used the below function to get the single value using ArcObjects. private string getApproverAlias(string checklistId, bool isDeleted) { string approverAlias = ""; var masterTable = ...
1
vote
1answer
25 views

exporting 10.2 .esriaddin to 10.0

I have successfully exported .esriaddin I created in 10.2 Arcobjects SDK to 10.0. The installation succeeded but the problem I am having is that whenever I use the command me.Close() to close the form ...
3
votes
1answer
469 views

ITopologicalOperator and Z Values

I have 2 polygon featureclasses with Polygon ZM features. I am trying to do a ITopologicalOperator.Difference() on these feature classes but it errors saying that: Geometry cannot have Z values ...
4
votes
3answers
3k views

How do you remove a custom extension?

For example: you run the DesktopExtensionCS2010 sample that comes with the SDK, having it open arcCat at startup. Now whenever I open ArcCat the extensions are there. I can uncheck them but I want to ...
1
vote
1answer
104 views

Arcobjects vb.net forms in Arcmap 10.0

I am trying to create a basic form using ArcObjects (Vb.NET) to view in Arcmap 10.0. I have created the form using the designer but cant view it in Arcmap. I have created a button that will call the ...