I’m trying to move our DynamoAutomation based content updater to pyrevit, and execute it via a PowerShell script.
I’m having trouble using pyrevit run
in the CLI. It seems to execute the different revit instances, but it won’t run the provided python script, instead it closes revit immediately after it is started.
The CLI output is the following:
==> Execution Environment
Execution Id: "b1bf4c67-3981-4bf5-b792-c7186d97fdec"
Product: 2020.2.2 (Full Install) | Version: 20.2.11.3 | Build: 20200206_0915(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2020\"
Clone: main | Deploy: "base" | Branch: "master" | Version: "4.8.7" | Path: "C:\pyRevit\main"
Engine: DEFAULT | Kernel: IronPython | Version: 2711 | Runtime: True | Path: "C:\pyRevit\main\bin\engines\IPY2711PR\pyRevitLoader.dll" | Desc: "Custom pyRevit IronPython Engine"
Script: "G:\BIM\Development-Team\pyRevit\Scripts\Updater\ContentUpdater_script.py"
Working Directory: "C:\Users\TAMAS~2.DER\AppData\Local\Temp\b1bf4c67-3981-4bf5-b792-c7186d97fdec"
Journal File: "C:\Users\TAMAS~2.DER\AppData\Local\Temp\b1bf4c67-3981-4bf5-b792-c7186d97fdec\PyRevitRunner_b1bf4c67-3981-4bf5-b792-c7186d97fdec.txt"
Manifest File: "C:\Users\TAMAS~2.DER\AppData\Local\Temp\b1bf4c67-3981-4bf5-b792-c7186d97fdec\PyRevitRunner.addin"
Log File: "C:\Users\TAMAS~2.DER\AppData\Local\Temp\b1bf4c67-3981-4bf5-b792-c7186d97fdec\PyRevitRunner_b1bf4c67-3981-4bf5-b792-c7186d97fdec.log"
==> Target Models
g:\BIM\Development-Team\Dynamo\80_Actual\03_Sandbox\DynamoAutomation\Dummy.rvt
==> Execution Environment
The Log file that is provided by the CLI is not created so I cannot investigate any further. I did everything based on https://www.notion.so/Batch-Process-Revit-Models-d2c336a656684e2ebbc12371b70ac109
The Dummy file is only there because pyrevit run
won’t execute without a valid Revit file, even it is not needed at all for the script.
Any ideas?
it seems similar to CLI run doesn't run a script · Issue #661 · eirannejad/pyRevit · GitHub