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.

4
Leave a Reply

avatar
4 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
0 Comment authors
Don RudderLuke JohnsonNickAnonymous Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
Anonymous
Guest
Anonymous

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

Nick
Guest

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. 🙂

Luke Johnson
Guest

Nick – you may want to check with Don Rudder:
Twitter / @AYBABTM: .@lukeyjohnson has anyone …

Don Rudder
Guest

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.