2

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

Wandrille
  • 6,267
  • 3
  • 20
  • 43
  • I'm voting to close this question as off-topic because it is not a programming question. – High Performance Mark Nov 25 '17 at 13:25
  • It is about the API from Autodesk. So yes it is a programming question. Maybe I'm doing something false in my request to the API. – Wandrille Nov 25 '17 at 13:28
  • It seems pretty good about the process, the only suspicious I can see is that I usually do not specify the Content-Length while uploading the file. Can you send your file to me at zhong.wu@autodesk.com, and I can verify it at my hand. – Zhong Wu Nov 25 '17 at 14:06
  • Thanks, I have send you the file. – Wandrille Nov 25 '17 at 15:18
  • Simply use our online viewer to test if the problem comes from your code or the file itself: https://a360.autodesk.com/viewer – Felipe Nov 26 '17 at 00:21

1 Answers1

1

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"]
      }
    ]
  }
}
Wandrille
  • 6,267
  • 3
  • 20
  • 43
Zhong Wu
  • 1,721
  • 1
  • 8
  • 9