Closed melnikovalex closed 5 years ago
@melnikovalex Hey bud. I just tested the runner with make3dview
command with CLI v0.13 on both 2019 and 2018 and it works fine. Would you mind upgrading your CLI to the latest and test again?
Thanks a lot for sharing all the results. On the surface everything looks OK. It'd be also great if you can check to see if there is anything logged in the log file listed at Log File:
in the ==> Execution Environment
report. If the log file doesn't exist it means that the command script generated no output or exceptions and nothing was logged. That means the script ran OK.
Thank you for your recommendation and sorry for the late answer. I've tested it with CLI 0.13 in two different environments with 2018 and 2019, ENU and DEU. I couldn't see any difference, revit file is still not being updated by the script. In the log there Jrn.Command "SystemMenu" , "Quit the application;
right after Jrn.Data "APIStringStringMapJournalData" _
In both cases there were no .log file, only .txts
Is it working for you with the same command and empty file pyrevit run "make3dview" "D:\test.rvt"
?
Here is the second env where I was testing it
==> Registered Clones (full git repos)
main46-24 | Branch: "master" | Version: "4.6.24:76d18d6" | Path: "D:\Sicherung\pyRevit\main46-24"
==> Registered Clones (deployed from archive/image)
==> Attachments
main46-24 | Product: "Autodesk Revit 2019.2.1" | Engine: 279 | Path: "D:\Sicherung\pyRevit\main46-24" | Manifest: "D:\Users\aleksei.melnikov\AppData\Roaming\Autodesk\Revit\Addins\2019\pyRevit.addin"
==> Installed Extensions
==> Default Extension Search Path
D:\Users\aleksei.melnikov\AppData\Roaming\pyRevit\Extensions
==> Extension Search Paths
==> Extension Sources - Default
https://github.com/eirannejad/pyRevit/raw/master/extensions/extensions.json
==> Extension Sources - Additional
P:\CAD\Settings\_storage\pyRevit_extensions.json
==> Installed Revits
Autodesk Revit 2019.2.1 | Version: 19.2.10.7 | Build: 20190225_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2019"
==> Running Revit Instances
==> User Environment
Microsoft Windows 10 [Version 10.0.18362]
Executing User: HWPNET\aleksei.melnikov
Active User: HWPNET\aleksei.melnikov
Adming Access: No
%APPDATA%: "D:\Users\aleksei.melnikov\AppData\Roaming"
Latest Installed .Net Framework: 4.8
No .Net Target Packs are installed.
No .Ne-Core Target Packs are installed.
pyRevit CLI 0.13.0.0
I was also testing code like:
with open("D:\results.txt", "a") as f:
f.write("x")
both with Revit file and without usint run
. No data is being written in results.txt
in both cases.
@melnikovalex I tested the attached test script and model and it works on all Revit versions. Using CLI v0.17
In the script above you need to change "D:\results.txt"
to r"D:\results.txt"
as \r
is a special escape character
However this is an old, closed issue, I seem to have the same problem. https://discourse.pyrevitlabs.io/t/pyrevit-run-issue/373
Describe the bug Hi Ehsan! I am trying
pyrevit run
command and for me something goes wrong here (maybe I don't know how to do it properly). Please correct me if so.Thank you in advance!
To Reproduce
If I run
pyrevit run "make3dview" "D:\test.rvt" --revit=2018
Revit is being opened, loaded and closed. But in the end no files were opened or changed.If I check journal file generated by Revit, right after running a command it closes revit.
Here CLI log:
Desktop (please complete the following information):