I was trying to start using Visual Studio 2008 .Net. I found the AutoCad 2010 .NET API Training Labs for VB. I folllowed all of the instructions but I can't get AutoCad to run in the debug mode (hit F5 or Play from VB). When AutoCAD comes up, it gives me the error message:
Unhandled exception has occured in a component in your application......
The Component
'Autodesk.AutoCAD.ACInfoCenterConn.MyAutoCadBalloon' does not have a resource identified by the URI
'/AcWindows;component/infocenteracconn/myautocadbaloon.xaml'
Application does not support just-in-time (JIT)
debugging. see the end of the messag for details...
..
************** JIT Debugging **************
Application does not support Windows Forms just-in-time (JIT)
debugging. Contact the application author for more
information.
If I open an AutoCad session by itself, I can load the dll and run it with out any errors but there is no debugging since it is not being handled by VB.
Here is my code... Can you please let me know what I am doing wrong.
TIA
Jason
Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.EditorInput
Imports Autodesk.AutoCAD.Runtime
Public Class Class1
<CommandMethod("HelloWorld")> _
Public Sub HelloWorld()
Dim ed As Editor = Application.DocumentManager.MdiActiveDocument.Editor
ed.WriteMessage("Hello World 5")
End Sub
End Class