我目前正在尝试将Autodesk Forge集成到我的应用程序中,并且需要澄清文件的存储位置。我知道我们可以使用第三方云存储(DropBox,Google Drive)或本地存储来存储模型文件(.ifc,.rvt等)。但是,我需要了解将.svf文件存储在哪里之后使用此类第三方存储时进行翻译。它们是存储在最初存储模型文件的位置(云存储还是本地存储),还是存储在AutoDesk使用其帐户提供的存储空间中?据我所知,如果我们将模型文件上传到AutoDesk BIM360数据存储,则转换后的文件也将存储在同一位置。那么当我们使用第三方存储时,它如何工作?
预先感谢!
答案 0 :(得分:1)
翻译后的发射(衍生物)存储在Forge OSS中,您可以查询manifest endpoint来枚举它们以获取下载它们的路径。例如:
"derivatives": [
{
"name": "A5.iam",
"hasThumbnail": "true",
"status": "success",
"progress": "99% complete",
"outputType": "svf",
"children": [
{
"guid": "d998268f-eeb4-da87-0db4-c5dbbc4926d0",
"type": "geometry",
"role": "3d",
"name": "Scene",
"status": "success",
"progress": "99% complete",
"hasThumbnail": "true",
"children": [
{
"guid": "4f981e94-8241-4eaf-b08b-cd337c6b8b1f",
"type": "resource",
"progress": "99% complete",
"role": "graphics",
"mime": "application/autodesk-svf"
},
{
"guid": "d718eb7e-fa8a-42f9-8b32-e323c0fbea0c",
"type": "resource",
"urn": "urn:adsk.viewing:fs.file:dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6bW9kZWxkZXJpdmF0aXZlL0E1LnppcA/output/1/A5.svf.png01_thumb_400x400.png",
"resolution": [
400.0,
400.0
],
"mime": "image/png",
"role": "thumbnail"
},
{
"guid": "34dc340b-835f-47f7-9da5-b8219aefe741",
"type": "resource",
"urn": "urn:adsk.viewing:fs.file:dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6bW9kZWxkZXJpdmF0aXZlL0E1LnppcA/output/1/A5.svf.png01_thumb_200x200.png",
"resolution": [
200.0,
200.0
],
"mime": "image/png",
"role": "thumbnail"
},
{
"guid": "299c6ba6-650e-423e-bbd6-3aaff44ee104",
"type": "resource",
"urn": "urn:adsk.viewing:fs.file:dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6bW9kZWxkZXJpdmF0aXZlL0E1LnppcA/output/1/A5.svf.png01_thumb_100x100.png",
"resolution": [
100.0,
100.0
],
"mime": "image/png",
"role": "thumbnail"
}
]
}
]
}
]
可以参考示例代码here来检索导数,然后可以从那里将其持久化到自己的存储中。