上传rvt然后尝试获取模型数据

时间:2017-07-31 09:44:28

标签: autodesk revit-api autodesk-model-derivative

https://gist.github.com/kenken64/b40ef906076018dc11aef1929b7e04a5

我在检查状态时提交作业后收到以下错误

200 应用/ JSON;字符集= utf-8的 B'{ “类型”: “清单”, “hasThumbnail”: “假”, “状态”: “失败”, “进步”: “完整”, “区”: “美国”, “瓮”: “dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6Zm9yZ2Vfc2FtcGxlMl9jNmVheHJpZmxxeXp2bWlybXQzMDZoc21hd2VodjlpZy9yYWMxLnJ2dA” ,“version”:“1.0”,“衍生物”:[{“name”:“LMV Bubble”,“hasThumbnail”:“false”,“status”:“failed”,“progress”:“complete”,“messages” “:[{”type“:”error“,”message“:”翻译失败“,”代码“:”TranslationWorker-InternalFailure“}],”outputType“:”svf“}]}' 检查完成翻译数据返回状态码200。

请帮忙!

https://developer.api.autodesk.com/modelderivative/v2/designdata/job { “输入”:{ “瓮”: “dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6Zm9yZ2Vfc2FtcGxlM19jNmVheHJpZmxxeXp2bWlybXQzMDZoc21hd2VodjlpZy9yYWMxLnJ2dA”}, “输出”:{ “格式”:[{ “类型”: “SVF”, “视图”:[ “2D”, “3D”]}]} } { '内容 - 类型': '应用/ JSON', '授权': '承载eyJhbGciOiJIUzI1NiIsImtpZCI6Imp3dF9zeW1tZXRyaWNfa2V5In0.eyJjbGllbnRfaWQiOiJDNmVheHJpRmxRWVp2bWlybXQzMDZIc01BV0VodjlJZyIsImV4cCI6MTUwMTUwMjc2NSwic2NvcGUiOlsiZGF0YTpyZWFkIiwiZGF0YTp3cml0ZSIsImRhdGE6Y3JlYXRlIiwiZGF0YTpzZWFyY2giLCJidWNrZXQ6Y3JlYXRlIiwiYnVja2V0OnJlYWQiLCJidWNrZXQ6dXBkYXRlIiwiYnVja2V0OmRlbGV0ZSJdLCJhdWQiOiJodHRwczovL2F1dG9kZXNrLmNvbS9hdWQvand0ZXhwNjAiLCJqdGkiOiJYMVh4R1l6UFZGVlpwZHlsR29MTmZKYjh4T2s1N0dEMDE0c2pNWWZhY1pzc1hDNmgwT0o2VTRIUWVhSEZHWGt4In0.janHAXhsbRtNQYZ9q-Pz7IsGZjF0Em_e_UoOurPr-4Q'} 201 应用/ JSON;字符集= utf-8的 B'{ “结果”: “创建”, “瓮”: “dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6Zm9yZ2Vfc2FtcGxlM19jNmVheHJpZmxxeXp2bWlybXQzMDZoc21hd2VodjlpZy9yYWMxLnJ2dA”, “acceptedJobs”:{ “输出”:{ “格式”:[{ “类型”: “SVF”, “视图”:[“2D ”, “3D”]}]}}, “registerKeys”:[ “2d8ddceb-9f0a-48e5-ae6e-53839cc6ded6”]}” 翻译数据返回状态码201。

1 个答案:

答案 0 :(得分:1)

在调用Model Derivative Job API时,您似乎有一些错误的配置。请更改以下行并再次尝试:

  • compressedUrn: truecompressedUrn: false,因为您的模型是RVT文件,所以它不会被压缩。
  • rootFilename: "A5.iam"rootFilename: "rac1.rvt"

P.S。在您重新发布翻译作业之前,请调用此API https://developer.api.autodesk.com/modelderivative/v2/designdata/dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6Zm9yZ2Vfc2FtcGxlMl9jNmVheHJpZmxxeXp2bWlybXQzMDZoc21hd2VodjlpZy9yYWMxLnJ2dA/manifest删除失败作业。