Revit 2020 Dynamo Toggle Level Bubbles

SHARE
Share on email
Share on linkedin
Share on facebook
Share on whatsapp

Revit loves skyscrapers. Isn’t it strange, I wondered, that one must select one level at a time then to be able to toggle the bubbles on and off? Especially in Elevations and sections, this can be a bore.

Why not use Dynamo, I said to myself, and where would I find the nodes or the code to be able to toggle them on and off?

Well, Google is your friend, as I have often been made aware of. The search went something like this: “Autodesk, Revit, Dynamo, Level, Header, Toggle On”

On the first search page, there was my answer:

Autodesk, Revit 2020, Dynamo, Python, API 2020, Level, Bubble

Imitation is the sincerest form of flattery, and in the Dynamo world we all share and help each other out, so I downloaded the script shared by Mustafa:

Autodesk, Revit 2020, Dynamo, Python, API 2020, Level, Bubble

Note, the relevant members for the level class in the Revit 2020 API is available here:

I then modified the script and code to suit my purpose and now I can switch on multiple bubbles at once.

Autodesk, Revit 2020, Dynamo, Python, API 2020, Level, Bubble

While Mustafa’s script relies on selecting levels to operate on, mine simply takes all the levels then, based on which script is unfrozen, switches them all on, all off, left on or right on. No more spending forever switching each level bubble on or off manually.

Autodesk, Revit 2020, Dynamo, Python, API 2020, Level, Bubble

The result:

Autodesk, Revit 2020, Dynamo, Python, API 2020, Level, Bubble

That is the beauty of automation. And always remember, structured data helps to automate processes, so follow a BIM protocol, and set up a BIM Execution Plan for the project.

If you need help adopting BIM or using Revit and Dynamo in your company, please contact Micrographics so we may be of assistance to you.

RECENT ARTICLES