Select to view content in your preferred language

Is there a way to programmatically call the "Save Edits" command?

1801
1
Jump to solution
11-20-2012 06:48 PM
GenaroGarcia
Deactivated User
I created a custom tool that creates a new point or select an existing point within a non-versioned feature class.
The pointâ??s attributes values are updates and saved. I need to commit the point.
I have several userâ??s using the same tool on the save layer.

I create a tool that creates a new point or select an existing point within a non-versioned feature class.
The pointâ??s attributes values are updates and saved. I need to commit the point.
I have several userâ??s using the same tool on the save layer.

I need to programmatically call the "Save Edits" command from the â??Editorâ?� toolbar.

Is there a way to call it?

Is this the scenario: ArcObjects 10

1. Start operation
2. Save the feature
3. Stop operation
4. Call the "Save Edits" command, which automatically retains the editing layer.

Any help is greatly appreciated.
0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable
Original User: dubravko.antonic

Execute ArcMap SaveEdit Command

UID pUID = new UID();
pUID.Value = "{59D2AFD2-9EA2-11D1-9165-0080C718DF97}"; // esriEditor.SaveEditsCommand
ICommandItem pCmdItem = Extension.Application.Document.CommandBars.Find(pUID, false, false);

pCmdItem.Execute();


Start/stop operations are methods on Editor object, look for IEditor
http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//000100000340000000

Regards Dubravko

View solution in original post

0 Kudos
1 Reply
by Anonymous User
Not applicable
Original User: dubravko.antonic

Execute ArcMap SaveEdit Command

UID pUID = new UID();
pUID.Value = "{59D2AFD2-9EA2-11D1-9165-0080C718DF97}"; // esriEditor.SaveEditsCommand
ICommandItem pCmdItem = Extension.Application.Document.CommandBars.Find(pUID, false, false);

pCmdItem.Execute();


Start/stop operations are methods on Editor object, look for IEditor
http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//000100000340000000

Regards Dubravko
0 Kudos