Cycling family types

Hi all,

I’m wondering if there is a pyRevit tool for swapping family types.


I have this family with three types which I have to modify constantly per changes in the project.

To change the family type I have to click on the properties browser and then select the correct one. I was thinking that implementing a keyboard shortcut (not to “Type Properties” built in Revit feature) to swapping among the types would improve my productivity.


I don’t think there is one. But I think it’s one that can pretty easily be implemented.
Maybe you can give it a try?

You’ll want to:

  1. Get the active selected element
  2. Get its ‘Valid Symbol ids’
  3. use ChangeTypeId with any of these valid symbol ids to change the type.

There’s some other things to take into account (like how to choose the correct ‘next’ valid symbol id. But I’ll leave that to you