Tell me more ×
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 currently using ObjectClassEvents_OnChange event to prevent the user from make any changes on the features in ArcMap, i want to prevent the user from moving and edit the shape of the features. The problem is when i use m_editor.AbortOperation() in ObjectClassEvents_OnChange event, the user cant move the features but he can do edits on the shape. Whene i use throw new Exception("Cannot edit feature") the user cant do any changes on the shape , but he can move the features.

How can i prevent the user from moving and shape editing.

void _ObjectClassEvents_OnChange(IObject obj) {

            //m_editor.AbortOperation();
            //throw new Exception("Cannot edit feature");
        }
share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.