Hi,
I have been wondering how dynamo manages to display geometry preview in Revit, and if this is dynamo exclusive or usable with other tools like pyrevit.
Can someone direct me to more information on how dynamo shows the orange masses/surfaces and points in Revit? Id love to be able to use that some day in some of my pyrevit tools in the side..
I don’t know that I would take the time to build it for PyRevit because of its security and .NET10 support concerns. Building such a tool can both be difficult to build and lead to stability issues with poor wrappers (including a server and an interface where Python implementations can struggle). However if you want to try the classes needed are in the DirectContext3D namespace.
2 Likes
That’s interesting, i wasn’t aware of that.
One of the main things i struggle with at my office is getting people to open up Dynamo, or even Dynamo player. To some coworkers it’s simply too foreign to use, which is very unfortunate since the tools i’ve been making really help the office.
This made me switch to pyrevit for some workflows i made, which was accepted far better. I have been considering just rotating into C# and making an actual company wide addin with a better user interface than Dynamo for the less tech-savvy coworkers and hopefully more stable and safe than pyRevit..
Thank you for your points an the link to the docs, that’s exactly what i was looking for 
Alternative solution, you can use AVF
The full add-in would be better from a security and maintenance standpoint, but it’s more work to deploy as you have to push each update not just give a new feature by way of new script. So it’s a trade off.
It’s looking like IronPython2 will be completely dead in 2027, and a LOT of pyrevit relies on that so switching to another tool ahead of the wait for a working build might be advisable (it’s what I’d do anyway).
That said, by not helping users adopt Dynamo you are building a dependency on you for all work. This sounds good (job security), but it usually is the opposite (@Garbage_Collector is on vacation this week and we can’t get his thing to work as we are using links in a non-standard way. sadly we can’t rely on @Garbage_Collector’s tools anymore as they only work 100% of the time when he’s involved, so we’re going to plan on doing stuff manually).
@c.poupin’s post using the AVF is also worth reviewing, as it’s a good alternative and likely easier to implement in a ‘one off’ situation.