Search code examples
autodesk-forgeautodeskautodesk-viewerautodesk-model-derivative

Autodesk Model Derivative API - Can't translate my revit file


I'm doing this tutorial from here:

Tutorial

I have a sample revit file from revit itself, I saved it as: test1.rvt

  • I get my access token [it works]
  • I create my bucket [it works]
  • I check if my bucket exists [it works]
  • I upload test1.rvt [it works]
  • I translate the file with the urn, encoded in 64bit [result: success]
  • I verify the translation [it fails]

I don't understand my problem here. The eror says:

The file is not a Revit file or is not a supported version

But I have tried with the revit file from the homePage (revit 2017 and 2018) so what can be my problem here?

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here


Solution

  • Just verified your revit file, it's working good with the translation service, here is my body of translation job API:

    {
      "input" : {
        "urn": "dXJuOmFkc2sub2JqZWN0c*******m9uc29mdHdhcmV3b3Jrc2hvcDIvdGVzdHJ2dC5ydnQ"
    
      },
      "output" : {
        "force": "true",
        "destination": {
          "region": "us"
        },
        "formats": [
          {
            "type": "svf",
            "views": ["2d", "3d"]
          }
        ]
      }
    }