ArcObjects is a set of COM-based APIs from ESRI Inc. that are used in several of their products, ArcGIS Desktop, ArcGIS Engine and ArcGIS Server.
1
vote
0answers
31 views
What affects the kind of date (local vs. UTC vs unspecified) on JTXJobClass.StartedDate?
I am accessing the JTXJobClass.StartedDate for a JTX Job (with IJTXJob3). I am getting an unspecified DateTime.Kind value. The value appears to be UTC (iirc, WMX always stores UTC in the database ...
1
vote
0answers
70 views
ArcObjects ICommandBar is not refreshing
I am migrating a 9.3 based Desktop extension, to 10.1
The Extension, is building toolbars on the fly.
It creates the toolbar, and add the commands to it.
This is the snippets of the code that does ...
1
vote
0answers
137 views
Algorithm to place the minimum of rectangles to cover a polygon
I'm trying to cover a polygon with the minimum set of rectangles like explained in the picture below, the used rectangles have the same size a*b (a != b) , the rectangle could be rotated by ...
1
vote
0answers
126 views
Error when opening attribute table of a feature layer with a programmatically generated join
I'm creating a query table with IQueryDef and then using MemoryRelationshipClassFactory to create an inner join between a feature layer and the query table. Both the query table and the join are ...
1
vote
0answers
121 views
Zooming MapControl (Arcgis) doesn't effect?
I am trying to use the Zoom commands (Zoom In, zoom out) for a MapControl. But it doesn't make "Text elements" bigger (larger) or smaller. Please see my image.
I used the below function to add a ...
1
vote
0answers
86 views
How to set the font size of ITextElement if only know Height of the text?
When I read text elements from a .dgn file. I only can get the "height", "length" attribute of the text (it doesn't have a "size" attribute) (example: total height = 0.9; total length = 8.6).
I need ...
1
vote
0answers
50 views
Concurrent users using a DLL to access ArcObjects?
So currently I have some ASP.net code where users are updated GIS through a DLL file that uses ArcObjects to talk to the MapService and layer.
My question is, will there be concurrent user issues? ...
1
vote
0answers
31 views
IMapControlEvents2.OnKeyDown not hit on Alt + key
I want to catch the Alt key plus an addionally hit key in the MapControl's OnKeyDown. I did already set MapControl's KeyIntercept to esriKeyIntercept.esriKeyInterceptAlt but the event handler doesn't ...
1
vote
0answers
71 views
How to show size/length of sketch while creating new feature?
While adding a new feature to a feature layer I like to show the size (area)/length of the sketch so that the user has a better feedback while placing the vertexes.
So I hook up MapControl's ...
1
vote
0answers
108 views
Sending coordinates of features of any polygon featureclass to a table
I am trying to store x-coordinates and y-coordinates of a polygon feature in a table. But, i am getting an error message: Item not found in this collection. The code is like this:
Do
pFeature = ...
1
vote
0answers
119 views
How to get x and y coordinate values of an annotational featureclass
I am able to get the x and y coordinate values from point, polyline, polygon and multipoint type featureclasses. However, I am unable to export x and y coordinate values of an annotational ...
1
vote
0answers
94 views
ArcObjects: Scale text not changing map units from miles to feet
I am adding scale text to a page layout. The code works, but the map units on the text scale still appear as miles and not feet as coded. Here is the code snippet to add scale text....
...
1
vote
0answers
153 views
C# ArcObjects RubberBand Tracking Cancel
I've written a function to create a polygon based on geometry collected from the IRubberBand interface as follows:
ITrackCancel esc = new CancelTrackerClass();
esc.CancelOnKeyPress = true;
...
1
vote
0answers
105 views
Using OpenGL with GlobeControl problem
I'm using OpenGL to draw some custom 3d graphics in GlobeControl,
I implemented the IGlobeDisplayEvents.AfterDraw event as in Esri example (RSS weather 3D layer).
the drawing succeeded but it is not ...
1
vote
0answers
162 views
Issue with installing extension dll to ArcGIS\Desktop10.0\Bin at ArcGIS 10
I have an extension that writes to bin directory of ArcGIS installation. At 931, with power user rights, it works fine but at ArcGIS 10, it doesn’t allow copy of the dll's to C:\Program ...
1
vote
0answers
253 views
How to solve 'A failure was detected in the topology engine' error?
I am running a series of geoprocessing tools in a custom C# Geoprocessing Tool.
First a new File gdb is created, and then a new featuredatset with the given spatial reference is created, and a ...
1
vote
0answers
63 views
How to protect my application ESRI FGDB data from authorized access using other applications?
I have ArcObjects app which uses file geodatabase for storing data and performing CRUD operations. This file geodatabase needs to be protected from reading data in other applications such as ArcMap, ...
1
vote
0answers
54 views
Can IMemoryBlobStream be copied?
In ArcGIS there is IMemoryBlobStream, which is used to Provides access to members that control the Blob Stream.
Well, I'm trying to use this as a way to save off custom information ...
1
vote
0answers
16 views
Editing MosaicDataset attributes
Good morning!,
I'm trying to access and edit an MosaicDataset (I need to edit the MaxPS/MinPS fields) But I can't find a way to access them programmatically..
Doe's anyone know how can I edit these ...
1
vote
0answers
49 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 ...
1
vote
0answers
71 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) ...
1
vote
0answers
64 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.
1
vote
0answers
47 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 ...
1
vote
0answers
96 views
Cutting Polyline at the beginning and end by some unit
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
0answers
155 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 ...
1
vote
0answers
60 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 ...
1
vote
0answers
173 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
117 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
56 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 ...
1
vote
0answers
89 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 ...
1
vote
0answers
153 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. ...
1
vote
0answers
90 views
Selection Events in ArcObjects using Java
I am trying to have an ArcMap addin receive ISelectionEvents, but I can't figure out how to register the event handler. I'm using ArcObjects 10.0 for Java. I'm able to catch IDocumentEvents as ...
1
vote
0answers
80 views
ArcObjects - IGraphicsContainerEvents_ElementAddedEventHandler Unregisters After a Few Fires
I am using IGraphicsContainerEvents_ElementAddedEventHandler to do stuff with graphics added by users in an ArcMap session using the standard drawing toolbar. As the code snippet below shows, its a ...
1
vote
0answers
193 views
how to buffer a raster cell using Visual Basic ArcObjects in ArcMap
I am new in visual basic, I have a question about creating a buffer zone based on a raster layer.
I have a raster layer named "Value_Raster", I have a textbox in the userform, I also create a tool ...
1
vote
0answers
123 views
Trouble programmatically publishing to SOM when SOC is on another machine
I wrote a desktop extension for ArcMap that allows a user to publish the map they've just created to an AGS 9.3.1 machine on another server. This works fine as long as the AGS machine acts as a SOM ...
1
vote
0answers
47 views
Guide for esriRasterOpCode
I'm building dynamic cartographic symbols to display inside ArcMap, but they are displaying "wrong".
Is there a guide somewhere that will show what raster op code does? I mean, not only show, but ...
1
vote
0answers
153 views
ArcObjects .NET 9.3 upgrade to 10 breaks IRasterDataset.Copy(…) code
I have to upgrade an application from ArcObjects 9.3 (C# .NET) to 10. Unfortunately, there seems to be some incompatibility regarding the IRasterDataset.Copy method. The following code worked fine in ...
1
vote
0answers
112 views
How can I denote the values of reclassification using variables?
I used the following lines of code to classify a raster. However, my problem is how can I denote the old and new classification values in the last code line using variables? Then number of values ...
1
vote
0answers
146 views
How to find the features, which have an override on the offset field
I’m trying to write a code, which will find the features, which have an override on the offset field. It is very easy to find if a feature has any override, but to find if a feature has an override on ...
1
vote
0answers
47 views
How to get the nodes on the absolute boundary of a TIN with ArcObjects
I am trying to get only the nodes on the absolute boundary of a Tin. But GetNeighbor or LeftTriangle methods return edges whose nodes have NaN Z and very weird X-Y coordinates, so the row is inserted ...
1
vote
0answers
189 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 ...
1
vote
0answers
37 views
How does ISurface.Locate work?
could someone help me with this method of arcobjects? I don't know what the parameter "hint" means. Thanks.
ISurface.Locate Method
Returns the intersection of the query ray and the displayed feature.
...
1
vote
0answers
131 views
How to append geographic features into a .dgn file?
How can I export all the geographic features of a featureclass into .dgn (Microstation) file using C#/ArcObjects? I was able to create a new .dgn file and I want to export all the geographic features ...
1
vote
0answers
89 views
How can I interact with ArcObjects from a windows service?
How can I interact with ArcObjects from a windows service? It appears that I can't work with an AxMapControl object from a console or service, because it complains about the activeX state. How does ...
1
vote
0answers
137 views
Looking for Raster Renderer statistics in ArcObjects
I've got a plug-in for ArcMap that I have been working on. I have my own renderer seperate from ArcMap that I am using to display imagery. My goal is to sync up the display of this imagery with that ...
1
vote
0answers
86 views
What does SetHistogramData do?
I run the following code:
IClassify classify = new NaturalBreaksClass();
ITableHistogram tableHistogram = new BasicTableHistogramClass();
IBasicHistogram basicHistogram = tableHistogram as ...
1
vote
0answers
180 views
UniqueValueRenderer and ClassBreaksRenderer configuration
So I can create one of these renderers based on parameters I let the user set. Some parameter combinations either create invalid conditions or no conditions at all - missing data, too many breaks or ...
1
vote
0answers
102 views
Annotation and Renderer Interaction
I have code that creates either a UniqueValueRenderer or a ClassBreaksRenderer and applies it. I also have code that uses AnnotateLayerProperties to set labels.
When I create a renderer and then an ...
1
vote
0answers
49 views
Strange Behavior for TOCControl PopupMenu
The sample "TOCControlContextMenu" demonstrates how to display a context menu from the AxTOCControl. When I run this sample and right-click on the TOC control the context menu pops up and remains ...
1
vote
0answers
155 views
Add print/export button to axToolbarControl
I have a map that's being rendered inside a custom application, and now I need to add to the ESRI.ArcGIS.AxToolbarControl an export (to PNG) button and a print button, but honestly don't know how. ...

