0

在我成功上传和转换文件后,按照模型衍生“为查看器准备文件”,我调用清单 url

然后如何在清单中下载转换后的文件。如果我只知道参考骨灰盒?(即)我将如何获得隐蔽的 svf "urn:adsk.viewing:fs.file:dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6bW9kZWxkZXJpdmF0aXZlL0E1LnppcA/output/1/A5.svf"

或缩略图“urn:adsk.viewing:fs.file:dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6bW9kZWxkZXJpdmF0aXZlL0E1LnppcA/output/1/A5.svf.png01_thumb_200x200.png”

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

编辑:最终结果是我想创建类似 [extractor] ( http://extract.autodesk.io/ ) 的东西。有了我需要在本地运行查看器的所有文件

Edit2:我在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"
            },

我尝试发送但收到 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

对modelderivative的调用有什么问题吗?

4

3 回答 3

0

也可以暂时看一下NPM View & Data Package的实现。它仍在使用 v1 API 端点,但我们目前正在努力为 v2 端点上的多种编程语言提供包装器

于 2016-07-18T17:34:53.620 回答
0

使用导数 GET工作

我还必须确保导数Urn 已编码

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

于 2016-07-18T20:49:16.900 回答
0

Cyrille Fauvel 实现了这一点,所以它在他的 GitHub 存储库中:

https://github.com/cyrillef/extract.autodesk.io

https://github.com/cyrillef/extract-php-view.and.data.api

于 2016-07-18T17:09:35.607 回答