RTV Tools

Friday, March 2, 2012

Revit API Challenge: convert In-place Families to Component Families automatically

Here is what we want - you select an in-place family and click 'Convert to Component Family' on the Ribbon.  Through API Wizardry, the following happens without any further user interaction:
  1. The family is edited in place
  2. All objects in the family (including reference planes etc) are selected
  3. A 'group' command is triggered
  4. The group is saved (as a file) to a temporary location (it will be an RFA)
  5. This family is loaded back into the project
  6. The family is placed in the correct location (XYZ) in the project
  7. The original in-place family is deleted from the project.
This can all be done manually of course, using the workflow described here.

I'm sure that many users would find this tool helpful, and for some of you advanced Revit API programmers, this utility should be a piece of cake!

Also: if you release this utility for free, just think of the Revit API street cred that would give you.

Finally, if you want to take it to the next level - make a Batch Convert option, that allows the user to 'pick' which In-place families (from the current project) that they would like converted, after which the Batch tool goes ahead and does steps 1 to 7 above on each and every in-place family you selected.


  1. Nice blog. Great to learn about this tool that is really helpful for some of executing Revit API programmer

  2. Anyone working on this one yet? I have been working on something similar to this and could probably tweak the code to make this happen.

    And, yes, perhaps this could be released for free. :)

  3. I just took an honest stab at this in 2013 and have to inform you of the bad news: In-Place family manipulation is still not exposed in the API. You can get at and change parameters, but you cannot edit or add geometry.