Search code examples
autodesk-forgeforge

Autodesk Model Derivative obj output


I used model derivative API on revit model to download its components separately. I got output file in obj format which is just code. But if I want to use that component in revit, How to do it? How to download that code and how to transfer it to revit format? Attaching screenshot of obj file.


Solution

  • An OBJ file is geometry only. The code you show represents that geometry. All Revit buiding information is lost when converting from Revit to OBJ.

    You can easily bring the OBJ back into Revit again by parsing the geometry definition and creating a DirectShape from it. That is demonstrated by the open source DirectObjLoader programming sample:

    https://github.com/jeremytammik/DirectObjLoader

    You can also purchase this functionality from the Autodesk Exchange AppStore, if you are not interested in adapting the open source version yourself for your needs.