Set Spatial Reference for a a XY event source layer
I have an XY event source layer, added to ArcMap with the option File > Add Data > Add XY Data, but when trying to change the spatial reference of this layer with ArcObjects I get a E_NOINTERFACE...
View ArticleProblem with IWorkspaceEdit in Arcobjects 10.2
I'm trying to edit a IWorkspaceEdit using the StartEditing(True) method with ArcObjects 10.2 (SDE & PostreSQL 9.2.2). The problem is than an error is raised with the following message: "The method...
View ArticleHow can i get IApplication object.
hello,everyone: How can i get IApplication object,i use c# my class extends the ESRI.ArcGIS.ADF.BaseClasses.BaseCommand. i use the way below in the OnCreate(object hook) method; when i use:...
View Articlehow to find layer type of a layer
How do I find a layer type of an ILayer? For example, if I loop through all ILayers from an IMap, how do I determine whether each ILayer is an IGroupLayer ? I already know I can use...
View Articlewhat's the difference between a layer's CLSID, GUID, and UID
Using the code snippet below, I'm confused about the terms CLSID, GUID, and UID in respect to layer objects. Are they all the same thing? ///<summary>Stub code to loop through layers in a map...
View ArticleObtain the layer ID of an ILayer
Hi, what's the best way to obtain the layer ID of an ILayer? The information below might be confusing, but I just want to provide background as to why I'm asking this question... The closest thing I...
View ArticleLicense level requirements for add-in deployment
Hello, I am running Advanced (ArcInfo) and I am developing an add-in that will be deployed to multiple computers around the company. We need to know what license level each machine should be running....
View ArticleEditing Config.esriaddinx with the Wizard
I created an add-in toolbar some time ago (10.1) with menus and submenus. And now I am trying to make edits to this toolbar, but I can't recall how to edit the Config.esriaddinx file? Is there a way to...
View ArticleConverted GDE to SDE and GPServices now cannot open
We just completed converting our data from a filebased GDE "database" to an SDE on SQL Server. We changed our code to grab the connection string, changed our usage from IWorkspaceFactory to...
View ArticleUsing a GPServer in .NET application
I have a GPServer that exports a PDF using an MXD as an input. http://myserver/arcgis/rest/services...ToPDF/GPServer I would like to call it from a .NET ArcGIS Server 10.2.2 SOE but can't find any code...
View ArticleCreate feature and get access to the archive id
Hi, I want to create a feature on a versioned geodatabase with archiving enabled and have access to the exact gdb archive id associated with the feature. Is this possible? I know that from the...
View Articlearcgis application which publishes a map on arcgis server
Hello Community ! I'm new into ArcGIS / ArcGIS developers. I am running on Windows 7, Visual Studio .NET 2012. I program in C#. I would be interested in creating a simple application which would take...
View ArticleFEATURE ATTRIBUTE TABLE COMPARE
HELLO ALL I AM NEW TO c#.NET ARCOBJECTS DEVELOPMENT. I NEED TO CREATE A TOOL WHICH COMPARE TWO SIMILAR TYPE OF SHAPE FILE. ONE IS OLD AND ONE IN UPDATED. TOOL SHOULD REPORTS WHAT COLUMN HAS BEEN...
View ArticleWhat does the IDockableWindow.UserData Property actually return?
ESRI/ArcObject Gurus. I have developed a dockable window as an AddIn using VB .Net. When you use the Wizard to create the AddIn it creates a UserControl which one populates with drop downs, text boxes...
View Articleadd AnnotationLayer to map
I have a FileGeoDatabase with a AnnotationFeatureClass (within 3 AnnotationClasses) that I programmatically want to load to my map. First I load the FeatureClass in order to get some Informations and...
View ArticleESRI AddIn and Excel instance problem
Good morning. I have a programing question related to ArcGIS and Excel. We are developing an AddIn that creates and opens a report in Excel. We want to open the report using, if one is already running,...
View ArticleIXMLPropertySet2.SaveAsFile XSL Translate Error
Hi everyone, I'm stuck on this issue and really unsure what the problem is. I am trying to simply save the (IXMLPropertySet2)IMetadata.Metadata using the IXMLPropertySet2.SaveAsFile() method with the...
View Article.ecfg file name
I'm generating some .ecfg files using post build events in my projects. I'm using .NET 4.5 and Visual Studio 2012. My file names are in the following format: {<guid_id>}_<nameOfClass>.ecfg...
View ArticleGetting ArcGIS Service Pack and Build numbers in ArcObjects
Hi again, I am looking to get the Service Pack and Build numbers through ArcObjects. So far I can get the major version number using Code: RuntimeManager.ActiveRuntime.Version; This returns "10.2" -...
View Articlehow to find out if values are grouped in IUniqueValueRenderer
Hi, I trying to use IUniqueValueRenderer.get_Symbol(value) . The reference says to pass the value when there's no grouping. When there's grouping, you pass the reference value. How do you find out if...
View Article