【发布时间】:2016-12-01 02:57:36
【问题描述】:
在 Autodesk 大学,我们能够使用 forge API 来使用 models.autodesk.io 中的模型,并通过查看器 API 在网页中显示它。
我希望能够上传我们自己的 .rvt 文件以供使用,这样我就可以为我的公司制作一个更具上下文意义的演示。
每次最后上传都会失败,并显示“???”的错误。
我要求我们的人确保文件中没有链接,而且它的重量很轻,所以我不确定它为什么会失败。
我尝试通过一系列 REST 调用(使用 POSTman)“手动”使用模型衍生 API,但也没有运气,但我的响应中提供了更多信息:
{
"type": "manifest",
"hasThumbnail": "false",
"status": "failed",
"progress": "complete",
"region": "US",
"urn": "dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6d2VndGVzdGJ1Y2tldC9Pd2luZ3NNaWxscy5ydnQ",
"version": "1.0",
"derivatives": [
{
"name": "OwingsMills.rvt",
"hasThumbnail": "false",
"status": "failed",
"progress": "complete",
"messages": [
{
"type": "error",
"code": "Revit-UnsupportedFileType",
"message": "<message>The file is not a Revit file or is not a supported version.</message>"
},
{
"type": "error",
"message": "Possibly recoverable warning exit code from extractor: -536870935",
"code": "TranslationWorker-RecoverableInternalFailure"
}
],
"outputType": "svf"
}
]
}
更新: 尝试将我的文件转换为 .ifc 并收到更神秘的错误消息...请参阅下面的我的 json 响应:
{
"type": "manifest",
"hasThumbnail": "false",
"status": "failed",
"progress": "complete",
"region": "US",
"urn": "dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6d2VndGVzdGJ1Y2tldC9Pd2luZ3NNaWxscy5pZmM",
"version": "1.0",
"derivatives": [
{
"name": "LMV Bubble",
"hasThumbnail": "false",
"status": "failed",
"progress": "complete",
"messages": [
{
"type": "error",
"message": "Unrecoverable exit code from extractor: -1073741829",
"code": "TranslationWorker-InternalFailure"
}
],
"outputType": "svf"
}
]
}
【问题讨论】:
标签: autodesk-forge