使用 3rd 方云存储或本地存储时,Model Derivative API 将翻译后的 .SVF 文件存储在哪里
Where does Model Derivative API store the translated .SVF files when using 3rd party cloud storage or local storage
我目前正在尝试将 Autodesk Forge 集成到我的应用程序中,需要说明文件的存储位置。我知道我们可以使用第三方云存储(DropBox、Google 驱动器)或本地存储来存储模型文件(.ifc、.rvt 等)但是,我需要了解 .svf 文件在哪里使用此类第 3 方存储时,在翻译后存储。它们是存储在模型文件最初存储的位置(云或本地存储),还是存储在 AutoDesk 及其帐户提供的存储空间 space 中?据我所知,如果我们将模型文件上传到 AutoDesk BIM360 Data Storage,翻译后的文件也将存储在同一位置。那么当我们使用第三方存储时它是如何工作的呢?
提前致谢!
翻译后的emits(衍生品)存储在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取回衍生品,你可以从那里把它们持久化到你自己的存储中。
我目前正在尝试将 Autodesk Forge 集成到我的应用程序中,需要说明文件的存储位置。我知道我们可以使用第三方云存储(DropBox、Google 驱动器)或本地存储来存储模型文件(.ifc、.rvt 等)但是,我需要了解 .svf 文件在哪里使用此类第 3 方存储时,在翻译后存储。它们是存储在模型文件最初存储的位置(云或本地存储),还是存储在 AutoDesk 及其帐户提供的存储空间 space 中?据我所知,如果我们将模型文件上传到 AutoDesk BIM360 Data Storage,翻译后的文件也将存储在同一位置。那么当我们使用第三方存储时它是如何工作的呢?
提前致谢!
翻译后的emits(衍生品)存储在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取回衍生品,你可以从那里把它们持久化到你自己的存储中。