POST
|
No, it's should be a clean 10.1 install. I've also deleted all other add-ins so the only extension added is the one I'm testing. Thanks for your help, by the way. I've been pulling my hair over this for two days!
... View more
06-01-2015
12:37 PM
|
0
|
5
|
71
|
POST
|
Sadly, this code crashes my ArcMap. In particular, line 28: Events.SelectionChanged += Events_SelectionChanged; doesn't allow ArcMap to start and instead displays a dialogue with "ArcGIS Desktop has encountered a serious application error and is unable to continue." Changing the code to ((IActiveViewEvents_Event)ArcMap.Document.ActiveView).SelectionChanged += delegate() { MessageBox.Show("Selection Changed"); }; results in the same error. I am running ArcGIS Desktop 10.1 and matching Arcobjects .NET SDK.
... View more
06-01-2015
10:41 AM
|
0
|
8
|
71
|
POST
|
I want to bind an action to the SelectionChanged event on the map. In the extension, I bind the action to the focused map's SelectionChanged event upon firing ArcMap.Events.NewDocument and ArcMap.Events.NewDocument. The assumption I'm making here is that upon firing of the New(Open)Document events, there is an active document with a map so I can indeed bind actions to its events. But it doesn't work. What is the correct way of getting this to work? using System; using System.Collections.Generic; using System.Text; using System.IO; using ESRI.ArcGIS.ArcMapUI; using ESRI.ArcGIS.Carto; namespace BaseAddin { public class BaseExt: ESRI.ArcGIS.Desktop.AddIns.Extension { public BaseExt() { } protected override void OnStartup() { WireUpEvents(); } private void WireUpEvents() { ArcMap.Events.NewDocument += ArcMap_NewOpenDocument; ArcMap.Events.OpenDocument += ArcMap_NewOpenDocument; } private void ArcMap_NewOpenDocument() { IMxDocument doc = ArcMap.Document as IMxDocument; ((IActiveViewEvents_Event)doc.FocusMap).SelectionChanged += new IActiveViewEvents_SelectionChangedEventHandler(delegate() { System.Windows.Forms.MessageBox.Show("Feature selection changed."); }); } } }
... View more
06-01-2015
09:08 AM
|
0
|
12
|
4932
|
POST
|
Should it be possible to build an add-in using ArcObjects SDK for .NET 10.2 and deploy the add-in in ArcMap 10.1? I have just tried that and ArcMap 10.1 crashed. To give you some context, my dev machine runs ArcDesktop 10.2.2 but I'm developing extensions for an organisation that has ArcDestop 10.1 only. What is the best practice in such circumstances?
... View more
05-29-2015
09:05 AM
|
0
|
1
|
3305
|
POST
|
As a side note, I have tried to compile both with ticked and unticked Build option "Register for COM interop", I have tried to compile and register with admin rights, I have tried to remove and re-add reference to ESRI.ArcGIS.Desktop.AddIns... I have tried every single advice I could find on the web to resolve this and I'm obviously still missing something. Please help.
... View more
05-29-2015
05:15 AM
|
0
|
1
|
40
|
POST
|
I am learning to develop ArcMap extensions using ArcObjects for .NET in Visual Studio C# 2010 Express. To start with, I have successfully compiled the example of implementing a dockable browser window from ESRI website (ArcObjects 10 .NET SDK Help). I have been able to debug the example, add the command from its category to a toolbar in ArcMap and open the browser window. This is when I debug or register the extension with ArcDesktop 10.2.2 which is on my dev machine (I am able to both debug the extension and register the release using the ESRIRegAsm.exe utility). Now, when I port the extension .dll library to another machine with ArcDesktop 10.1 and try to register the extension I get the following error: Registration failed. Could not load file or assembly 'ESRI.ArcGIS.Desktop.Addins, Version=10.2.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86' or one of its dependencies. The system cannot find the file specified. The project doesn't have the Config.esriaddinx file so I don't really know where to look for configuring the build to make this work. Where should I look for advice?
... View more
05-29-2015
04:37 AM
|
0
|
2
|
4823
|
POST
|
Is it at all possible to create a custom add-in (toolbar, button, etc.) using the ArcGIS Runtime SDK for Java? If it is possible, please provide me with a link to a guide/tutorial. If it is not possible, what is the best way to provide a solution to the problem below? I would like to allow ArcMap users to select a number of features on the map, and then, at the click of a button, display a dialogue with information about these features that is pulled from a database. There should be a number of buttons each of which will run different script at the background providing different information about the selected features. The dialogue with the information should allow users to save the displayed information into an excel file. I have tried to approach this by developing a Python script with a Tkinter GUI, but this entails certain problems. For example, the script has to be run in the foreground with visible process dialogue (to access the current map and the selected features), the user needs to go through the parameters pop-up even if no parameters are required, if the script is not run "in process" then executing it from a Python add-in crashes ArcMap. It seems that ArcObjects SDK for Java might do the job, but I haven't been able to figure out how to get the package (ArcGIS Runtime SDK for Java, on the other hand, is easy to obtain from Esri website).
... View more
05-22-2015
09:17 AM
|
0
|
3
|
5250
|
POST
|
Yes, that's what I meant. I have published the map in ArcGIS Server Manager as a map service, then added the map service from the web in My Content (shows as Map Image Layer) and, lastly, added that layer to a new on-line map. This does not seem to support html pop-ups. When I add in My Content a single layer from the published map service then the layer shows as a Feature Layer - adding this to a new map does indeed allow to click on the features and pop-ups work as expected. The annoying implication would be (assuming I have to add each layer to the map individually) that I cannot use the same layers hierarchy that I have in the .mxd file (it seems that there isn't a way to create layer groups in the webmap viewer).
... View more
05-13-2015
07:54 AM
|
0
|
0
|
40
|
POST
|
I have and it does not expand. I have now tried a different approach - I have added a separate layer from the map into My Content and then added that layer into a new map in ArcGIS Online. Pop-ups are now enabled and all seems to work as expected. The problem is that the map from the original .mxd file has around 40 layers and adding all into an on-line map will be very laborious. My question at this point is why can I not enable pop-ups on layers when adding the whole map but I can enable pop-ups on each single layer from this map when added individually?
... View more
05-13-2015
04:56 AM
|
0
|
2
|
40
|
POST
|
I have added a map from our ArcGIS server to our ArcGIS Online account. The map has been created in Desktop 10.1 but saved as a 10.0 version copy to be compatible with our 10.0 server. I can see all layers with features in the webmap viewer but cannot enable pop-ups to display feature information. When I navigate to the layer on which I want to enable the pop-ups, clicking on the arrow next to the layer name shows only "Hide in Legend" and "Description" options. I have made sure that the "Shape" field is visible in the layer (Can't enable pop-ups on this layer in a map ), I re-published the .mxd file, cleared the REST cache, but to no avail. What am I missing?
... View more
05-12-2015
09:21 AM
|
0
|
5
|
3873
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|