A lot of open-source related interaction going on, plus other interesting Revit API and AI related news:
As my colleague George points out, the current Revit preview release includes access to the a more modern .NET framework: Revit API is moving to .NET Core 7.0.
The new preview is now available from the Revit Preview Project.
Pedro Nadal says: The possibility of being able to develop Revit addins in .NET Core is one of the most awaited news for a long time! Fantastic, hopefully the project will go ahead and we will have news soon.
Deniz Maral adds a correction: .NET Core 7 comes with C# 11.0, not 7.0. In .NET Framework 4.8 we had already C# 7.3 :)
Thank you for your thoughts and corrections, Pedro and Deniz!
A new version RevitLookup 2024.0.9 has been released. Check out the numerous enhancements in the RevitLookup releases.
Many thanks to Sergey Nefyodov and Roman @Nice3point Karpovich, aka Роман Карпович, for all their contributions and maintenance work!
Gerhard P shared a new Dynamo and pyRevit initiative, RevitPythonDocs for Dynamo and pyRevit – request for feedback:
Going the first steps at creating a collection of Python scripts for Dynamo and pyRevit 1, I´d like to know what are your needs when you are looking for code, classes, methods.
It will for sure get search and filter options, but for now it´s more of creating a good naming convention and finding out what code is really needed. In the following what I have come up with so far and I´m looking forward to your thoughts and hopefully contributions! The code is on Github.
Some rules for the code:
- Every script is a full working code including imports.
- Necessary imports only.
- No inputs from dynamo needed, necessary elements are created in the code.
- Dynamo code: tabs as indent only.
- pyRevit 1 code: spaces as indent only.
- No comments, just clean code.
- snake_case only, for variables, functions, everything.
- No “for i in a:”, proper names for everything (except list comprehension).
Code is available in different versions, check the original post for examples...
Many thanks to Gerhard for the initiative and to Jacob Small for pointing it out.
Christopher Diggins presents a new interactive open-source Revit SDK sample browser and launcher: feedback requested on open-source Revit API sample browser:
I do a fair amount of development using the Revit API. For my own reference, and to test some other plug-ins I am developing, I aggregated all of the Revit C# SDK Sample into a single project. I provided a simple UI so that each of the Commands and Applications can be launched by double clicking on the names. Selecting an item's load the associated readme file in a rich text edit box:
I've posted the code to Github here:
I haven't had time to test all of the samples, but it seems to be working. I'd appreciate any feedback!
This looks like an absolutely brilliant project and a great piece of work. Thanks ever so much to Christopher for picking it up, tackling and sharing it. It has some slight similarity to my own RvtSamples project, as aged and old-fashioned as many of the SDK samples. That enables launching all the Revit SDK external commands but implements a more primitive UI and provides no built-in access to the sample documentation. The new sample browser also supports external applications as well as external commands! Great job!
Kfpopeye shared several useful open-source Revit API projects two years ago.
Some of them received rave reviews and a lot of interest was expressed to update them and find a new name and maintainer in the recent continuation of the Revit API discussion forum thread on Project Sweeper, ReVVed, and other apps now open source.
It will be interesting to see where this leads.
In yet another discussion on open-source code sharing and the importance of adding a suitable license in order to enable people to make use of their code, Speed_CAD shared their ProgressMeter and OptionsBar utility DLLs. Here are the associated GitHub repositories:
By the way, the latter is comparable with Roman's recent fully Open-Source OptionsBar.
Andrea Tassera, Jean-Marc Couffin and others discuss some interesting solutions to manage multiple versions of API on the pyRevit forum thread on how to support multiple versions of Revit in invokebuttons (dll projects, Visual Studio).
Some interesting and illuminating aspects of using DesignScript, Rhino, and other geometry libraries with the Revit API are discussed in the Revit API discussion forum thread on using DesignScript in Revit addin.
Not too long ago, some people acquired coveted goods from less business savvy folks with glass beads.
Nowadays, one example of coveted goods are AI IP, the glass beads are compute time, the less business savvy seem to be the AI enthusiasts of OpenAI, and guess who is business savvy?