APS Design Automation适配Revit云模型:commandLine配置咨询
Design Automation for Revit 云模型访问的CommandLine调整与请求体验证
问题解答
CommandLine调整: 是的,直接移除所有和rvtFile相关的参数即可。因为你是通过
inputJson里的projectGuid/modelGuid来加载Revit云模型,不需要本地rvt文件作为输入参数,所以从命令行和参数列表中删掉rvtFile相关内容完全正确,你当前的commandLine已经符合要求。请求体正确性验证:
- 整体结构没问题,但有一处需要修正:
inputJson的required设为false不合理,因为这个参数是传递云模型标识的关键,必须设为true,否则任务可能因缺少必要信息失败。 verb: "get"是正确的,只要确保该参数能正确获取到包含云模型GUID的JSON文件即可。- 引擎版本和AppBundle的配置格式符合规范。
- 整体结构没问题,但有一处需要修正:
修正后的请求体示例
{ "id": "UpdateParametersActivity", "commandLine": [ "$(engine.path)\\revitcoreconsole.exe /al \"$(appbundles[DA_UpdateParameters].path)\"" ], "parameters": { "inputJson": { "verb": "get", "description":"input json with project and model GUIDs", "localName":"params.json", "ondemand": false, "required" :true, "zip": false } }, "engine": "Autodesk.Revit+2022", "appbundles": [ "ME_BimViewer_DES.DA_UpdateParameters+test" ], "description": "Update Parameters from Revit Cloud Model." }
内容的提问来源于stack exchange,提问作者anthip
相关产品推荐
相关产品推荐

