简体   繁体   English

无法从 Autodesk BIM360 获取自定义属性数据以进行数据管理 API

[英]Not able to get custom attribute data from Autodesk BIM360 for data management API

Not able to get custom attribute data from Autodesk BIM360 for data management API - https://forge.autodesk.com/en/docs/data/v2/reference/http/projects-project_id-folders-folder_id-contents-GET/无法从 Autodesk BIM360 获取自定义属性数据以进行数据管理 API - https://forge.autodesk.com/en/docs/data/v2/reference/http/projects-project_id-folders-folder_id-contents-GET/

When I was trying to get all data available in a specific project with a specific folder, but I didn't get the custom attribute data in that.当我试图获取具有特定文件夹的特定项目中的所有可用数据时,但我没有获得其中的自定义属性数据。 I also need custom attribute data for the file included in that folder.我还需要该文件夹中包含的文件的自定义属性数据。 Whereas I am able to get only data and included values with missing custom attribute values.而我只能获取数据和包含缺少自定义属性值的值。 Also in the API custom attribute values are missing. API 中也缺少自定义属性值。 please find it below.请在下面找到它。

data": [
    {
      "type": "folders",
      "id": "urn:adsk.wipprod:dm.folder:hC6k4hndRWaeIVhIjvHu8w",
      "attributes": {
        "name": "Plans",
        "displayName": "Plans",
        "createTime": "2015-11-27T11:11:23.000Z",
        "createUserId": "BW9RM76WZBGL",
        "createUserName": "John Doe",
        "lastModifiedTime": "2015-11-27T11:11:27.000Z",
        "lastModifiedTimeRollup": "2015-11-27T11:11:27.000Z",
        "lastModifiedUserId": "BW9RM76WZBGL",
        "lastModifiedUserName": "John Doe",
        "path": "/dm-test-root/f0cb4ba0-7722-0133-9814-0eeb7bad1e3b",
        "objectCount": 4,
        "hidden": false,
        "extension": {
          "type": "folders:autodesk.bim360:Folder",
          "version": "1.0",
          "schema": {
            "href": "/schema/v1/versions/folders%3Aautodesk.bim360%3AFolder-1.0"
          },
          "data": {
            "allowedTypes": [
              "folders",
              "items:autodesk.bim360:File",
              "items:autodesk.bim360:Document",
              "items:autodesk.bim360:TitleBlock"
            ],
            "visibleTypes": [
              "folders",
              "items:autodesk.bim360:Document"
            ],
            "namingStandardIds": []
          }
        }

I would like to save custom attributes with their values also.我也想用它们的值保存自定义属性。 Please find the image of the custom attribute with their values in the format of rows and colums请以行和列的格式查找自定义属性的图像及其值

To get custom attributes of the document in BIM360, you will need to use another endpoint (Version:Batch:Get).要在 BIM360 中获取文档的自定义属性,您需要使用另一个端点 (Version:Batch:Get)。 This blog tells more.这个博客告诉更多。 https://forge.autodesk.com/blog/custom-attributes-apis-bim-360-document-are-now-public-beta https://forge.autodesk.com/blog/custom-attributes-apis-bim-360-document-are-now-public-beta

While please note, since March 23, 2021, in the newly created project, custom attributes definitions are created in project level (previously, in folder level), although you could still use the endpoint above to access the custom attributes, there is a gap that no endpoint yet to get definitions of project level.虽然请注意,自 2021 年 3 月 23 日起,在新创建的项目中,自定义属性定义是在项目级别(以前在文件夹级别)创建的,尽管您仍然可以使用上面的端点访问自定义属性,但还是有差距还没有端点来获得项目级别的定义。 This blog tells more: https://forge.autodesk.com/blog/custom-attributes-projects-created-and-after-march-23-2021该博客讲述了更多信息: https://forge.autodesk.com/blog/custom-attributes-projects-created-and-after-march-23-2021

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM