sqlite属性db并获取{urn}/metadata/{guid}/属性似乎返回了一些不匹配的dbids(objectids)

发布于 2025-02-03 03:49:18 字数 1862 浏览 1 评论 0原文

我尝试获取具有特定属性的NavisWorks项目的dbids。

使用默认设置将NWD转换为SVF2。

当我查询属性db时,我的dbids与从{urn}/metadata/{guid}/properties endpoint返回的dbids不同。

查询结果:

相应的JSON数据:

[{
    "objectid": 11,
    "name": "3D Solid",
    "externalId": "0/1/0",
    "properties": {
        "Neanex Connector": {
            "ibcNAME": "Cone-1",
            "ibcGUID": "6453c4c067d1476db9c68c4066e291c4"
        }
    }
},
{
    "objectid": 2,
    "name": "SomeSolids-1.nwd",
    "externalId": "0",
    "properties": {
        "Neanex Connector": {
            "ibcNAME": "SomeSolids-1",
            "ibcGUID": "2613704afaeb4e68bcb1600a737df0b7"
        }
    }
},
{
    "objectid": 27,
    "name": "3D Solid",
    "externalId": "1/5/0",
    "properties": {
        "Neanex Connector": {
            "ibcNAME": "Wedge-2",
            "ibcGUID": "25d5fb2daebe4a3fb3eb1c671012d5f3"
        }
    }
},
{
    "objectid": 3,
    "name": "SomeSolids-2.nwd",
    "externalId": "1",
    "properties": {
        "Neanex Connector": {
            "ibcNAME": "SomeSolids-2",
            "ibcGUID": "425212b48a45457f9f9d5192e84bb0a4"
        }
    }
}]

摘要:

SQLITE DBID外部IDJSONDBID指南
2022613704AFAEB4E68BCB1600A737DF0B7
60/1/1/1/1/1/1/1/1
27与结果=45457F9F9D5192E84BB0A4
271/5/0查询”25D5FB2DAEBE4A3FB3EB1C671012D5F3

哪些dbid是正确的?

为什么有区别?

关于

沃尔夫冈

I try to get the dbIds of Navisworks items which have a specific property.

The NWDs get translated to SVF2, using the default settings.

When I query the property DB, I get different dbIds than the dbIds that are returned from the {urn}/metadata/{guid}/properties endpoint.

Query with results:query with results

Snippet of the corresponding json data:

[{
    "objectid": 11,
    "name": "3D Solid",
    "externalId": "0/1/0",
    "properties": {
        "Neanex Connector": {
            "ibcNAME": "Cone-1",
            "ibcGUID": "6453c4c067d1476db9c68c4066e291c4"
        }
    }
},
{
    "objectid": 2,
    "name": "SomeSolids-1.nwd",
    "externalId": "0",
    "properties": {
        "Neanex Connector": {
            "ibcNAME": "SomeSolids-1",
            "ibcGUID": "2613704afaeb4e68bcb1600a737df0b7"
        }
    }
},
{
    "objectid": 27,
    "name": "3D Solid",
    "externalId": "1/5/0",
    "properties": {
        "Neanex Connector": {
            "ibcNAME": "Wedge-2",
            "ibcGUID": "25d5fb2daebe4a3fb3eb1c671012d5f3"
        }
    }
},
{
    "objectid": 3,
    "name": "SomeSolids-2.nwd",
    "externalId": "1",
    "properties": {
        "Neanex Connector": {
            "ibcNAME": "SomeSolids-2",
            "ibcGUID": "425212b48a45457f9f9d5192e84bb0a4"
        }
    }
}]

Summary:

SQLite dbIdExternal IDjson dbIdGUID
2022613704afaeb4e68bcb1600a737df0b7
60/1/0116453c4c067d1476db9c68c4066e291c4
1513425212b48a45457f9f9d5192e84bb0a4
271/5/02725d5fb2daebe4a3fb3eb1c671012d5f3

Which dbIds are the correct ones?

Why the differences?

Regards

Wolfgang

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

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

发布评论

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

评论(2

太傻旳人生 2025-02-10 03:49:18

众所周知,SQLite DB中的dbids将是SVF dbids。如果要在转换为SVF2之后获得SVF dbids,则需要使用额外的标头X-ADS-derivivative-Format:halldback来调用以下API。否则,您从属性API获得的objectid将是SVF2 dbids。

  • ​Model-derivative/v2/referent/http/urn-metadata-guid-properties-get/“ rel =“ nofollow noreferrer”> https://forge.autodesk.com/en/docs/docs/docs/model-derivelivect/model-derivivect/model-derivivect/ http/urn-metadata-guid-properties-get/

As I know, the dbIds in SQLite DB will be svf dbIds. If you want to get svf dbIds after translating to svf2, you will need to call the below APIs with an extra header x-ads-derivative-format: fallback. Otherwise, the objectIds you got from the properties API will be svf2 dbIds.

蓬勃野心 2025-02-10 03:49:18

两个至关重要的信息:

  1. 有“旧的” SVF dbids和更新的SVF2 dbids,请参阅:

  2. Sqlite性质中的dbids db 始终'旧'''''svf dbids

使用标头x-ads-derivivativative-Format 始终 'old'''''' SVF dbids。

笔记:
如果您将此标头与一个导数(urn)一起使用,则只要您引用相同的衍生物,就必须在以下端点上始终如一地使用它。

  • 邮政作业(用于OBJ输出)
  • 获取{urn}/metadata/{guid}
  • 获取{urn}/metadata/{guid}/properties/properties

Two crucial pieces of information:

  1. There are 'old' SVF dbIds, and newer SVF2 dbIds, see:

  2. The dbIds in the SQLite properties DB are always 'old' SVF dbIds

Using the header x-ads-derivative-format: fallback works fine, and you always get the 'old' SVF dbIds.

Note:
If you use this header with one derivative (URN), you must use it consistently across the following endpoints, whenever you reference the same derivative.

  • POST job (for OBJ output)
  • GET {urn}/metadata/{guid}
  • GET {urn}/metadata/{guid}/properties
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文