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)

7
votes
1answer
120 views

In ArcMap, use python to disable “Scale map elements proportionally to changes in page size”

I am changing sources on MXDs in differents offices using ArcPy and ArcGIS 10.0. As observed here, the printer settings revert to the default printer when the instruction mxd.save() is sent. Losing ...
0
votes
0answers
15 views

How to add image to Globe using ArcObjects

I'm using ArcObjects 10.3 .NET. I need to programmatically add .jpg image to Globe. Image is not georeferenced, but I have four points for bounding polygon (not rectangle). What I need to do is ...
0
votes
0answers
24 views

arcobjects 10.3.1 c#: Loading Addins programmatically

I am writing addins in C#, and am trying to load an addin. I thought i had the solution, but it seems like the full code is not loaded. The button is added to my toolbar, and code seems to run, too ...
0
votes
1answer
255 views

Setting path to Variable to be able to open new mxd? [duplicate]

Possible Duplicate: How to define Subroutines and functions? I know its strange but I need to be able to open a new mxd into an existing one. Yes, it can be done. All I need to do is set a ...
2
votes
1answer
16 views

Spatial relationships that do not match

All, I have 2 layers as shown below What I want to do is go through each feature (in pink) and do a spatial filter against the green layer. My current code is inMemFeatCur = ...
1
vote
2answers
1k views

ArcObjects - accessing layer data table from C#

I've spent all day yesterday trying to trace all errors but I'm just completely stuck now. Google isn't helpful either. I'm trying to create a small C# tool which opens a MXD file in background and ...
4
votes
1answer
505 views

Reading data from file geodatabase using OleDbConnection?

I'm able to connect to a file geodatabase using an OleDbDataAdapter and read the attribute table just fine - from within visual studio. However, when I put the code inside a windows service it ...
3
votes
1answer
320 views

Creating installer for ArcGIS toolbar with Visual Studio 2005?

I'm working on a small toolbar for ArcGIS 9.2, Windows XP, using Visual Studio .NET 2005. I followed Esri's instructions for creating an installer: ...
1
vote
2answers
2k views

how to create table and layer in c#

I have used Make XY Event Layer to Creates a new point feature layer based on x- and y-coordinates using python and it worked for me. Now as a need of my project i want to apply the same in c# using ...
0
votes
0answers
21 views

TopoToRaster Tool Execute problem in ArcGIS

I am trying to execute TopoToRaster tool (ArcToolbox>3D Aanalyst Tool>Raster Interpolation>Topo To Raster) in arcGis 10.0 with .NET. Topo to Raster Input But get exceptions. My code is here : ...
1
vote
1answer
40 views

Area of Interest of focus map in ArcObjects. [on hold]

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
463 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 ...
93
votes
5answers
15k 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
30 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 ...
10
votes
1answer
3k 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 ...
0
votes
0answers
18 views

Draw perpendicular cross-section over polyline [closed]

I have a polyline feature class and point feature class. These 2 have intersected points. I want to draw perpendicular lines on each point feature of the polyline feature class. How it Can be ...
2
votes
1answer
182 views

Programmatically get Layer source properties DataType with ArcObjects?

I am trying to access the DataType property of a Layer in the TOC in ArcMap. The layer is added from a web service as an IMapServerRESTLayer. The Data Type property is listed with Layer -> ...
3
votes
2answers
954 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
449 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
524 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
26 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
25 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
22 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
254 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
526 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 ...
2
votes
1answer
246 views

Refreshing display for newly added labels with ArcObjects from Python?

I've added a shapefile to an MXD and Edited the symbolization of it with ArcObjects. Now I'm trying to edit the labeling with ArcObjects. I've successfully been able to edit the default class in 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), ...
0
votes
1answer
177 views

Code to get featureclass name from existing topology

I am creating and validating topology through vb.net and arcobject code.Things are running fine as I am able to add rule and validate it . Problem is when once the program is run and topology is ...
2
votes
2answers
53 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 ...
2
votes
1answer
379 views

Can I update the service on ArcGis Server programmatically?

There is Windows Service. This service adds user raster data to the Raster Dataset in sde database. The Raster Dataset registred on the ArcGis Server. This Raster Dataset also was publishing on ...
3
votes
1answer
46 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
688 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
2k 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
51 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
41 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
250 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: ...
2
votes
2answers
312 views

Create FeatureClass in Personal Geodatabase and store data

I have to create a new featureClass in my existing personal GeoDatabase. And save some polylines into this featureClass. How can i do it? I need c# code to do this. Edit: I have a problem during ...
3
votes
1answer
469 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
157 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
42 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
315 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
175 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
807 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
472 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
336 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
238 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
406 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 ...