2

I want to prevent the user from moving the feature in ArcMap when editing. I used OnChangeFeature event but it does not work.

void m_editEvents_OnChangeFeature(IObject obj)
        {
            m_editor.AbortOperation();
        }

The OnChangeFeature event fired after moving the faeture.

  • 3
    Instead of aborting, did you consider casting obj to IFeatureChanges, as show here and setting it back to its OriginalShape? – Kirk Kuykendall Jun 5 '12 at 22:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.