Exporting Families to FBX (or OBJ) format

Exporting Families to FBX (or OBJ) format

saadXFKKP
Explorer Explorer
310 Views
3 Replies
Message 1 of 4

Exporting Families to FBX (or OBJ) format

saadXFKKP
Explorer
Explorer

Hello Autodesk Community,

I'm looking for a way to export multiple Revit families (around 10 specific ones) from my project into individual FBX (or OBJ) files.
Does anyone know how this could be done—using pyRevit, Dynamo, or any other method?

Thanks in advance for your help!

0 Likes
311 Views
3 Replies
Replies (3)
Message 2 of 4

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi @saadXFKKP ,

Could you please follow the below suggestion?

 

  • Collect the instances of the 10 families within the project.

  • Create a temporary 3D view to isolate each family.

  • Export the 3D view to FBX or OBJ format.

  • Delete the temporary 3D view once the export is complete.

Useful Links:

 


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 4

saadXFKKP
Explorer
Explorer

Thank you, Naveen, for your response.

Currently, I use this method to export families manually. However, I’m looking to automate the process using Dynamo or PyRevit, as I have a large number of Revit building projects from which I need to extract families.



0 Likes
Message 4 of 4

jeremy_tammik
Alumni
Alumni

So, run your existing code in a loop iterating over all the desired families, opening them one by one, exporting, and closing. Don't forget to add some logging functionality, in case Revit crashes at some point. If you process hundreds or thousands of documents, this may happen sooner or later. Check out The Building Coder discussions of batch processing:

  

   

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes