IFC转换术“现代”和“ v3”不工作

发布于 2025-02-07 04:07:16 字数 2306 浏览 2 评论 0原文

美好的一天,

我正在尝试使用“ Revit Engine”转换IFC文件。
我尝试了转换的“现代”和“ V3”。
https://forge.autodesk.com/en/docs/model-derivative/v2/reference/http/job-post/
SVF2输出>格式>高级

但始终使用“ NavisWorks引擎”。

这是请求标题:

Content-Type: application/json
x-ads-derivative-format: fallback
x-ads-force: true
Authorization: Bearer ...
User-Agent: PostmanRuntime/7.29.0
Accept: */*
Cache-Control: no-cache
Postman-Token: 60ace5f6-a41c-4314-b3de-e2057f4f8795
Host: developer.api.autodesk.com
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Length: 521
Cookie: PF=zlUuSLBAdPBYRrnJUXxwq1

这是请求正文:

{
    "input": {
        "urn": "dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6bmVhbmV4LXN0YWdpbmcxLTE2MTk2MTgyOTM4MjMvMTY1NTIxOTY2OTY5MS1BQzIwLUZaSy1IYXVzLmlmYw"
    },
    "output": {
        "destination": {
            "region": "us"
        },
        "formats": [
            {
                "type": "svf2",
                "views": [
                    "3d"
                ],
                "advanced": {
                    "conversionMethod": "v3"
                }
            }
        ]
    }
}

响应:

{
    "result": "success",
    "urn": "dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6bmVhbmV4LXN0YWdpbmcxLTE2MTk2MTgyOTM4MjMvMTY1NTIxOTY2OTY5MS1BQzIwLUZaSy1IYXVzLmlmYw",
    "acceptedJobs": {
        "output": {
            "destination": {
                "region": "us"
            },
            "formats": [
                {
                    "type": "svf2",
                    "views": [
                        "3d"
                    ],
                    "advanced": {
                        "conversionMethod": "v3"
                    }
                }
            ]
        }
    }
}

这是清单中的片段:

"name": "........ifc",
"progress": "complete",
"outputType": "svf2",
"properties": {
    "Document Information": {
        "Navisworks File Creator": "LcNwcLoaderPlugin:lcldifc",
        "IFC Application Name": "ARCHICAD-64",
        "IFC Application Version": "20.0.0",
        "IFC Organization": "GRAPHISOFT",
        "IFC Schema": "IFC4",
        "IFC Loader": "3"
    }
},
"status": "success"

有什么想法吗?

蒂亚·

沃尔夫冈(Tia Wolfgang)

Good Day,

I'm trying to convert an IFC file using the "Revit engine".
I've tried conversionMethods "modern" and "v3".
https://forge.autodesk.com/en/docs/model-derivative/v2/reference/http/job-POST/
SVF2 Output > Formats > advanced

But the "Navisworks engine" is always used.

Here is the Request Header:

Content-Type: application/json
x-ads-derivative-format: fallback
x-ads-force: true
Authorization: Bearer ...
User-Agent: PostmanRuntime/7.29.0
Accept: */*
Cache-Control: no-cache
Postman-Token: 60ace5f6-a41c-4314-b3de-e2057f4f8795
Host: developer.api.autodesk.com
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Length: 521
Cookie: PF=zlUuSLBAdPBYRrnJUXxwq1

Here is the Request Body:

{
    "input": {
        "urn": "dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6bmVhbmV4LXN0YWdpbmcxLTE2MTk2MTgyOTM4MjMvMTY1NTIxOTY2OTY5MS1BQzIwLUZaSy1IYXVzLmlmYw"
    },
    "output": {
        "destination": {
            "region": "us"
        },
        "formats": [
            {
                "type": "svf2",
                "views": [
                    "3d"
                ],
                "advanced": {
                    "conversionMethod": "v3"
                }
            }
        ]
    }
}

The Response:

{
    "result": "success",
    "urn": "dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6bmVhbmV4LXN0YWdpbmcxLTE2MTk2MTgyOTM4MjMvMTY1NTIxOTY2OTY5MS1BQzIwLUZaSy1IYXVzLmlmYw",
    "acceptedJobs": {
        "output": {
            "destination": {
                "region": "us"
            },
            "formats": [
                {
                    "type": "svf2",
                    "views": [
                        "3d"
                    ],
                    "advanced": {
                        "conversionMethod": "v3"
                    }
                }
            ]
        }
    }
}

And here is a snippet from the Manifest:

"name": "........ifc",
"progress": "complete",
"outputType": "svf2",
"properties": {
    "Document Information": {
        "Navisworks File Creator": "LcNwcLoaderPlugin:lcldifc",
        "IFC Application Name": "ARCHICAD-64",
        "IFC Application Version": "20.0.0",
        "IFC Organization": "GRAPHISOFT",
        "IFC Schema": "IFC4",
        "IFC Loader": "3"
    }
},
"status": "success"

Any ideas?

TIA

Wolfgang

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

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

发布评论

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

评论(2

野却迷人 2025-02-14 04:07:16

看来您错过了传递X-ADS-FORCE:true到请求标头。您能以这种方式称呼API吗?

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": "svf2",
                "views": [
                    "3d"
                ],
                "advanced": {
                    "conversionMethod": "v3"
                }
            }
        ]
    }
}'

It looks like you missed passing x-ads-force: true to the request header. Could you call the API like this way?

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": "svf2",
                "views": [
                    "3d"
                ],
                "advanced": {
                    "conversionMethod": "v3"
                }
            }
        ]
    }
}'
习ぎ惯性依靠 2025-02-14 04:07:16

一切都按设计工作,但是在此问题上尚不清楚文档。

该文件说,REVIT IFC加载器用于现代和V3:

另外,此博客文章提到将使用Revit代替NavisWorks:
https://forge.autodesk.com/blog/model-model-model-model-model-model--model--model--model-nothrog-派生 - ifc-pipeline-call-change

因此,您希望属性中的外部ID在使用现代或V3时为vert元素ID或唯一ID。

但是,所有IFC转换方法都在Forge Env上的NavisWorks的云版本上运行。
现代和V3 IFC转换方法或加载程序均基于与NavisWorks集成的修订技术,因此它们被称为基于Revit的IFC加载器。
您可以在NavisWorks桌面上看到类似的东西。

您可以检查清单中使用了哪种转换方法(> “ ifc loader”:“ 3”)。

Everything works as designed, but the documentation is not clear on this issue.

The documentation says that the Revit IFC Loader is used for modern and V3:
POST translation IFC options

Also, this blog post mentions that Revit will be used instead of Navisworks:
https://forge.autodesk.com/blog/model-derivative-ifc-pipeline-call-change

So you would expect that the external IDs in the properties to be Revit element IDs or uniqueIDs when using modern or V3.

But all IFC conversion methods are running on the Cloud version of Navisworks on Forge env.
Both modern and v3 IFC conversion methods or loaders are based on the Revit technics integrated with Navisworks, so they are called Revit-based IFC loaders.
You can see a similar thing on Navisworks Desktop.
Navisworks IFC reader options

You can check which conversion method was used in the Manifest (> "IFC Loader": "3").

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