简体   繁体   English

Autodesk Forge BIM 360 API-激活服务类型

[英]Autodesk Forge BIM 360 API - Activating Service Types

We have been using the Forge API to automatically set up projects in BIM 360, but seem unable to find a way to automatically activate a Service (Field, Glue, etc.). 我们一直在使用Forge API在BIM 360中自动设置项目,但是似乎找不到自动激活服务(字段,胶水等)的方法。

Intuitively, I would have thought that the "service_types" attribute would be the way to do this, but the services are not activating. 凭直觉,我会以为“ service_types”属性将是执行此操作的方法,但是服务未激活。

1) What does the "service_types" attribute actually do? 1)“ service_types”属性实际上是做什么的?

2) If possible, how do we activate a project Service using the Forge API (Most specifically Field)? 2)如果可能,我们如何使用Forge API(最明确的字段)激活项目服务?

Thank you kindly, 非常感谢你,

Re. 回覆。 #1 Your understanding of service_type is correct. #1您对service_type的理解是正确的。

Re. 回覆。 #2 Could you try below after you create a project? #2创建项目后,您可以在下面尝试吗?
https://developer.autodesk.com/en/docs/bim360/v1/reference/http/projects-project_id-users-POST/ https://developer.autodesk.com/zh-CN/docs/bim360/v1/reference/http/projects-project_id-users-POST/

eg, with the body like this: { "role": "project_admin", "service_type": "field", "company_id": "77e4444e-5dad-46a2-ad29-555cc00452a0", "email": "my.name@autodesk.com" } 例如,使用这样的正文:{“ role”:“ project_admin”,“ service_type”:“ field”,“ company_id”:“ 77e4444e-5dad-46a2-ad29-555cc00452a0”,“ email”:“ my.name @ autodesk.com“}

I verified that having service_type in project creation itself does not have effect. 我验证了在项目创建过程中使用service_type本身不会起作用。 And the documentation is a little confusing. 而且文档有点混乱。 But if you use the above method, it works. 但是,如果您使用上述方法,它会起作用。 Note that you need to have Field license with you account. 请注意,您的帐户需要具有现场许可证。

There is also a tutorial page: https://developer.autodesk.com/en/docs/bim360/v1/tutorials/activate-service/ 还有一个教程页面: https : //developer.autodesk.com/en/docs/bim360/v1/tutorials/activate-service/

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

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