与在ACC中翻译相比,模型导数翻译中的对象属性较少

发布于 2025-02-04 17:47:37 字数 368 浏览 1 评论 0 原文

如果我使用自己的Forge Viewer程序,该程序将IFC文件作为输入并在查看器中显示,我将获得诸如对于一个对象,这

但是,如果我将同一型号下载到我们的Autodesk Construction Cloud Hub中,我将获得

因此,换句话说,通过在ACC中使用查看器,我获得了更多的属性,这正是我想要的。使用模型导数API时,是否可以获得这些相同的属性?我该怎么做?

If I use my own Forge Viewer program which takes an IFC file as input and displays it in Viewer, I get properties like this for an object.

However, if I instead download the same model to our Autodesk Construction Cloud hub, I get properties like this.

So in other words, by using the viewer in ACC, I get much more properties which is exactly what I want. Would it be possible to get these same properties when using the model derivative API? How would I do this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

羅雙樹 2025-02-11 17:47:37

看起来您使用了旧版IFC转换方法。

要获得与Autodesk Docs(又称ACC文档)相同的结果,您必须将转换方法指定为现代或V3。

curl --location --request POST 'https://developer.api.autodesk.com/modelderivative/v2/designdata/job' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--header 'x-ads-force: true' \
--data-raw '{
    "input": {
        "urn": ""
    },
    "output": {
        "formats": [
            {
                "type": "svf",
                "views": [
                    "3d"
                ],
                "advanced": {
                    "conversionMethod": "v3" // or change it to modern
                }
            }
        ]
    }
}'

据我所知,现代和V3之间的主要区别在于,现代的人总是将脚作为长度单位。但另一方面,V3方法使用IFC文件本机长度单元。因此,选择它们中的任何一个都取决于您的用例。

参考:

It looks like you used the legacy IFC conversion method.

To get the same result as Autodesk Docs(a.k.a. ACC Docs), you must specify the conversion method to either modern or v3.

curl --location --request POST 'https://developer.api.autodesk.com/modelderivative/v2/designdata/job' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--header 'x-ads-force: true' \
--data-raw '{
    "input": {
        "urn": ""
    },
    "output": {
        "formats": [
            {
                "type": "svf",
                "views": [
                    "3d"
                ],
                "advanced": {
                    "conversionMethod": "v3" // or change it to modern
                }
            }
        ]
    }
}'

The main difference between modern and v3, as I know, is that the modern one uses feet as the length unit always. But on the other hand, the v3 method uses IFC file native length unit. So, choosing either of them depends on your use case.

ref: https://forge.autodesk.com/en/docs/model-derivative/v2/reference/http/job-POST/#body-structure

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文