是否有方法将对象从存储桶复制到Revit Design Automation本地路径



我创建了一个类似bucket的(Python(:

payload = {'bucketKey' : bucketname,'policyKey' : 'transient'}

resp = requests.post(Forge_BASE_URL+'/oss/v2/buckets', headers={'Authorization': config.token,'Content-Type':'application/json'},json=payload)

然后上传一个文件到创建的bucket中:

url = 'https://developer.api.autodesk.com/oss/v2/buckets/'+bucketname+'/objects/'+encodedfilename

resp = requests.put(url, headers={'Authorization': config.token,'Content-Type' : 'application/octet-stream','Content-Length' : str(filesize)},data= open(modelfilePath + filename, 'rb'))

如何将对象从bucket下载到Revit Design Automation引擎的本地路径?Revit Design Automation引擎的本地路径类似于C#代码中使用的T:AcesJobsjob_id

欢迎使用curl命令或Python代码。

实际上,设计自动化服务的责任是从提供的(可读的(URL下载所有输入,在安全的沙盒环境中运行活动,然后将所有输出上传到提供的(可写的(URL。

如果你的输入文件在Forge数据管理桶中,你可以为它获得一个临时签名的URL,并将其用作活动输入的URL。您还可以创建可写签名的URL,然后Design Automation活动可以将结果上载到这些URL。有关更多详细信息,请参阅此博客文章。

最新更新