My suspicion is that the open EDITFORM is not completely unloaded and still shows mode = 2 (Editing an existing feature ).One work around that shows some promise (although perhaps not the most elegant) is to enable the TIMER and check for the EDITFORMS state being back to -1 (Not currently open ).I have confirmed it does work but haven't worked out all the details of saving the current data before closing the form. If there is a better way I am open to it, as I think this is perhaps not the best way.
Application.Timer.Interval = 100 'milliseconds Application.Timer.Enabled = True
Public Sub EditSelectedPoint() 'When the OnTimer event is fired, then Edit the selected feature. Dim objSelectionLayer Application.Timer.Enabled = False Set objSelectionLayer = Map.SelectionLayer If Not(objSelectionLayer Is Nothing) Then objSelectionLayer.Edit Map.SelectionBookmark End If End Sub
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.