Forge Design Automation for Revit fails: Error: The path is empty. (Parameter 'path')

Forge Design Automation for Revit fails: Error: The path is empty. (Parameter 'path')

当我 post 我的工作项时,我收到一个 failedInstruction 错误。在错误报告中,它似乎因以下原因而失败:“错误:路径为空。(参数 'path')”。我不太确定这是指 Revit 文件路径还是 appbundle 路径。如何为 Revit 输入文件和 AppBundle 定义 'path' 变量?为什么它在我的案例中不见了?

错误:路径为空。 (参数'path')

这是完整的错误报告:

[05/23/2022 20:29:06] Job information:
"CommandLine":[
  " \"$(engine.path)\\revitcoreconsole.exe /i \"$(args[rvtFile].path)\" /al \"$(appbundles[Revit2ProtoExporter].path)\"\" "
]
"Settings":{
  "dasreportfaileduploadoptional": {
    "value": "true",
    "isEnvironmentVariable": true
  }
}
"Id":"fa2e89a3c85f41a79fd88260f3226208"
"ActivityId":"WDQIfAV8PqNa9XSKPmv6MDu3xAtLGfXI.Revit2ProtoExporterActivity+OV"
"Engine.Id":"Autodesk.Revit_2022!84"
"Apps": [
"App.Id":"WDQIfAV8PqNa9XSKPmv6MDu3xAtLGfXI.Revit2ProtoExporter!72"
]
"BoundArguments":{
  "rvtFile": {
    "localName": "rac_basic_sample_project.rvt",
    "url": "https://developer.api.autodesk.com/Masked:kRW0jj8ZUtU7QNO0DXCukH2NDJ4=",
    "headers": {
      "authorization": "Masked:lzecgHABfhiJUIYpcsTkOjZZWFo="
    }
  },
  "params": {
    "localName": "params.json",
    "url": "data:application/json,{'ViewName': {3D}}"
  },
  "result": {
    "localName": "result.avr",
    "url": "https://staging-appliedvrabs-pa.sandbox.googleapis.com/Masked:CUBqvnZeP60rTw+WOsCYg+6qY4w=",
    "headers": {
      "authorization": "Masked:nrdnIil6wykGG+lQSU3nx9c04hc="
    },
    "verb": "put"
  },
  "onProgress": {
    "ondemand": true,
    "url": "https://wlnr5sjl3a.execute-api.us-east-1.amazonaws.com/Masked:UK/Z3b5X3xUWxXiH6C9r9i9UlRU=",
    "headers": {
      "Content-Type": "application/json",
      "x-das-authorize": "awssigv4(us-east-1)",
      "x-ads-token-data": "{\"access_token\":{\"client_id\":\"WDQIfAV8PqNa9XSKPmv6MDu3xAtLGfXI\"},\"scope\":\"code:all data:write data:read bucket:create bucket:delete\",\"expires_in\":3599,\"client_id\":\"WDQIfAV8PqNa9XSKPmv6MDu3xAtLGfXI\"}",
      "x-ads-gateway-secret": "Masked:F6VCvje5cIP0zOGCxgARjmSopQI="
    },
    "verb": "put"
  }
}
"Quotas":{
  "limitProcessingTimeSec": 10800,
  "limitTotalUncompressedAppsSizeInMB": 5000
}
[05/23/2022 20:29:06] Starting work item fa2e89a3c85f41a79fd88260f3226208
[05/23/2022 20:29:06] Start download phase.
[05/23/2022 20:29:06] Start downloading input: verb - 'GET', url - 'https://developer.api.autodesk.com/oss/v2/buckets/wip.dm.prod/objects/47f2a6e6-4349-4a9e-b066-14019b2d95ff.rvt'
[05/23/2022 20:29:06] Embedded resource [{'ViewName': {3D}}] is saved as file: T:\Aces\Jobs\fa2e89a3c85f41a79fd88260f3226208\params.json.
[05/23/2022 20:29:07] End downloading file. Source=https://developer.api.autodesk.com/oss/v2/buckets/wip.dm.prod/objects/47f2a6e6-4349-4a9e-b066-14019b2d95ff.rvt,LocalFile=T:\Aces\Jobs\fa2e89a3c85f41a79fd88260f3226208\rac_basic_sample_project.rvt,BytesDownloaded=18739200,Duration=1031ms
[05/23/2022 20:29:07] End download phase successfully.
[05/23/2022 20:29:07] Start preparing script and command line parameters.
[05/23/2022 20:29:07] Error: The path is empty. (Parameter 'path')
[05/23/2022 20:29:07] Error: An unexpected error happened during phase CoreEngineExecution of job.
[05/23/2022 20:29:07] Job finished with result FailedExecution
[05/23/2022 20:29:07] Job Status:
{
  "status": "failedInstructions",
  "reportUrl": "https://dasprod-store.s3.amazonaws.com/workItem/WDQIfAV8PqNa9XSKPmv6MDu3xAtLGfXI/fa2e89a3c85f41a79fd88260f3226208/report.txt?X-Amz-Expires=48600&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEHsaCXVzLWVhc3QtMSJHMEUCICFX1xarqQIWj10LZbH8Ogb1swNKKEnd7t3VJTNYx%2FHtAiEAlfPN0Kaa8Yjn7RsU9ZkPzYTJo5kWYmMdSpnwbqaKnM4qmwIIZBADGgwyMjA0NzMxNTIzMTAiDNF%2BhEZNhXEO0%2FTIwCr4AV3eSxj8u0wq%2FcvREh15dwcQfTm2kXP95obEvnxcjWGAIM2NSaQ8w1KOBrXALQQ4NnQMMyGtcgKAk1GJ6gyn1T51PWw7a5GJEqO02yNWFTNeEANXCLe%2F55CQ1RyksuAVIgwcXBmu%2FHmSfSVLpk39fTuqa%2Fa3v4V%2FpniYHVx2fXpaKQF0z2E3pru%2BC5kj6RPG4%2BMoAdISMp9wVYCSLOOUTAZB%2FJ0LZDTxqBgYOWjlnIN%2B7IU2KgDdxS0W98uQBYhc%2FroQGpObXtY1FnRNKpdBjRAU4QaMN6jveWaw%2FzwDohbqeECZcVc9xUv3uwdyklCB%2FzlKzIy8MIWoMLWzr5QGOpoB%2B0luYyTRiH4a9WXVDp7XaclmwJgAIuh51jahpYov5JwufcGO8%2FpSBp32G5vluCyVQ%2BoovdvGAMRoemwlx8rFDsomUR9V3TNNwEk4pyCz%2BUO2l5MUAkh4Cg%2BtSiYGHVcm995rTdn4C8u6AaoQ6U5ebbDd4Nd00O9u2pE2InYzsJwWn2%2BD0cr%2FlAvYWa2qG%2Fe77GcgwzYiFnDhAw%3D%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIATGVJZKM3O2XOGJGQ/20220523/us-east-1/s3/aws4_request&X-Amz-Date=20220523T202906Z&X-Amz-SignedHeaders=host&X-Amz-Signature=cbc26867c48d0f8eb8e21c15b321979b38bb997e54ddd6be481ae5949c25d734",
  "stats": {
    "timeQueued": "2022-05-23T20:29:06.4788749Z",
    "timeDownloadStarted": "2022-05-23T20:29:06.7267659Z",
    "timeInstructionsStarted": "2022-05-23T20:29:07.8697987Z",
    "timeInstructionsEnded": "2022-05-23T20:29:07.8711572Z",
    "bytesDownloaded": 18739218
  },
  "id": "fa2e89a3c85f41a79fd88260f3226208"
}


这是我发布 activity 时得到的回复:

 {'commandLine': [' "$(engine.path)\\revitcoreconsole.exe /i "$(args[rvtFile].path)" /al "$(appbundles[Revit2ProtoExporter].path)"" '], 'parameters': {'rvtFile': {'verb': 'get', 'description': 'Input', 'required': True, 'localName': '$(rvtFile)'}, 'params': {'verb': 'get', 'required': True, 'localName': 'params.json'}, 'result': {'verb': 'put', 'description': 'Result', 'required': True, 'localName': 'result.avr'}}, 'id': 'WDQIfAV8PqNa9XSKPmv6MDu3xAtLGfXI.Revit2ProtoExporterActivity', 'engine': 'Autodesk.Revit+2022', 'appbundles': ['WDQIfAV8PqNa9XSKPmv6MDu3xAtLGfXI.Revit2ProtoExporter+OV'], 'description': 'Export Geometry', 'version': 76}

我的工作项目中缺少什么导致了这个问题?

post中的命令行似乎仍然不正确,它被解读为 [{ "commandLine": [ " \"$(engine.path)\\revitcoreconsole.exe /i \"$(args[rvtFile].path)\" /al \"$(appbundles[Revit2ProtoExporter].path)\"\" " ],无法正确解析。

您能否尝试将命令行定义为

{ 'commandLine': [ '$(engine.path)\\revitcoreconsole.exe /i "$(args[rvtFile].path)" /al "$(appbundles[Revit2ProtoExporter].path)"']...