Yesterday Kean mentioned that debugging AutoCAD.NET projects using the Visual C# and VB Express editions is now directly supported by the latest version of the AutoCAD .NET Wizard.
That prompted me to have a look and see what the current situation is with Revit add-ins.
Obviously, we poor Revit developers do not have such a sophisticated wizard available ... or so I thought!
I installed Visual C# Express and started my experiment:
I launched the new installation and selected New Project > Visual C#.
My intention was to select 'Class Library' next and manually set up the Revit API references and all that stuff, then move on to explore how to define appropriate debug settings.
However, guess my surprise to see the Revit Add-in option already listed:
Apparently, the Visual Studio Add-In Wizards for Revit 2012 that I have installed for the full version of Visual Studio are also picked up by Visual C# Express.
Well, that simplifies matters a lot, doesn't it?
There is actually nothing else whatsoever to do.
Debugging is already set up by the add-in wizard, and Revit has been specified as the start-up project, although it is not displayed in the Visual C# Express debug properties:
Simply hitting F5 to start debugging launches Revit, and on opening a project and looking at the Add-Ins tab external tools, I see my new Visual C# Express add-in loaded and raring to go:
After setting a breakpoint using F9 in Visual C# Express and picking the external command in Revit, the breakpoint is hit and full debugging functionality is available in Visual C#:
Wow. I expected this exploration and blog post to take an hour or two, but I was done after fifteen minutes.
I am assuming that all of the above remains valid analogously for Visual Basic 2010 Express as well. Please let me know if you can verify this, or have any problems with either that or the C# version.
So the short and sweet message is: all you need to do is install Visual C# or Visual VB Express and the appropriate Visual Studio add-in wizard for Revit, and you will be all set to create stand-alone add-ins and develop and debug them using the Express tools. I hope you have fun!
Addendum: Here are some additonal notes on this by Augusto Gonçalves of Autodesk Brazil, the original implementer of the Revit add-in wizards:
Thank you, Augusto, for pointing this out!