Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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)
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

Your Answer


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.