简体   繁体   English

Autodesk BIM360:创建文件夹并管理权限

[英]Autodesk BIM360: Create Folder and manage permission

I want to create a new Folder in my BIM360 Project by using the C# SDK. 我想使用C#SDK在BIM360项目中创建一个新文件夹。 Unfortunately, I do not manage to get a ResourceId to define my parent folder. 不幸的是,我无法获取ResourceId来定义我的父文件夹。 I tried it like this: 我这样尝试过:

        CreateFolder folder = new CreateFolder();
        string root_folder = "...";
        folder.Data.Relationships.Parent.Data.Id = root_folder;

But the parent id must be from type ResourceId and I only have a string which contains the id. 但是父ID必须来自ResourceId类型,并且我只有一个包含ID的字符串。 Until now, I have not found a conversion between string and resource id(ResourceId only supports the standard-constructor) 到目前为止,我还没有找到字符串和资源ID之间的转换(ResourceId仅支持standard-constructor)

I have also tried to make a GET request on the root folder to receive all its information. 我也尝试过在根文件夹上发出GET请求以接收其所有信息。 But there I also receive an id as a string. 但是在这里我也收到一个ID作为字符串。 So how am I supposed to create a resource id for my folder? 那么我应该如何为我的文件夹创建资源ID?

And just one little additional question: If I succeed in creating a folder, how can I manage the permission? 还有一个小问题:如果我成功创建了一个文件夹,该如何管理权限? Is it even possible to do so via webservice? 甚至可以通过网络服务这样做吗?

Thanks in advance 提前致谢

I want to create a new Folder in my BIM360 Project by using the C# SDK 我想使用C#SDK在BIM360项目中创建一个新文件夹

As of August/2017, to create a BIM 360 Docs folder you need to POST Command with this JSON body . 自2017年8月起,要创建BIM 360 Docs文件夹,您需要使用JSON主体 POST命令 In any case, the resource id is the parent folder, it must be another folder, either one default folder on BIM 360 Docs (eg Plans) or topFolder on BIM 360 Team. 无论如何, 资源ID是父文件夹,必须是另一个文件夹,即BIM 360 Docs(例如,Plans)上的一个默认文件夹或BIM 360 Team上的topFolder

But there I also receive an id as a string. 但是在这里我也收到一个ID作为字符串。 So how am I supposed to create a resource id for my folder? 那么我应该如何为我的文件夹创建资源ID?

The parent full href can be spliced by / (forward slash) so you can access the parent folder. 父完整href可以由/(正斜杠)进行拼接,因此您可以访问父文件夹。 This sample demonstrates it . 此示例对此进行了演示

If I succeed in creating a folder, how can I manage the permission? 如果成功创建文件夹,如何管理权限? Is it even possible to do so via webservice? 甚至可以通过网络服务这样做吗?

Again, as of August/2017, we cannot manage permissions by API. 同样,自2017年8月起,我们无法通过API管理权限。

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

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