Today, I highlight our new local language Forge classes and the renewed ability to easily edit and continue while debugging a Revit add-in:
Before diving in, here is a nice little snippet of wisdom, courtesy of Ehsan @eirannejad:
Every man has two lives; the second starts when he realizes he has just one.
– Confucius
My computer crashed, quite literally, falling several metres onto a stone floor and hitting its right front corner:
Unsurprisingly, the screen broke:
That forced me off-line for a while...
More to my surprise, the rest remained intact; so, I am now happily up and running again with peripherals: external screen, keyboard and mouse:
Could have been worse...
Back to topics of more general interest, we are running a Forge hackathon this week and have Autodesk University coming up next, so there is a lot of exciting activity going on at that front.
If you are interested in learning more about Forge and your primary language is not English, one of our new local language classes may be for you:
Please check them out if your preferred language is French, German or Spanish.
For more information on the current Forge hackathon and Autodesk University, you can look at the AU website and Kean's article on the Forge Hackathon and counting down to AU2021.
Chris Hildebran pointed out that 'Apply code changes' now works when debugging and editing a Revit add-in:
I'm writing as a result of a discovery I saw in Visual Studio today. That discovery is the 'Apply Code Changes' button located to the right of the Start/Continue button:
I gather it has been available for C++ for quite a while, but just recently for .NET projects, as of Visual Studio Version 16.11.0 Preview 1.0.
While debugging, I thought I'd see if this would work in Revit add-in development.
Initial testing confirmed that it does indeed apply code changes that can be seen in my video demonstrating the modification of an add-in tool I'm working on – at least in C#; still need to test .xaml
.
Here is my two-minute video demonstrating the initial test, which I hope is clear enough to see.
I had planned to implement a solution Josh Lumley proposed, but if this continues to work, I will continue using this feature to drastically speed up development.
Perhaps I'm late to the party, but I thought I'd mention it anyway.
Here is the Microsoft article introducing the .NET Hot Reload experience for editing code at runtime.
Many thanks to Chris for sharing this!
For completeness, The Building Coder topic group on debugging without restart and live development discusses how 'Edit and Continue' used to work way back in Revit 2008 and various other solutions suggested in the meantime.