Autodesk Forge File Conversion如何下载清单文件? [英] Autodesk Forge File Conversion how to download files in manifest?

查看:69
本文介绍了Autodesk Forge File Conversion如何下载清单文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在成功上载并转换文件后,遵循模型导数为查看器准备文件",我将清单网址称为

然后我如何将转换后的文件下载到清单中.如果我只知道the?(即)我将如何获取隐藏的svf"urn:adsk.viewing:fs.file:dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6bW9kZWxkZXJpdmF0aXZlL0E1Lnppcs/f1/f5".

或缩略图"urn:adsk.viewing:fs.file:dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6bW9kZWxkZXJpdmF0aXZlL0E1LnppcA/output/1/A5.svf.png01_thumb_200x200png".

是否有一个可用于返回实际位置的api调用?

最终结果是我想创建类似[提取器]( http://extract.autodesk.io/).对于所有文件,我需要在本地运行查看器

Edit2:在fileUploda之后我从通话中回来的清单

 结果{"type":清单","hasThumbnail":"true","status":成功","progress":完成","region":"US","urn":"dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6Z3JlZ2JpbWJ1Y2tldC9yYWNfYmFzaWNfc2FtcGxlX3Byb2plY3RfdGVzdC5ydnQ",衍生物":[{"name":"rac_basic_sample_project_test.rvt","hasThumbnail":"true","status":成功","progress":完成","outputType":"svf",孩子们": [{"name":"{3D}","hasThumbnail":"true","role":"3d","status":成功","type":几何","progress":完成",孩子们": [{"name":"{3D}","role":"3d",相机": [...],"status":成功","type":"view","progress":完成"},{"type":资源",瓮": 瓮:adsk.viewing:fs.file:dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6Z3JlZ2JpbWJ1Y2tldC9yYWNfYmFzaWNfc2FtcGxlX3Byb2plY3RfdGVzdC5ydnQ/输出/资源/3D_View/_3D _/_ 3D_.svf","role":"graphics","mime":应用程序/autodesk-svf"},{"type":资源","role":缩略图",瓮": 瓮:adsk.viewing:fs.file:dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6Z3JlZ2JpbWJ1Y2tldC9yYWNfYmFzaWNfc2FtcGxlX3Byb2plY3RfdGVzdC5ydnQ/输出/资源/3D_View/_3D _/_ 3D_1.png",解析度": [100,100],"mime":"image/png",状态":成功"}, 

我尝试发送但收到404的请求

<预> <代码> https://developer.api.autodesk.com/modelderivative/v2/designdata/dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6Z3JlZ2JpbWJ1Y2tldC9yYWNfYmFzaWNfc2FtcGxlX3Byb2plY3RfdGVzdC5ydnQ/manifest/urn:adsk.viewing:fs.file:dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6Z3JlZ2JpbWJ1Y2tldC9yYWNfYmFzaWNfc2FtcGxlX3Byb2plY3RfdGVzdC5ydnQ/output/Resource/3D_View/_3D_/_3D_1.png

对模型导数的调用有什么问题吗?

解决方案

使用

Following the Model Derivative "Prepare a File for the Viewer" after I have successfully uploaded and converted file I call the manifest url

how do I then download the converted files in the manifest. If I only know the refrence urn? (i.e.) How would I get the coverted svf "urn:adsk.viewing:fs.file:dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6bW9kZWxkZXJpdmF0aXZlL0E1LnppcA/output/1/A5.svf"

or the thumbnail "urn:adsk.viewing:fs.file:dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6bW9kZWxkZXJpdmF0aXZlL0E1LnppcA/output/1/A5.svf.png01_thumb_200x200.png"

Is there a api call that can be used to return the actual location?

Edit: The end result is I want to create something like the [extractor] (http://extract.autodesk.io/) does. With all the files I need to run the viewer locally

Edit2:The Manifest I get back from call after fileUploda

Result{
  "type": "manifest",
  "hasThumbnail": "true",
  "status": "success",
  "progress": "complete",
  "region": "US",
  "urn": "dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6Z3JlZ2JpbWJ1Y2tldC9yYWNfYmFzaWNfc2FtcGxlX3Byb2plY3RfdGVzdC5ydnQ",
  "derivatives": [
    {
      "name": "rac_basic_sample_project_test.rvt",
      "hasThumbnail": "true",
      "status": "success",
      "progress": "complete",
      "outputType": "svf",
      "children": [
        {
          "name": "{3D}",
          "hasThumbnail": "true",
          "role": "3d",
          "status": "success",
          "type": "geometry",
          "progress": "complete",
          "children": [
            {
              "name": "{3D}",
              "role": "3d",
              "camera": [
             ...
              ],
              "status": "success",
              "type": "view",
              "progress": "complete"
            },
            {
              "type": "resource",
              "urn": "urn:adsk.viewing:fs.file:dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6Z3JlZ2JpbWJ1Y2tldC9yYWNfYmFzaWNfc2FtcGxlX3Byb2plY3RfdGVzdC5ydnQ/output/Resource/3D_View/_3D_/_3D_.svf",
              "role": "graphics",
              "mime": "application/autodesk-svf"
            },
            {
              "type": "resource",
              "role": "thumbnail",
              "urn": "urn:adsk.viewing:fs.file:dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6Z3JlZ2JpbWJ1Y2tldC9yYWNfYmFzaWNfc2FtcGxlX3Byb2plY3RfdGVzdC5ydnQ/output/Resource/3D_View/_3D_/_3D_1.png",
              "resolution": [
                100,
                100
              ],
              "mime": "image/png",
              "status": "success"
            },

The Request I try to send but get a 404

https://developer.api.autodesk.com/modelderivative/v2/designdata/dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6Z3JlZ2JpbWJ1Y2tldC9yYWNfYmFzaWNfc2FtcGxlX3Byb2plY3RfdGVzdC5ydnQ/manifest/urn:adsk.viewing:fs.file:dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6Z3JlZ2JpbWJ1Y2tldC9yYWNfYmFzaWNfc2FtcGxlX3Byb2plY3RfdGVzdC5ydnQ/output/Resource/3D_View/_3D_/_3D_1.png

Is there anything wrong with that call to modelderivative?

解决方案

Using the derivativeurn GET worked

I also had to make sure the derivativeUrn was encoded

(JAVA) derivativeUrn = URLEncoder.encode(derivativeUrn, "UTF-8");

这篇关于Autodesk Forge File Conversion如何下载清单文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆