I need some Help from AutoCAD:
I just downloaded the trial version AutoCAD 2008 to test our .NET application with this new version.
It was not possible to make it running!!
The new acmgd.dll seems not to work correctly.
To find out where the error came from I loaded the old DLL's 'acdbmgd.dll' and 'acmgd.dll' from AutoCAD 2006 and everything worked correctly!
The only annoying thing is the message in the AutoCAD commandline: 'acmgd.dll' is incompatible with this version of AutoCAD.
To reproduce the error make the following:
Take Lab7 Demo Code from AutoCAD 2007 .NET Training.3
Private Sub AddContextMenu()
Dim ed As Editor = Application.DocumentManager.MdiActiveDocument.Editor
Try
m_ContextMenu = New ContextMenuExtension()
m_ContextMenu.Title = "Acme Employee Menu"
Dim mi As MenuItem
mi = New MenuItem("Create Employee")
AddHandler mi.Click, AddressOf CallbackOnClick
m_ContextMenu.MenuItems.Add(mi)
Application.AddDefaultContextMenuExtension(m_ContextMenu)
Catch ex As System.Exception
ed.WriteMessage("Error Adding Context Menu: " + ex.Message)
End Try
End Sub
You will be confronted with the following errors:
1) "Cannot find the method on the object instance." ( debug information )
2) Operation is not valid due to the current state of the object.
3) Error Message of Lab7 Class: Error Adding Context Menu: Operation is not valid due to the current state of
the object.
Questions:
a) Does anybody know if there are new dll's from AutoCAD?
b) Why does anybody know about these errors? ( perhaps i am the only person who works with these dll's )
c) are workarounds available?