EditorClass in standard GIS App. using VB.NET

612
2
05-19-2011 06:38 PM
New Contributor II
I am developing a GIS App.
The environment is ArcEngine9.1 and VB.NET

Question is very simple, but something like difficult.

Public m_Editor As IEditor
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

m_Editor = New EditorClass

End Sub

this code occurs an error in VB Editor window.

"Because 'ESRI.ArcGIS.Editor.EditorClass.Private Sub New()' is 'Private', this can't be accessed in this context"

In ArcEngine9.3, I could use IEngineEditorClass in my application.

m_Editor = New EngineEditorClass
It was OK

but there is no EngineEditor in 9.1.

Is there any way to use EditorClass in my own application in 9.1?

Because it's imposible to use this class, also I can't use ISnapEnvironment.
So I can't use snap funtionality when drawing polyline.

Please give me any tip or sample code...
Thanks in advance.
Reply
0 Kudos
2 Replies
New Contributor III
I think this is a bug @ 9.1, which is resolved in 9.3.
Refer the following forum posting which has a bug confirmation by ESRI:
http://forums.esri.com/Thread.asp?c=159&f=1707&t=201909

"There has been a bug logged regarding the Engine Editor in 9.2. The bug is NIM004832 - The engineeditor class does not expose methods/properties to allow developers to programmatically access/manipulate the edit workspace." - ESRI Support
Reply
0 Kudos
New Contributor II
Thanks for your reply.

Then, conclusionally, can't I use snap function to sketch a line or a point?
It's incredible!!
Do I have to implement snapping programatically?

Is there someone has snapping code?
I seem to become to be crazy!

Thanks anyway..
Reply
0 Kudos