Revit Add-ins Pt2

In the last post, I wrote about how a small, insignificant problem created a need for a custom plugin with Revit to deal with Totalstation coordinates in the real world (bridging the digital realm with the physical one…foreshadowing perhaps?)

This time, we have another problem that was easily (well, not so easily) solved via a custom add-in in Revit MEP dealing with Electrical Panels and their respective circuits.

The situation was as follows:
11 story building, 480v and 208v panel on each floor + 480v emergency and 208v emergency for a total of 44 panels on the job. (Not that many you might say)

Next:
Each 42ckt panel was already loaded down with connected circuits, but a small problem arose. We now were moving the design from 42ckt floor mounted combo transformer/panelboards to 84ckt wall mounted panels and separate transformers.

If you don’t already know, Revit really doesn’t like to change Families between Electrical Equipment, even more so when the have many circuits attached to them and even much more so when you are moving from a floor/workplane hosted family to a wall/face based one.

Well, what is the next step? Logically you open the system browser, find you panel, find each circuit, select it and change panels in the ribbon tab for Electrical Circuits…as I assume those of you whom are reading this are smart enough human beings to realize this is a ridiculous way to spend your time just to change panel types.

I decided to do something about this because I would be damned if I was going to spend my time clicking 10000000 times in Revit to change circuits and panels and maximum 1pole breakers and…you get the point.

Here’s what I did: I decided to write a quick add-in that took all existing circuits that were attached to a panel of my choosing and move all of them over to another panel of my choosing. Simple right? Pretty much true, but with some small quirks on how the Revit MEP API lets you deal with circuits.

That’s enough for one post. Part III coming soon will include screen shots.

FYI – Source code for native QR code generation in revit 😉

https://github.com/kmorin/QRCode-Revit2013