How to get the geometry type FIELD value of attribute table?
The problem is: I need to copy every cell’s value of attribute table of some feature to string array. I do it by assigning cell’s value to string variable StrBuf one by one. To check the result the...
View ArticleGUID to open Geoprocessing Enviroment Settings Window through C#?
I am trying to let the user click the enviroment button at the bottom of my custom form and have the Enviroment Window Pop Up. I cannot seem to locate the Enviroment Settings Window GUID anywhere? void...
View ArticleHow to extract points off a polyline at certain distances using ArcObjects...
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...
View ArticleFetching 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 =...
View ArticleMaplex labeling don't work?
I have a problem with the application of Maplex label, I use arcobjects with VB.net This is code, gives no error but it appears just standard labels. Public Sub Show_MaplexLabel(ByVal pGeoFeatureLayer...
View ArticleCopy database file (.sdf) to User Folder for Extension?
I am developing an extension for ArcGIS 10.3 using ArcObjects in c# and it uses a database (.sdf). I want to setup the extension in such a way that when extension is installed (it is ArcGIS AddIn), it...
View ArticleAny extention Open File Dialog
GetOpenFilename doesn’t work in arcobjects VBA, so I have to use pGxDialog. Standard pGxDialog doesn’t let to open any file I want, a few extentions are available only (shp, dxf, xls…). Maybe, I just...
View ArticleIRasterLayerExport3 doesn't save raster until ArcMap closes [closed]
I’m trying to export raster using IRasterLayerExport3, but it saves raster file only after closing ArcMap. It seams that IRasterLayerExport3 creates placeholders for raster (empty file – 3kb), and it...
View ArticleExtend line to specific distance or a line
I want to extend my polyline to a given distance. How can I do this. I have attached image to clear my specification. I am using .net in ArcMap . I am also using python in the image, I want to extend...
View ArticleGet the coordinates of the snapped and clicked point in ArcGIS Engine
I am developing an ArcGIS Engine program. I am using the code below to activate snapping to a layer programmatically. I want to get the coordinates of the snapped point (clicked point). I know I must...
View ArticleShow a datagrid in a dockable window
I am trying to show a list as a datagrid full of strings in a dockable window. I can bind the list to the datagrid but I can’t for the life of me get the datagrid to show in the dockable window. I have...
View Articleexporting 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...
View ArticleAddIn button/tool force Arcgis 10.2.2 to close
Issue : AddIn button/tool force Arcgis 10.2.2 to close. Development environment: Visual Studio 2013, .Net framework 4.5 (I tried with 4.0 also), Arcgis for desktop 10.3 Works fine on development...
View ArticleHaving trouble overwriting raster layers default property sheet
I need to Override the Property Sheet Dialog to display a custom property sheet that has a custom GUI built to analyse raster data based on transformed values. Alternatively, if I can access the...
View ArticleArcmap Addin 10.3.1: Cancel/control loading of addins, based on a condition
I’m creating Add-in for arcmpa in C# , for 10.3.1. These add-in are to help with client workflows for the business needs. I need to be able to control whether an add-in can load or not. (control of...
View ArticleSpatial reference does not match data frame for Bing Maps
In ArcObjects I am loading Bing Maps as a base layer. It’s coordinate system is esriSRProjCS3Type.esriSRProjCS_WGS1984WebMercatorMajorAuxSphere. On top of the base layer, I am trying to load points,...
View ArticleHow to change Raster symbol values (Unique Values) in ArcObjects
I want to change Raster properties symbology using with Arcobjects. Unique Values change as per below attached snapshot. Dim pWSFact As IWorkspaceFactory Set pWSFact = New RasterWorkspaceFactory...
View ArticleITopologicalOperator::Simplify not removing self-overlaps
I maintain an application whose main job it is to take esri-ish things from users and turn them into sql spatial objects in our database (2008 R2). Below is an excerpt that may be useful: public static...
View ArticleCreate a mapping between polyline and raster in ArcObjects
In my case I have two sources of data: a vector shapefile with a polyline (expressing the path) and a raster with some integer metadata values available for each cell. What I would like to do is to...
View ArticleArcGIS 10 arcpy to add a WMS Service to MXD
I want to batch insert WMS layer to my arcmap MXD project with python/arcpy script. Some issues has been unanserwed, here my “state of art”: ESRI IDEAS ESRI GeoNet community #1 ESRI GeoNet community #2...
View Article