AttributeError: 'module' object has no attribute 'CreateFileGDB_Management'
I keep getting this error, and don't understand why. Here's my code: Code: # Import ArcPy site-package and os modules import os import sys import arcpy #Set variables root_directory...
View ArticleMenu - onCreate Event
Dear All, The Class 'BaseCommand' has 'OnCreate' method(to handle oncreate event). Similarly is there any equivalent method available for Menu ('BaseMenu' Class)?
View ArticleTOCControl AddLayer...
When adding a layer to the TOCControl (in ArcGIS Engine), the layer is shown with symbology beneath it. You can collapse and expand the symbology by clicking the plus or minus icon on the left. The...
View ArticleAccess Add-in Button.Caption in Code
Dear all, Can anybody tell me how to read the Caption, Message and Tooltip properties of an ArcMap Add-in Button programmatically? The properties are defined in the Config.esriaddinx file and are shown...
View ArticleError when calling IIndexQuery2.Within
Using a street centerline feature class and a polygon feature class, I am taking the shape of a street polyline and attempting to get all of the polygon shapes that this polyline is within. I am using...
View ArticleHow to select datagridview rows based on selected features?
Hi all I've used sample "Bind a geodatabase table to .net control" to show attribute table of feature layers in a datagridview. Now, i wanna update that datagridview when user selects some features in...
View Articlelayer names to text box using C#
Hi, I am trying get layer names to text box but i am not getting result.Here is my code Can any one help IMxDocument imx = m_application.Document as IMxDocument; IMap map = imx.FocusMap; StreamWriter...
View ArticleGeoprocessor - C# - Create empty feature class using template for attribute...
Hello, I am using the ArcObjects SDK - C# and geoprocessor to create an empty polyline featureclass in a file geodatabase. This feature class will use an existing feature class in the file geodatabase...
View ArticleProgrammatically change the datasource of a join (IRelQuery DestinationTable ??)
Hello everybody I'm trying to change the datasource of a join. The reason for that is the following: I read the source out of an given Lyr-File, in which the path is abolute. If I load another project,...
View ArticleQuery for Label in VB.NET how to
Hi I am new in this forum and Arcobject I need to search for Label in Arcmap Query What do I search for in this forum to get me started with this Or do anyone have sample how to Query for Label with...
View ArticleHow do I disconnect an open SDE direct connection?
I am working in an enterprise geodatabase in through Citrix - both the desktop client and SDE (Oracle 11g) are at 10.1. I often have multiple SDE connections open in ArcCatalog and would like a way to...
View ArticleArcMap.Application is null when Addin is loaded
Hello, I've a problem in the installation of an Add-in that we've developed for our client. The Add-in does not work correctly because the ArcMap.Application value is null when loaded. The type of this...
View ArticleNeed Help in ArcEngine 10.2 Application Deployment in windows 7
I developed an application using ArcEngine 10.2. Anyone have an idea on how to deploy the application to the other pc w/o using my ArcEngine License? I tried installing the app to a computer with...
View ArticleExtensions window not refreshing when programatically changed
I have a few extensions (3 and growing) that implement IExtensionConfig. The extensions are for doing different sorts of task in ArcMap, so they rely on different data loaded, enable different custom...
View ArticleHow to create ArcGIS Toolbox built-in tools using ArcObjects?
Hello - I am in a situation where my Python arcpy scripts are limited (the arcpy API is limited I should say) so I can't create a satisfactory script tool and I can't use a model to create a tool I...
View ArticleGeodatabaseUI.ICalculatorUI2 no longer works in ArcMap 10.1
I have an addin that has been ported from ArcMap 9.3 to 10.1 and this code worked perfectly in 9.3 but for some reason won't work at all in 10.1: Code: ICalculatorUI calc = new CalculatorUI();...
View ArticleMultiple parts of a polyline M
In a SOE application, I have retrieve all of points broken from a polyline M if it is a single part segment. If a segment contains multiple parts, how to retrieve the parts as well as the points using...
View ArticleC# Release Excel Objects
I have an application written in C# that runs from within ArcMap and it creates an Excel file on the fly using Microsoft.Office.Interop.Excel objects. It works fine except the Excel process hangs until...
View Articlevb.net arcgis add in, log4net does not work by installing esriAddIn
Hi everybody, I want to use log4net in my vb.net for ArcGIS add-in. After I build the solution, it generates a .exe file and a .esriAddIn file. The problem is when I run the .exe file (without open...
View ArticleDefine a query for joining data
Hey around, I´m trying to build a query that provides access to features within a FC that intersect a given geometry AND that apply to an attribute-based query from another table by a join. For the...
View Article