POST
|
That is quite frustrating the always on editing. I am enforcing the use of the 'Enable and Disable Edits' button within the add-in's On Project Load event. Definitely someone could disable it very easily once the project is loaded; but hopefully they will not - makes me think to probably check that setting during other events too. I'll definitely have a look at the sample in the link for creating my own start/stop editing button - very good idea. Thank you so much.
... View more
02-19-2023
07:08 AM
|
0
|
0
|
343
|
POST
|
This has been discussed in an older post from years ago, but there really wasn't an answer as far as I can tell. I am trying to port over an ArcObjects extension which listens for OnStartEditing and OnStopEditing. When an edit session begins, many checks happen including figuring out the layers in the map, pulling data from the database, and if the appropriate datastores are connected to specific layers - all for the purpose of triggering certain things through the edit session. Having the ability to know when to begin listening for all these things would be super helpful with an OnStartEditing event listener. The previous post mentioned listening for a custom tool activation event, but what happens if a user edits a geometry without activating the tool? The extension I am porting over listens for geometry changes too in which an OnStartEditing event listener would be able to prepare for. One possibility I am thinking through is to listen for the esri_editing_editingCurrently and esri_editing_editingNotAvailable states. If I could be notified of these states being in the ArcPro session, I could use them like the OnStartEditing and OnStopEditing events. The issue is, I'm not sure exactly where to check if these states are in the current ArcPro session. Is there an event to subscribe to in which I can check for these states continuously? The use of 'Project.Current.IsEditingEnabled' could be used too, but where can I continuously check to see if the value of this has changed? OnDrawComplete seems to be a possibility as staff generally zoom in/out and pan as they edit, but there is no guarantee the map will redraw before attempting an edit of some sort whether tabular or shape.
... View more
02-16-2023
03:30 PM
|
0
|
3
|
390
|
POST
|
I realize this is an older post, but I am trying to do something very similar, if not the same as Mark. I am trying to port over an ArcObjects extension which also listens for OnStartEditing and OnStopEditing. When an edit session begins, many checks happen including figuring out the layers in the map and if the appropriate datastores are connected to those layers to trigger certain things through the edit session. Having the ability to know when to begin listening for all these things would be super helpful with an OnStartEditing event listener. The issue with the tool activation event is what if a user does something to a geometry without activating the tool? The extension I am porting over listens for geometry changes too in which an OnStartEditing event listener would be able to prepare for. One possibility I am thinking through is to listen for the esri_editing_editingCurrently and esri_editing_editingNotAvailable states. If I could be notified of these states being in the ArcPro session, I could use them like the OnStartEditing and OnStopEditing events. The issue is, I'm not sure where to check if these states are in the current ArcPro session. Is there an event to subscribe to in which I can check for these states continuously?
... View more
02-16-2023
03:07 PM
|
0
|
0
|
454
|
POST
|
Hi Kirk, I have full access to the UNC folder. Thank you.
... View more
02-05-2021
12:21 PM
|
0
|
0
|
818
|
POST
|
Hi Michael. I have tried both a unc path and mapped network drive resulting with the same issue.
... View more
02-04-2021
07:14 AM
|
0
|
0
|
830
|
POST
|
Hello. Has anyone been able to add an Address Locator (.loc file) through the Pro SDK that is on a network drive? It seems to be hit and miss. Most times after adding, it finishes adding, but the locator cannot be used and when attempting to view all map locators in the catalog tree (including esri built-in), they cannot be viewed and there is a spinning icon that persists. I can add one from the local C drive though (same as the one copied from the network drive). Also, has anyone been able to add a locator to their favorites in Pro (this would remove the need for the above). Thank you. Pretty straight forward code: MapView mapView = MapView.Active; LocatorManager locatorManager = mapView.LocatorManager; await locatorManager.AddLocatorAsync(strLocatorPath);
... View more
02-03-2021
09:50 AM
|
0
|
4
|
864
|