An updated version of the AutoCAD .NET Wizards is now live on www.autodesk.com/developautocad. The updated version allows you to specify the location of acad.exe so the Wizard can automatically setup the projectto launch AutoCAD from the debugger. That enhancement is mainly aimed at users of VS Express, which doesn't allow this to be setup via the UI (you previously had to edit the project files manually).
Other than that, it does what it always did.
There's a small screencast included with the download expling the basics of using it.
This is awesome for anyone using VS Express!
If I could make a suggestion? The wizard defaults to a WPF Class Library, It might be nice to have the option to either use Windows Forms, Class Library or WPF.
Hi,
I am playing with this wizard. If I want to output a "Hello World", where should I put it and how?
I thought it is here in MyCommand.vb:
Namespace AutoCAD_VB_plug_in1
Public Class MyCommands
<CommandMethod("MyGroup", "MyCommand", "MyCommandLocal", CommandFlags.Modal)> _
Public Sub MyCommand() ' This method can have any name
' Put your command code here
End Sub
but don't know how?It's different from dll which need to netload.
Thanks in advance
Cean
I create the "MyCommand" command to output a message "Hello my World!" like this:
in MyCommand.vb:
Namespace AutoCAD_VB_plug_in1
Public Class MyCommands
<CommandMethod("MyGroup", "MyCommand", "MyCommandLocal", CommandFlags.Modal)> _
Public Sub MyCommand() ' This method can have any name
' Put your command code here
Application.DocumentManager.MdiActiveDocument.Editor.WriteMessage(vbNewLine + "Hello my World!" + vbNewLine)
End Sub
I built it into DLL and NetLoaded into AutoCAD, typed in "MyCommand", it is working. But when I quit AutoCAD and restarted, I can't run MyCommand anymore.
I run other plugins I downloaded from net, they could be remember after NetLoad.
WHat I have done wrong?
releasized the dll need to be demand_loaded.
Just wondering why this wizard don't have a demand_loading.vb included? Or there is another wizard to use for demand_loading?
Thx
you can either load it by invoking netload in lisp, or (and this is what I normaly do) there is a registry key for autoloading into autocad, you can find more info by searching the forum.