Set EventTable
From http://forums.arcgis.com/threads/142...tures-with-VBA, where the code is in VBA: Dim pRouteEventSource As IRouteEventSource Set pRouteEventSource = pFLayer.FeatureClass I tried to setup an...
View ArticleConverting 4-band raster to 3-band. How?
Using ArcMap 10.1/ C#/ ArcObjects Within an add-in, the program is using the ExtractByMask Geoprocessor function to create tiffs from sde raster layers. It works fine when working against 1 and 3 band...
View ArticleHow to cast?
Referrring to the code at http://edndoc.esri.com/arcobjects/9....teLocation.htm Dim pRtLocName As IRouteLocatorName Set pRtLocName = New RouteMeasureLocatorName I tried to do like that...
View ArticleFix for ArcGIS 10.1 cannot find Add-ins
There is a bug in the way ArcGIS reads add-in if you use profiles that are set up in an unconventianal way. The problem is that ArcGIS cannot find the add-ins after you make changes to them so they...
View ArticleGeometricNetwork error loading
Goal is to eventually have access to the set of features that failed during the LoadNetwork portion of building out the geometric network. Currently I'm importing data, getting a nice network built out...
View ArticleHow to cast in opening an ESRI.ArcGIS.Location.RouteMeasureLineLocationClass?
I want to open an ESRI.ArcGIS.Location.RouteMeasureLineClass from a GeoDB. From http://resources.esri.com/help/9.3/a...n_overview.htm I got Open LocalLocatorWorkspace. Then I used the code below:...
View ArticleHow to determine if an image file is georeferenced
I have a task to scan a folder for georeferenced images. There might be a lot of images, some quite large, and some not georeferenced. The spatial information can also be either embedded or in a world...
View ArticleDoes ArcObjects ConstructUnion operation sometimes fail to merge touching...
I have some code which identifies touching parcels and uses ConstructUnion to produce a single polygon from them. Just occasionally the touching parcels remain unmerged even though they have been...
View ArticleESRI.ArcGIS.Location.IDatabaseLocatorWorkspace vs. IFeatureWorkspace
The IFeatureWorkspace has the methods like that: OpenFeatureClass(), OpenTable(), ... The ESRI.ArcGIS.Location.IDatabaseLocatorWorkspace does not have this kind of methods. In order to open a...
View ArticleVery simple ArcMap add-in freezes
I'm working with ArcMap add-ins for the first time, and I'm having some trouble with it. I tried looking up the problem I'm having and I can't seem to find anything that mentions it. I just wrote a...
View Article10.2 SqlWorkspaceFactory Error
Hello, in 10 and 10.1 i have an AddIn wich opens an SqlWorkspaceFactory and then loads some QueryLayers based on custom code, everything is working smoothly. What is failing, in 10.2, is the code wich...
View ArticleIRouteEventSource and RouteEventSource
From this ArcObjects diagram at: http://help.arcgis.com/en/sdk/10.0/a...00000138000000, it can be seen that the RouteEventSource class has 2 interfaces, and one of the interfaces is the...
View ArticleNo such interface supported (Exception from HRESULT: 0x80004002
When I debugged the code: ESRI.ArcGIS.Location.RouteEventSource rteEventSource; rteEventSource = (ESRI.ArcGIS.Location.RouteEventSource)fClass; // fClass - a feature class...
View ArticleSpatial Index is lost but never found unless I restart Arcmap
All, Odd problem here and I have not found a solution to it. I'm using ArcGIS 10.1, VB .net and the source data is a shapefile.At some point in my tool I add a field using the IFeatureClass.AddField...
View ArticleVisuall C++ runtime error
Hello, I am trying to solve an issue for one of my customers. We have a legacy desktop application VB.NET that is only getting bug fixes & ArcGIS Engine Runtime updates at the current time. In our...
View ArticleRaster Calculator and VB.NET
Hi, how to execute raster calculator from vb.net? there is help or equivalent sample to do that. following is link :- http://help.arcgis.com/en/sdk/10.0/a...0002782000000/ ESRI guys please help!...
View ArticleSubclass RouteEventSource
In ESRI's Exploring ArcObjects, Vol. 1 p967, it is stated that the RouteEventSource is subclass of a Feature Class. However, in VS 2010 Object Browser, it is an interface (see the attached image). I...
View ArticleWhat's wrong in my code? If you can help?
See my code below: // fc - a feature class w/ multiple feature records ESRI.ArcGIS.Location.RouteEventSourceClass rteEventSourceClass; rteEventSourceClass = fc as...
View ArticleHow do I call IGPTool.Execute from C#?
I don't want to AddToolbox to get to this tool. It works fine if i use the AddToolbox (using .sde file) from the Geoprocessor but that defeats the purpose. Code: IToolboxWorkspace toolboxWs =...
View ArticleFeature classes in ArcSDE with .NET
What is the recipe to lists all of the feature classes from ArcSDE SQL backend database. I was able to create the connection but need to know how do it from .NET. Many of the samples out there are...
View Article