0

我能够GET从 BIM 360 中获取项目的信息,但我无法获取MarkupsIssues它相关的信息。是否有可能在.NET上获得这个?

我已获得该项目的信息和有关其版本的信息。但是,我正在寻找的信息也没有。

我使用以下 URL 获取的信息item

https://developer.api.autodesk.com/data/v1/projects/:project_id/items/:item_id

我还使用以下 URL 来获取 a versionfrom的信息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"
      }
    }
  },

(代码行数比上面显示的要多,但这些代码部分包含的信息最多)。

4

1 回答 1

1

您可以按照此处的教程检索项目级别问题。

基本上,您仍在从给定容器中检索所有问题,然后根据targer_urn属性过滤它们以将它们与您的项目相关联。

这是我们的代码示例:https ://github.com/Autodesk-Forge/bim360-csharp-issues

随着我们即将发布的 BIM360 关系服务和标记 API 的发布(请继续关注我们的博客以了解其发布日期),您将能够创建对象之间的关系,并在针对给定项目查询问题方面采用更直接的方法.

于 2019-02-15T03:07:48.727 回答