【问题标题】:"Failed to trigger translation for this file." error when uploading a .zip file for the translation job“未能触发此文件的翻译。”为翻译作业上传 .zip 文件时出错
【发布时间】:2021-06-08 08:49:35
【问题描述】:

我正在做的是上传一个 .zip 文件并创建一个翻译工作。 .zip 文件包含多个 .CATPART 文件和一个 .CATPRODUCT 文件。

下面是我的有效载荷


{
    "input": {
        "urn": "dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6emlwX2ZpbGVzX3Rlc3RpbmcvQU1GMV8wNC56aXA",
        "rootFilename": "17J20-0851---B.1.CATProduct",
        "compressedUrn": true
    },
    "output": {
        "destination": {
            "region": "us"
        },
        "formats": [
            {
                        "type": "stl",
                        "advanced": 
                        {
                          "format" : "binary",
                          "exportColor":true,
                          "exportFileStructure" : "single"
                        }
            }
        ]
    }
}

但我不断收到错误“无法触发此文件的翻译。”

我什至尝试使用提供的postman collection 进行上传和翻译,但结果是一样的

但是我尝试将整个文件夹(当然不是 zip)上传到 Autodesk viewer 并且它可以工作。所以我认为文件集中没有问题。 可能是什么原因??

【问题讨论】:

    标签: autodesk-forge autodesk-viewer autodesk-model-derivative


    【解决方案1】:

    在@Adam 的回复的帮助下,我设法解决了这个问题,

    所以我把类型改为“svf”

     "type": "stl"
    

    并添加视图

      "views": [
                 "2d",
                  "3d"
               ]
    
    

    它奏效了。

    我的最终有效载荷是,

    {
        "input": {
            "urn": "dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6emlwX2ZpbGVzX3Rlc3RpbmcvQU1GMV8wNS56aXA",
            "rootFilename": "17J20-0851---B.1.CATProduct",
            "compressedUrn": true
        },
        "output": {
            "destination": {
                "region": "us"
            },
            "formats": [
                {
                            "type": "svf2",
                            "advanced": 
                            {
                              "format" : "binary",
                              "exportColor":true,
                              "exportFileStructure" : "single"
                            },
                            "views": [
                                "2d",
                                "3d"
                            ]
                }
            ]
        }
    }
    
    

    希望这对将来的任何人都有帮助。

    【讨论】:

      【解决方案2】:

      您可以在此处找到支持的翻译列表: https://forge.autodesk.com/en/docs/model-derivative/v2/developers_guide/supported-translations/

      很遗憾,您无法将 CATPART/CATPRODUCT 翻译成 STL - 您只能从中获取缩略图、SVF 或 SVF2

      将其翻译成 SVF 后,您还可以从中获取 OBJ。此选项适用于所有文件格式。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2021-01-08
        • 2016-11-15
        • 1970-01-01
        • 2020-11-05
        • 2017-08-13
        • 2019-03-11
        • 2021-06-06
        • 2021-04-11
        相关资源
        最近更新 更多