0

I have loaded multiple Revit files in Autodesk Forge viewer. Now I want to export a single SVF or Revit file (Merged all model contents into a single file) from the viewer.

Could you please help me to solve above problem?

SuperDJ
  • 7,488
  • 11
  • 40
  • 74

1 Answers1

1

Sorry, the viewer is used to viewing models only. It doesn't have the capabilities of editing or generating models, unfortuantely. So, I'd advise you to do the following:

  1. Open either of the Revit models with Revit Desktop or Design Automation API for Revit as the host model, and link others as linked RVTs.
  2. Save the changes into the host RVT.
  3. Package host and linked RVT files into a ZIP file.
  4. Upload the ZIP to your OSS bucket
  5. Submit a composite Revit file translation job with the below job configuration for example, or see See https://youtu.be/nfHZLlWtQ-0?t=114
curl --location --request POST 'https://developer.api.autodesk.com/modelderivative/v2/designdata/job' \
--header 'Authorization: Bearer  \
--header 'Content-Type: application/json' \
--data-raw '{
   "input": {
     "urn": "{URN_OF_THE_ZIP}",
     "compressedUrn": true,
     "rootFilename": "host_rvt_filename.rvt"
   },
   "output": {
     "formats": [
       {
         "type": "svf",
         "views": [
           "2d",
           "3d"
         ]
       }
     ]
   }
 }'
  1. Load the translated URN from step 5. This is the single URN containing the host and linked contents.
Eason Kang
  • 6,155
  • 1
  • 7
  • 24