Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have figured out how to do a map save document, but I would also like to be able to save edits whether or not I am also saving the map document.

share|improve this question
    
Are you wanting to start and stop an edit session by code or just save during an existing edit session? –  artwork21 May 9 '12 at 14:30
    
I just want to save the edits when I have already started an edit session. I also don't want it to stop the edit session. –  Xoph May 9 '12 at 14:31
add comment

1 Answer 1

You can save edits using ArcMap Command Save Edits, see code below. This will not stop the edit session.

    Dim pUID As New UID
    Dim pCmdItem As ICommandItem
    ' Use the GUID of the Save command
    pUID.Value = "{59D2AFD2-9EA2-11D1-9165-0080C718DF97}"
    ' or you can use the ProgID
    ' pUID.Value = "esriEditor.SaveEditsCommand"
    pUID.SubType = 3
    pCmdItem = My.ArcMap.Application.Document.CommandBars.Find(pUID)
    pCmdItem.Execute()
share|improve this answer
    
I'll try this out later. Thank you. Sorry about posting this on the other question before. –  Xoph May 9 '12 at 15:09
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.