需要使用 Design Automation API 从 Revit 模型中提取族数据?

问题描述 投票:0回答:1

有关于设计自动化API的询问:

我创建了一个 Revit 插件来提取族数据,它也可以与 Revit 桌面应用程序一起正常工作,但是当我使用设计自动化 API 执行它时,我收到“failedInstructions”响应。

这是工作项 ID:3e6eace60d1441ecba7ae74af3e6f89d。

您能否帮我解决这个问题,以通过设计自动化执行此插件并返回 JSON 数据或 CSV 文件。

Here is the Rest of the Job result:
Workitem started: 3e6eace60d1441ecba7ae74af3e6f89d                        
{
  "status": "failedInstructions",
  "reportUrl": "https://dasprod-store.s3.amazonaws.com/workItem/8wkyWTVWOZgRQPrphFGhxwvXSKGt2QAr/3e6eace60d1441ecba7ae74af3e6f89d/report.txt?X-Amz-Expires=48600&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEBoaCXVzLWVhc3QtMSJHMEUCIC9CpfckcxAXhT4HdND132EKFO%2BEcKeZWurAXxTGW3b6AiEA%2FJRO3Hx%2B7yyOlr3mL7pzaEQhsKuG9L7XPl%2BdvMcsuqYqiQMIw%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARADGgwyMjA0NzMxNTIzMTAiDM4oP87c9jgFBnmk2irdAlPeXtCELl0R6YvZ2rES0gGdMgQEK9HHmiiPCeNMNkd09wudnRZZZRicZgO2GAdS6Fr4a2Ncu1DlhPSi3dTDolLXOtKmtyS46HmuLRDADhiPMSRJ1Pplq4CtkLcV5Zwb3Rdvfn9t4rFwqea8nGDON8Rgc%2Flf76CZYu2j0iLlNiDin0HhqSTnTYQs5qt0tHk9XdMR6XWBQIvJJWKK8ZHG%2FP4VeqpPJAgCdML2UbcxkZ%2FW7Z9Eb1QDm87hJmABcPGwhDsysiLBms%2FDiU5XK0%2B4eUQ2HnVjYeKLGQ0%2B85IhY44i%2FAwKKqdturvwSscCrZcVYwqDfbTvPehjJByWN621fHnb0SKnC5Z5IlSyyj70KjDhf6pFdjIk9%2F9jFOrKqWvVm1CD8PVvDPCpOPFAc1Q9XH01vaRnFEwHYgPNf6DMABuCsFiiGkQDdYqSTK44%2Fe0KDHD6xV2tUU8itQhk4EgwsczUpgY6ngHQxDU7D5dkdkql5gFhw65T%2B7z1IygHk2%2FEUAucH8PGIXmhnHUzQTsIStE%2FLC%2Fou5FRGIAzVmpBn9KAc%2Fa2h6NF1T6HhBWhxCjnsD3UgGnErLEXXrWyxH74%2FDqMJ4XQUkSAynak%2B7hZGxrm1nhTpGohoFXqozpAbE5VHHwJl%2BJCw4hAeNFvQHEEhvTCZPqyLZMjFJ0z%2BzcGFQhxKQI5cQ%3D%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIATGVJZKM3LKNHYI47/20230810/us-east-1/s3/aws4_request&X-Amz-Date=20230810T181326Z&X-Amz-SignedHeaders=host&X-Amz-Signature=95cadf6a11e438166f5c28d008c30b18dbbdad88ccbdb47b9cd4c0f615c4462f",
  "stats": {
    "timeQueued": "2023-08-10T18:13:26.7574216Z",
    "timeDownloadStarted": "2023-08-10T18:13:26.9379036Z",
    "timeInstructionsStarted": "2023-08-10T18:13:27.5452591Z",
    "timeInstructionsEnded": "2023-08-10T18:13:51.6618916Z",
    "bytesDownloaded": 13680640
  },
  "id": "3e6eace60d1441ecba7ae74af3e6f89d"
}
[08/10/2023 18:13:26] Job information:
{
  "CommandLine": [
    "$(engine.path)\\revitcoreconsole.exe /i \"$(args[inputFile].path)\" /al \"$(appbundles[ExportDataAppBundle].path)\""
  ],
  "Settings": {
    "script": {
      "value": ""
    },
    "dasOpenNetwork": {
      "value": "true",
      "isEnvironmentVariable": true
    }
  },
  "Id": "3e6eace60d1441ecba7ae74af3e6f89d",
  "ActivityId": "8wkyWTVWOZgRQPrphFGhxwvXSKGt2QAr.ExportDataActivity+dev",
  "EngineId": "Autodesk.Revit_2022!111",
  "Apps": [
    "8wkyWTVWOZgRQPrphFGhxwvXSKGt2QAr.ExportDataAppBundle!1"
  ],
  "BoundArguments": {
    "inputFile": {
      "localName": "$(inputFile)",
      "url": "urn:adsk.objects:os.object:8wkywtvwozgrqprphfghxwvxskgt2qar-designautomation/20230810114245_input_58FloorNoOpeningsNoOSB.rvt",
      "headers": {
        "Authorization": "Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IjY0RE9XMnJoOE9tbjNpdk1NU0xlNGQ2VHEwUSIsInBpLmF0bSI6Ijd6M2gifQ.eyJzY29wZSI6WyJidWNrZXQ6Y3JlYXRlIiwiYnVja2V0OnJlYWQiLCJidWNrZXQ6ZGVsZXRlIiwiZGF0YTpyZWFkIiwiZGF0YTp3cml0ZSIsImRhdGE6Y3JlYXRlIiwiY29kZTphbGwiXSwiY2xpZW50X2lkIjoiOHdreVdUVldPWmdSUVBycGhGR2h4d3ZYU0tHdDJRQXIiLCJhdWQiOiJodHRwczovL2F1dG9kZXNrLmNvbS9hdWQvYWp3dGV4cDYwIiwianRpIjoiMDVhM0NKWVRScXA5VUYyWjA5YU55SnNoV3pSdEdabmk3b3lPYkUzT3M2RlFSNUlLN1dCaDU5a1pLOG8wUHk5aCIsImV4cCI6MTY5MTY5NDYxN30.qMYGQomGqMwgzbQWxSODi97zdEYuDjEf_R6WuNupcWYmbioYRBXOBRjknUSX4PrhLFuqZoDPg9YZpb8APFQpfhyHy88mML04Mqt1LP2KJkeKJY1ZrWlQvXZWqMRljw6m3Q-L8PVwa3MKkOJ3Vgfifq1EB_vbEBjWkbig2ROkh1uLOSQ1KTX_HaJsMMqkQ-y17TUfgCD4onWiqcnSOzWux1DTgRdjz0pcu5W2w1B0SF5IDkCQEHUMFHyNRRWTv6-XGMdSgPEH2EHopXbiFyGSc94JX8dkjGn9l-pSUl2Rx8QS6D4W-16JvwsYD9Yj74A4fY7kChtGHP9UuJ1AH2DTpQ"
      }
    },
    "outputFile": {
      "localName": "outputFile.rvt",
      "url": "urn:adsk.objects:os.object:8wkywtvwozgrqprphfghxwvxskgt2qar-designautomation/20230810114305_output_58FloorNoOpeningsNoOSB.rvt",
      "headers": {
        "Authorization": "Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IjY0RE9XMnJoOE9tbjNpdk1NU0xlNGQ2VHEwUSIsInBpLmF0bSI6Ijd6M2gifQ.eyJzY29wZSI6WyJidWNrZXQ6Y3JlYXRlIiwiYnVja2V0OnJlYWQiLCJidWNrZXQ6ZGVsZXRlIiwiZGF0YTpyZWFkIiwiZGF0YTp3cml0ZSIsImRhdGE6Y3JlYXRlIiwiY29kZTphbGwiXSwiY2xpZW50X2lkIjoiOHdreVdUVldPWmdSUVBycGhGR2h4d3ZYU0tHdDJRQXIiLCJhdWQiOiJodHRwczovL2F1dG9kZXNrLmNvbS9hdWQvYWp3dGV4cDYwIiwianRpIjoiMDVhM0NKWVRScXA5VUYyWjA5YU55SnNoV3pSdEdabmk3b3lPYkUzT3M2RlFSNUlLN1dCaDU5a1pLOG8wUHk5aCIsImV4cCI6MTY5MTY5NDYxN30.qMYGQomGqMwgzbQWxSODi97zdEYuDjEf_R6WuNupcWYmbioYRBXOBRjknUSX4PrhLFuqZoDPg9YZpb8APFQpfhyHy88mML04Mqt1LP2KJkeKJY1ZrWlQvXZWqMRljw6m3Q-L8PVwa3MKkOJ3Vgfifq1EB_vbEBjWkbig2ROkh1uLOSQ1KTX_HaJsMMqkQ-y17TUfgCD4onWiqcnSOzWux1DTgRdjz0pcu5W2w1B0SF5IDkCQEHUMFHyNRRWTv6-XGMdSgPEH2EHopXbiFyGSc94JX8dkjGn9l-pSUl2Rx8QS6D4W-16JvwsYD9Yj74A4fY7kChtGHP9UuJ1AH2DTpQ"
      },
      "verb": "put"
    },
    "onComplete": {
      "ondemand": true,
      "optional": true,
      "url": "https://e02d-14-99-194-2.ngrok.io/api/aps/callback/designautomation?id=4urhMPwc_rcm3c5P47eFcw&outputFileName=20230810114305_output_58FloorNoOpeningsNoOSB.rvt",
      "verb": "post"
    }
  },
  "Quotas": {
    "limitProcessingTimeSec": 10800,
    "limitTotalUncompressedAppsSizeInMB": 5000
  }
}
[08/10/2023 18:13:27] Starting work item 3e6eace60d1441ecba7ae74af3e6f89d
[08/10/2023 18:13:27] Start download phase.
[08/10/2023 18:13:27] Start downloading input: verb - 'GET', url - 'urn:adsk.objects:os.object:8wkywtvwozgrqprphfghxwvxskgt2qar-designautomation/20230810114245_input_58FloorNoOpeningsNoOSB.rvt'
[08/10/2023 18:13:27] End downloading file. Source=urn:adsk.objects:os.object:8wkywtvwozgrqprphfghxwvxskgt2qar-designautomation/20230810114245_input_58FloorNoOpeningsNoOSB.rvt,LocalFile=T:\Aces\Jobs\3e6eace60d1441ecba7ae74af3e6f89d\20230810114245_input_58FloorNoOpeningsNoOSB.rvt,BytesDownloaded=13680640,Duration=386ms
[08/10/2023 18:13:27] End download phase successfully.
[08/10/2023 18:13:27] Start preparing script and command line parameters.
[08/10/2023 18:13:27] Command line: [ /i "T:\Aces\Jobs\3e6eace60d1441ecba7ae74af3e6f89d\20230810114245_input_58FloorNoOpeningsNoOSB.rvt" /al "T:\Aces\Applications\03fdf20cfa0ae454a88e395019445244.8wkyWTVWOZgRQPrphFGhxwvXSKGt2QAr.ExportDataAppBundle[1].package"]
[08/10/2023 18:13:27] End preparing script and command line parameters.
[08/10/2023 18:13:27] Start script phase.
[08/10/2023 18:13:27] Start Revit Core Engine standard output dump.
[08/10/2023 18:13:28] ====== Revit is running: revitcoreconsole ======
[08/10/2023 18:13:28] Current Exe path: T:\Aces\AcesRoot\22.0\coreEngine\Exe\revitcoreconsole.exe
[08/10/2023 18:13:28] Echoing command line args:
[08/10/2023 18:13:28]   0:/i
[08/10/2023 18:13:28]   1:T:\Aces\Jobs\3e6eace60d1441ecba7ae74af3e6f89d\20230810114245_input_58FloorNoOpeningsNoOSB.rvt
[08/10/2023 18:13:28]   2:/al
[08/10/2023 18:13:28]   3:T:\Aces\Applications\03fdf20cfa0ae454a88e395019445244.8wkyWTVWOZgRQPrphFGhxwvXSKGt2QAr.ExportDataAppBundle[1].package
[08/10/2023 18:13:28]   4:/isolate
[08/10/2023 18:13:28]   5:HKEY_CURRENT_USER\SOFTWARE\AppDataLow\Software\Autodesk\CoreUser\WorkItem_3e6eace60d1441ecba7ae74af3e6f89d
[08/10/2023 18:13:28]   6:T:\Aces\Jobs\3e6eace60d1441ecba7ae74af3e6f89d\userdata
[08/10/2023 18:13:28] Selected Revit\RCE install Path: (from app.config)
[08/10/2023 18:13:28] Resolving location of Revit/RevitCoreEngine installation...
[08/10/2023 18:13:28] Loading RCE ....
[08/10/2023 18:13:32] Running user application....
[08/10/2023 18:13:32] Found an addIn for registration: ExportData.addin
[08/10/2023 18:13:32] Language not specified, using English-United States(ENU) as default.
[08/10/2023 18:13:36] Get RCE: (VersionBuild) 22.1.50.7 (VersionNumber) 2022 (SubVersionNumber) 2022.1.5
[08/10/2023 18:13:50] RESULT: Failure - Result of running user app is failure
[08/10/2023 18:13:50] Finished running.  Process will return: TestError
[08/10/2023 18:13:50] ====== Revit finished running: revitcoreconsole ======
[08/10/2023 18:13:51] End Revit Core Engine standard output dump.
[08/10/2023 18:13:51] Error: Application revitcoreconsole.exe exits with code 4 which indicates an error.
[08/10/2023 18:13:51] End script phase.
[08/10/2023 18:13:51] Error: An unexpected error happened during phase CoreEngineExecution of job.
[08/10/2023 18:13:52] Job finished with result FailedExecution
autodesk-forge revit-api autodesk-designautomation
1个回答
0
投票

[08/10/2023 18:13:50] 结果:失败 - 运行用户应用程序的结果是失败 [08/10/2023 18:13:50] 运行完毕。进程将返回:TestError

日志文件中的这些行表明您的

AppBundle
代码中存在一些错误。您必须分享该代码,以便有人能够指出它可能是什么。

在此之前,您可以考虑在 AppBundle 中进行本地调试和/或记录详细注释,以便您可以自己诊断问题。

© www.soinside.com 2019 - 2024. All rights reserved.