我能够GET
来自BIM 360的物品信息,但是我无法获取与其关联的Markups
和Issues
。是否可以在.NET上获取此信息?
我同时获得了该商品的信息和有关其版本的信息。但是,我都找不到所需的信息。
我使用以下URL获取item
的信息:
https://developer.api.autodesk.com/data/v1/projects/:project_id/items/:item_id
我还使用以下URL从version
获取item
的信息:
https://developer.api.autodesk.com/data/v1/projects/:project_id/versions/:version_id
商品信息结果:
"included": [
{
"type": "versions",
"id": "urn:adsk.wipprod:fs.file:vf.76kuKMRdTUGQv7hdLKMf6Q?version=1",
"attributes": {
"name": "AAA - My PDF file.pdf",
"displayName": "AAA - My PDF file.pdf",
"createTime": "2019-02-14T17:00:34Z",
"createUserId": "9KMFMLS9T2Q2",
"createUserName": "Nathan Hurley",
"lastModifiedTime": "2019-02-14T17:00:45Z",
"lastModifiedUserId": "9KMFMLS9T2Q2",
"lastModifiedUserName": "Nathan Hurley",
"versionNumber": 1,
"fileType": "pdf",
"extension": {
"type": "versions:autodesk.bim360:File",
"version": "1.0",
"schema": {
"href": "https://developer.api.autodesk.com/schema/v1/versions/versions:autodesk.bim360:File-1.0"
},
"data": {
"processState": "PROCESSING_COMPLETE",
"extractionState": "SUCCESS",
"splittingState": "NOT_SPLIT",
"reviewState": "NOT_IN_REVIEW",
"revisionDisplayLabel": "1",
"sourceFileName": "AAA - My PDF file.pdf"
}
}
},
版本信息结果:
{
"type": "versions",
"id": ****************************************,
"attributes": {
"name": "AAA - My PDF file.pdf",
"displayName": "AAA - My PDF file.pdf",
"createTime": *******************,
"createUserId": *******************,
"createUserName": "Nathan Hurley",
"lastModifiedTime": *******************,
"lastModifiedUserId": *******************,
"lastModifiedUserName": "Nathan Hurley",
"versionNumber": 1,
"fileType": "pdf",
"extension": {
"type": "versions:autodesk.bim360:File",
"version": "1.0",
"schema": {
"href": "https://developer.api.autodesk.com/schema/v1/versions/versions:autodesk.bim360:File-1.0"
},
"data": {
"processState": "PROCESSING_COMPLETE",
"extractionState": "SUCCESS",
"splittingState": "NOT_SPLIT",
"reviewState": "NOT_IN_REVIEW",
"revisionDisplayLabel": "1",
"sourceFileName": "AAA - My PDF file.pdf"
}
}
},
(比上面显示的代码行多,但是这些部分包含最多的信息)。
答案 0 :(得分:1)
您可以按照教程here来检索项目级别的问题。
基本上,您仍在从给定容器中检索所有问题,然后根据targer_urn
属性对其进行过滤,以将其与您的商品相关联。
这是我们的代码示例:https://github.com/Autodesk-Forge/bim360-csharp-issues
随着我们即将发布的BIM360关系服务和标记API的发布(敬请关注我们的blog的发布日期),您将能够在对象之间创建关系,并寻求更直接的方式针对给定项目的问题的查询。