Skip to content

Instantly share code, notes, and snippets.

@chuongmep
Created December 6, 2023 09:01
Show Gist options
  • Save chuongmep/7492230ca3d08984d11d7be44fc26693 to your computer and use it in GitHub Desktop.
Save chuongmep/7492230ca3d08984d11d7be44fc26693 to your computer and use it in GitHub Desktop.
[12/06/2023 08:43:09] Job information:
{
"CommandLine": [
"$(engine.path)\\\\revitcoreconsole.exe /i \"$(args[inputFile].path)\" /al \"$(appbundles[ExtractRoomApp].path)\""
],
"Settings": {
"script": {},
"dasOpenNetwork": {
"value": "true",
"isEnvironmentVariable": true
}
},
"Id": "c6b0c5086908421da9548c30ab98224c",
"ActivityId": "chuong.ExtractRoomActivity+dev",
"EngineId": "Autodesk.Revit_2022!111",
"Apps": [
"chuong.ExtractRoomApp!1"
],
"BoundArguments": {
"inputFile": {
"localName": "$(inputFile)",
"url": "https://developer.api.autodesk.com/Masked:DISLB18oW2Qz1yOd6UN38I4/vZg=",
"headers": {
"Authorization": "Masked:SZ/tyERkhMuoNj/YegPVeFDKrig="
}
},
"result": {
"localName": "result.json",
"url": "https://cdn.us.oss.api.autodesk.com/Masked:qBNvkbNgpya0IJB9Yzg20KfYf+g=",
"verb": "put"
},
"onComplete": {
"ondemand": true,
"optional": true,
"url": "https://webhook.site/Masked:n3/FyKsnn3ZVnMX1MWHDPmgp9ss=",
"verb": "post"
}
},
"Quotas": {
"limitProcessingTimeSec": 3600,
"limitTotalUncompressedAppsSizeInMB": 5000
}
}
[12/06/2023 08:43:09] Starting work item c6b0c5086908421da9548c30ab98224c
[12/06/2023 08:43:09] Start download phase.
[12/06/2023 08:43:09] Start downloading input: verb - 'GET', url - 'https://developer.api.autodesk.com/oss/v2/buckets/wip.dm.prod/objects/f89e8820-213f-4314-89e4-94930b949288.rvt'
[12/06/2023 08:43:12] End downloading file. Source=https://developer.api.autodesk.com/oss/v2/buckets/wip.dm.prod/objects/f89e8820-213f-4314-89e4-94930b949288.rvt,LocalFile=T:\Aces\Jobs\c6b0c5086908421da9548c30ab98224c\3ced2f08-0682-4482-91ec-336f7633284e.rvt,BytesDownloaded=123617280,Duration=3571ms
[12/06/2023 08:43:12] End download phase successfully.
[12/06/2023 08:43:12] Start preparing script and command line parameters.
[12/06/2023 08:43:12] Command line: [ /i "T:\Aces\Jobs\c6b0c5086908421da9548c30ab98224c\3ced2f08-0682-4482-91ec-336f7633284e.rvt" /al "T:\Aces\Applications\1f8c88d4b80171baeef657f5c0c83184.chuong.ExtractRoomApp[1].package"]
[12/06/2023 08:43:12] End preparing script and command line parameters.
[12/06/2023 08:43:13] Start script phase.
[12/06/2023 08:43:13] Start Revit Core Engine standard output dump.
[12/06/2023 08:43:13] ====== Revit is running: revitcoreconsole ======
[12/06/2023 08:43:13] Current Exe path: T:\Aces\AcesRoot\22.0\coreEngine\Exe\revitcoreconsole.exe
[12/06/2023 08:43:13] Echoing command line args:
[12/06/2023 08:43:13] 0:/i
[12/06/2023 08:43:13] 1:T:\Aces\Jobs\c6b0c5086908421da9548c30ab98224c\3ced2f08-0682-4482-91ec-336f7633284e.rvt
[12/06/2023 08:43:13] 2:/al
[12/06/2023 08:43:13] 3:T:\Aces\Applications\1f8c88d4b80171baeef657f5c0c83184.chuong.ExtractRoomApp[1].package
[12/06/2023 08:43:13] 4:/isolate
[12/06/2023 08:43:13] 5:HKEY_CURRENT_USER\SOFTWARE\AppDataLow\Software\Autodesk\CoreUser\WorkItem_c6b0c5086908421da9548c30ab98224c
[12/06/2023 08:43:13] 6:T:\Aces\Jobs\c6b0c5086908421da9548c30ab98224c\userdata
[12/06/2023 08:43:13] Selected Revit\RCE install Path: (from app.config)
[12/06/2023 08:43:13] Resolving location of Revit/RevitCoreEngine installation...
[12/06/2023 08:43:13] Loading RCE ....
[12/06/2023 08:43:18] Running user application....
[12/06/2023 08:43:18] Found an addIn for registration: Autodesk.Forge.Sample.RoomExtractor.addin
[12/06/2023 08:43:18] Language not specified, using English-United States(ENU) as default.
[12/06/2023 08:43:21] Get RCE: (VersionBuild) 22.1.50.7 (VersionNumber) 2022 (SubVersionNumber) 2022.1.5
[12/06/2023 08:44:00] Finished running. Process will return: Success
[12/06/2023 08:44:00] ====== Revit finished running: revitcoreconsole ======
[12/06/2023 08:44:03] End Revit Core Engine standard output dump.
[12/06/2023 08:44:03] End script phase.
[12/06/2023 08:44:03] Start upload phase.
[12/06/2023 08:44:03] Uploading 'T:\Aces\Jobs\c6b0c5086908421da9548c30ab98224c\result.json': verb - 'PUT', url - 'https://cdn.us.oss.api.autodesk.com/oss/v2/signedresources/ecde35d6-1418-4eab-907e-c96f50c689d6?region=US'
[12/06/2023 08:44:04] End upload phase successfully.
[12/06/2023 08:44:04] Job finished with result Succeeded
[12/06/2023 08:44:04] Job Status:
{
"status": "success",
"reportUrl": "https://dasprod-store.s3.amazonaws.com/workItem/chuong/c6b0c5086908421da9548c30ab98224c/report.txt?X-Amz-Expires=48600&X-Amz-Security-Token=IQoJb3JpZ2luX2VjECAaCXVzLWVhc3QtMSJIMEYCIQCX%2FxojZqK7A1b1vXjRkc9FnG4Xr5ljvOi00DiCGUl93wIhAODObcmgFKPoPqgFdkVC7NLP1h8K0MVBERc7f3Xju9k%2FKokDCIj%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEQBBoMMjIwNDczMTUyMzEwIgxbHAdKdOYrveAdbzIq3QJ%2FoLizLNayPiTzgDbov08cbfG24nejy27boqqby%2BuqiQ9KKouaMhMRW1T41LhciX21WW2paMcsE3HZiDqT7HD%2F7t%2BVAm9hfozNM20v4%2BFPutOOYteRWlFBd74JShScZ26xVT4pewxmzJn3CWq1BFrseGqqYWaiYSfe%2BdCV2W033ihB%2FJL%2FVpE82ZLHzcJGxrM6T1yKdULv4saCs7Q6CPk0KUDvABEA%2BWETHlfTW2DfRsKUjdE1LWpjglwFNGGruFTH%2BZCaUs1R2UlCvi2wIZu5Lf%2BDFGxm0qY%2FjKGTf0ApAW3vGVOXBaD315aiwKWoc4jqdX8s9mcwpudMDTB4GUgQTavI6vOwCisdRbOgUQiPxDJXICnBD19W%2Fl0dd1%2F9v2HBbYoOYP4SHGz4qEMnfxROHxClVY8wXKZTQkZOB3x0ANUK7x0ReTWXjDlYYvgcWQgEipTqf7pomj2vWVl0MOm7wKsGOp0BXTOs7S39QmMovZjJhjDDctWEtBL4aMlFWG72npfgxzXBD1OJlLej24IYrW8Apgh3WRVoDd%2FMfOSi0CxX7Z8UN73xvv3K4jF873kE1mGeezUkcidd9Mgtqaqqy4eE4yHukUleRN%2Fv1FQdsxSolcwBUdHCmHfbAQB%2BNsiwjf57sTgE34MKXSMNxy4FvlB18hfe2TlECKHJ%2BGN%2BFIP%2FLg%3D%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIATGVJZKM3KONYYPUS%2F20231206%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231206T084309Z&X-Amz-SignedHeaders=host&X-Amz-Signature=97d5d0f78dfefa68b0738545f2ec3214dcd75335bf267baff0a138bcfb97a312",
"stats": {
"timeQueued": "2023-12-06T08:43:09.073301Z",
"timeDownloadStarted": "2023-12-06T08:43:09.2315836Z",
"timeInstructionsStarted": "2023-12-06T08:43:12.9371761Z",
"timeInstructionsEnded": "2023-12-06T08:44:03.5998166Z",
"timeUploadEnded": "2023-12-06T08:44:04.1696642Z",
"bytesDownloaded": 123617280,
"bytesUploaded": 2320188
},
"id": "c6b0c5086908421da9548c30ab98224c"
}
@yiskang
Copy link

yiskang commented Dec 6, 2023

This is from your log on Stackoverflow

[12/05/2023 09:38:03] Echoing command line args:
[12/05/2023 09:38:03]   0:/i
[12/05/2023 09:38:03]   1:T:\Aces\Jobs\5364405261db4fcab7390912311e1a12\28510851-3eb3-4b10-a8cc-e9f00ee3a068.zip
[12/05/2023 09:38:03]   2:/al
[12/05/2023 09:38:03]   3:T:\Aces\Applications\1f8c88d4b80171baeef657f5c0c83184.chuong.ExtractRoomApp[1].package
[12/05/2023 09:38:03]   4:/isolate
[12/05/2023 09:38:03]   5:HKEY_CURRENT_USER\SOFTWARE\AppDataLow\Software\Autodesk\CoreUser\WorkItem_5364405261db4fcab7390912311e1a12
[12/05/2023 09:38:03]   6:T:\Aces\Jobs\5364405261db4fcab7390912311e1a12\userdata

As you can see it's a ZIP: [12/05/2023 09:38:03] 1:T:\Aces\Jobs\5364405261db4fcab7390912311e1a12\28510851-3eb3-4b10-a8cc-e9f00ee3a068.zip

But the log above is [12/06/2023 08:43:13] 1:T:\Aces\Jobs\c6b0c5086908421da9548c30ab98224c\3ced2f08-0682-4482-91ec-336f7633284e.rvt.
https://gist.github.com/chuongmep/7492230ca3d08984d11d7be44fc26693#file-report_normal-txt-L58

So, the root cause is that the input of the not-working one is a ZIP. Revit doesn't support opening ZIP file. It should be ended with rvt, not zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment