Row Deleting Problem
Hi simply, i want to delete a row from a table. the following code works well . however, after deleting , when i open the attribute table , i can see the row still exists and is not deleted. whene i...
View ArticleESRI Raster Remap with Doubles
I have a requirement where the user would like to see the output value in a raster as a double. This is my current code- Code: INumberRemap remap = new NumberRemapClass();...
View ArticleCreating an SQL Server Workspace
I'm having some problems creating a connection to an MS SQL Server DB. pWrkspcFact := CoSqlWorkspaceFactory.Create as IWorkspaceFactory ; pProps := CoPropertySet.Create as IPropertySet ;...
View Articleproblem retrieving LocatorStyle
Trying to get a locator style programatically to use to standardize addresses but can seem to get ahold of one. Please help. Code: Â Â Â Â Â Â Â Â Dim locatorManager As ILocatorManager = New...
View ArticleOnMouseDown Event
In 9.3 to get the XY of a mouse click i'd use: Public Overrides Sub OnMouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Integer, ByVal Y As Integer) But in 10.0 I get the following...
View ArticleGetting Started with Custom .NET Framework Applications
Where can I find information about getting started with ArcObjects and the .NET Framework for the purposes of building a completely custom application with no ESRI GUI components? Are there any books...
View ArticleActivating the rotation tool on Editor Toolbar
I have added the rotate tool from graphics element on the toolbar but it is not getting activated at all. I have tried it even after starting the edit session but still it is not getting activated. How...
View ArticleSample arcobjects.net code for rotating selected features.
I am in need of a sample code which will illustrate the use of rotation tool for rotating the selected features (polylines, points or polygons). Thanks in advance Sajid
View ArticleReshaping polygon throws error
Hey there, after being glad to have solved my last problem I just come up with a new one which I can´t figure out. When reshaping a polygon I use Ring#Reshape(IPath), which gives me a boolean if all...
View ArticleUsing CreateSelectionLayer For ArcGIS Server
Hi, I am trying to create a layer by using selecting features. I am connecting to ArcGIS server using ESRI.ArcGIS.ADF.Connection.AGS.So far I have managed to get following code running. But it is not...
View ArticleHow to find direction of digitization from featurelayer object for labelling...
Hi All, Is there a way to find direction of digitization from feature layer? I can not go for any n/w layer(i.e creating geometric n/w) Actually aim is to label layer according to its direction of...
View ArticleChange color of polygon outline by map scale
ArcMap Desktop 10.0, Visusal Studio 8.0, vb.net. I have a taxlot polygon layer. I want to change the color of the polygon outlines after the map refreshes below 1:10,000 mapscale. Am I looking at an...
View ArticleAnybody using IWorkspaceFactorySchemaCache?
Hi All We have very large ArcSDE database (many layers) and very limited memory on the desktop machine. We would like to try to disable the Schema Cache in order to save some memory on the client. In...
View ArticleLayer file versioning
Please see below the function I have for writing a layer file. I'd like to embedded a version number that would be accessible on the Ilayer loaded into ArcMap (from the layer file). The intention...
View ArticleCan't open FGDB in console application
Hi, Getting back on the horse after a couple of years in a non-technical position. I am trying to write a console application that iterates through a fc in a FGDB and updates values. Having trouble...
View ArticleGet GroupLayer Name
ArcObjects Java 10.0 sp5 If an IGroupLayer is composed of IFeatureLayers, the following code will print the IGroupLayer name. If I pass a name that I *think* is an IGroupLayer, my method crashes with...
View ArticleRaster Calculator Expression in C#
I'm trying to use the RasterCalculator in C# (I'm not using python) string slopeRadiansRasterFilePath = Path.Combine(_options.OutputTmpWorkspaceName, "SlopeRadians"); string formula =...
View ArticleSymblize Point Layer
All, I am in a unique situation to symbolize point layer. For example, I have a point Layer that has following attributes. Field1, Field2, X, Y, Field3, Field4, Field5...
View ArticleMake a custom layer selectable in ArcMap
Hello all We have a custom layer (not dynamic) and we would like ArcMap to be able to use the standard selection tool on it. Currently, when we load it into ArcMap the selection tool is disable. What...
View ArticleCreating leader-line functionality from pasted Excel tables (vector graphics)
Is it possible to adopt the leader-line functionality from a label object into a pasted object from Excel, which is a formatted table? They are pasted into ArcMap as vector graphics by default, but I...
View Article