.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error Loading

1 REPLY 1
Reply
Message 1 of 2
BigNat
225 Views, 1 Reply

Error Loading

Hi, I'm having trouble loading any vb.net app that I create. I always get the same attached error message / details!!!

I have success with AutoCAD project wizard however this is in XAML and I need a windows app.
http://through-the-interface.typepad...velopment.html

The samples in C:\ObjectARX 2010 work fine.

It create HelloWorld class app I do the following. What am I missing? Please help. Thanks.

1. Create new vs2008 class project
2. Add AcDbMgd.dll & AcMgd.dll from C:\ObjectARX 2010\inc-win32
3. Set the project debug to C:\Program Files\AutoCAD MEP 2010\acad.exe
4. Start the App


Imports System
Imports Autodesk.AutoCAD.Runtime
Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.DatabaseServices
Imports Autodesk.AutoCAD.Geometry
Imports Autodesk.AutoCAD.EditorInput

< extensionapplication="">
< commandclass="">

Namespace HelloWorld
Public Class HelloWorldApp

Implements Autodesk.AutoCAD.Runtime.IExtensionApplication

Public Sub Initialize() Implements Autodesk.AutoCAD.Runtime.IExtensionApplication.Initialize

End Sub


Public Sub Terminate() Implements Autodesk.AutoCAD.Runtime.IExtensionApplication.Terminate

End Sub
End Class


Public Class HelloWorldCommands
_
Public Sub HelloCommand()
Application.DocumentManager.MdiActiveDocument.Editor.WriteMessage(vbNewLine + "Hello World!" + vbNewLine)
End Sub
End Class
End Namespace
1 REPLY 1
Message 2 of 2
BigNat
in reply to: BigNat

Sorted it.
My Project screen References tab, double-click on acdbmgd.dll to display its
Properties, and set Copy Local to False

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost