POST
|
Is there a way to detect if a user has performed a Split operation? I noticed that in this case the EditCompleted event has 1 'Modify', and 1 or more 'Creates'. In my case, the table has an ID field that must be unique, so I could check if in this situation all created records have the same ID as the modified record, but I was hoping there was a simpler way.
... View more
05-21-2019
07:29 AM
|
0
|
4
|
156
|
POST
|
Thanks, that seems to be what I was looking for. Is there a way to get hold of the modified features at that point? Or do I have to keep track of it myself, when CompletedType is Operation?
... View more
05-17-2019
01:03 AM
|
0
|
1
|
12
|
POST
|
Is there a way to detect when a user presses the Save button, after making changes to a featureclass? I know of the EditCompletedEvent, but that's fired directly after a row is edited. I would like to know when the final commit to the database occurs. If it makes any difference, I'm using a File Geodatabase, not an Enterprise Geodatabase.
... View more
05-16-2019
05:51 AM
|
1
|
3
|
99
|
POST
|
I managed to find a workaround: I added a class with one empty method to the library containing my usercontrol. When calling this method from the Dockable Window's constuctor, the dll is loaded, and can be found at the time the usercontrol is needed.
... View more
11-28-2018
03:24 AM
|
0
|
0
|
41
|
POST
|
I am developing an ArcMap add-in containing a Dockable Window. Because I expect this add-in to be moved to ArcGIS Pro at some time, I chose to use WPF instead of Windows Forms. The idea is that I create UserControls that can be hosted in both an ArcMap Dockable Window and an ArcGIS Pro Window. These UserControls will go in a separate class library. The problem I have now is that this class library cannot be found by the add-in. I checked the .esriAddin file, and the directory %LocalAppData%\ESRI\Desktop10.4\AssemblyCache\{MyAddinGuid} but the dll is there. Using the Process Monitor tool, I found out that the dll is only looked for in C:\Program Files (x86)\ArcGIS\Desktop10.4\bin, and not in the AssemblyCache\{} folder. (When I copy the dll to the Desktop\bin folder, everything works as expected, but I don't want to put it there) Does anyone know what's going on? ArcGIS 10.4.1 Visual Studio 2015 .NET Framework 4.5
... View more
11-28-2018
02:40 AM
|
0
|
1
|
427
|
POST
|
I use the EditOperation class to do some edits, and also RelationshipClass.DeleteRelationship to delete a features's relationship to another table. When I undo the edits using the standard Undo tool, edits are reverted properly, but relationships are not restored. This makes sense, because the relationshipclass has no knowledge of the EditOperation. Is there a way to make this work?
... View more
06-21-2018
12:20 AM
|
0
|
1
|
67
|
POST
|
No, that's basic XML: < disabledText > < / disabledText > is exactly equal to < disabledText / >
... View more
06-20-2018
11:46 PM
|
1
|
0
|
98
|
POST
|
Great. All my buttons inherit from a single class (which in turn inherits from Button ) so I put this in the base constructor: var wrapper = FrameworkApplication . GetPlugInWrapper ( ID ) ; TooltipHeading = wrapper . TooltipHeading ; Still, I don't really understand why the TooltipHeading is empty in the first place.
... View more
06-20-2018
11:45 PM
|
0
|
0
|
98
|
POST
|
I have a simple ArcGIS Pro add-in, with a button defined in the daml: < button id = " ProAppModule2_Button1 " caption = " Click me " className = " Company.Project.Button1 " loadOnClick = " true " smallImage = " Images\sample16.png " largeImage = " Images\sample32.png " keytip = " This is a tip " > < tooltip heading = " This is a heading " > Tooltipbody < disabledText /> </ tooltip > </ button > However, inside the button class the TooltipHeading is an empty string. (Tooltip contains the text 'Tooltipbody'). What am I missing?
... View more
06-20-2018
08:25 AM
|
0
|
4
|
160
|
POST
|
What would be the best way to add logging to my Addin? I found the EventLog class in the ArcGIS Pro 2.1 API Reference Guide , but EventLog.IsEnabled is false, and I have no idea how to enable it. Should I use a 3rd party library such as Log4Net?
... View more
06-13-2018
06:45 AM
|
0
|
1
|
695
|
Online Status |
Offline
|
Date Last Visited |
3 weeks ago
|