【问题标题】:How do you obtain the itemId to upload a file into BIM 360?如何获取 itemId 以将文件上传到 BIM 360?
【发布时间】:2019-05-20 05:36:04
【问题描述】:

https://forge.autodesk.com/blog/upload-files-bim-360-c

按照本教程,如何获取中的itemId 4.创建版本部分?因为只有在文件夹中已存在项目时才能获取 itemId。是我错了还是我遗漏了什么?

【问题讨论】:

    标签: .net autodesk-forge autodesk-bim360


    【解决方案1】:

    是的,你只能从 Hubs->Projects->Folders->Items 中获取现有的 itemId,https://forge.autodesk.com/en/docs/data/v2/tutorials/upload-file/ 的教程中提到了创建第一个版本的 item 或更新现有 item 的新版本的方法。并查看http://learnforge.autodesk.io/#/datamanagement/hubs/readme 获取详细信息和代码示例以获取该项目。

    【讨论】:

      【解决方案2】:

      按照下面链接中的代码,如果文件夹中不存在新项目,我可以创建一个新项目,如果有,我可以创建一个新版本。

      https://github.com/Autodesk-Forge/data.management-csharp-sample/blob/b3ab49a41f6e20161d0c5d707f2e56bc7e3e27ad/forgeSample/Controllers/DataManagementController.cs#L324

      【讨论】:

        猜你喜欢
        • 2020-11-23
        • 2020-05-08
        • 2021-10-27
        • 2021-06-06
        • 2020-08-08
        • 1970-01-01
        • 2018-06-17
        • 2021-08-19
        • 2019-03-06
        相关资源
        最近更新 更多