No edit operation is in progress

3781
2
12-27-2010 08:32 AM
ArinStark
New Contributor II
Using a versioned SDE layer that is part of a geometric network.  Edit session is started in ArcMap, then code is run to split line segments over a certain length.  When "Store" method is called to save attributes on newly created split segment, above message (No edit operation is in progress) is returned.  Environment is VBA ArcObjects in ArcGIS 9.3.1.  Question is:  Why does code not recognize that an edit session has been started?

Arin Stark
GIS Analyst
San Diego Gas & Electric
0 Kudos
2 Replies
JeffMatson
Occasional Contributor III
Using a versioned SDE layer that is part of a geometric network. Edit session is started in ArcMap, then code is run to split line segments over a certain length. When "Store" method is called to save attributes on newly created split segment, above message (No edit operation is in progress) is returned. Environment is VBA ArcObjects in ArcGIS 9.3.1. Question is: Why does code not recognize that an edit session has been started?

Arin Stark
GIS Analyst
San Diego Gas & Electric



Even though you are starting the editing process (i.e. IEditor.StartEditing) manually, it is necessary to bracket each operation inside calls to IEditor.StartOperation and IEditor.StopOperation for any feature layers that are in a geometric network: http://edndoc.esri.com/arcobjects/9.1/componenthelp/esriEditor/IEditor_StartOperation.htm
0 Kudos
ArinStark
New Contributor II
That got me through that particular hurdle.  Greatly appreciated.
0 Kudos