I want to create my first extension for my existing scripts using pyrevit. I have already set up the folder structure according to the rules.
I am having a problem opening the dynamo scripts using the pyrevit extension. The problem is that the scripts won’t open. The scripts only open in Dynamo when Dynamo is open. This is not what I want. I want the script to open directly as dynamo player just like Aussie does in this Video: Run Dynamo scripts using pyRevit! - YouTube
What I already tried:.
I’ve searched on forums, tutorials and I didn’t see enyone had this problem?
I have some packages installed in dynamo, but in the simplest scripts I don’t have packages and python nodes and even then won’t open. I have already tried to uninstall many of them with the same result.
I am running this from the following versions:
Dynamo 2.19.3.
Revit 2024.2
The latest release: pyRevit_4.8.16.24121_admin_signed
I have also tried this with the latest pyRevit version v. 5.0.0. 24229+1041
I am trying to save this for hours, but I think there must be a simple trick .
I found the problem. I had some input nodes in Dynamo that needed to be exicuted before the UI data shapes.
I had to modify scripts.
And some of the scripts had a simple Dynamo native input node that probably cannot be exicuted from PyRevit.
Did I understand correctly that from Dynamo packages only UI from D|S can be exicuted in Pyrevit?
What about the outputs. Is there a common way to connect my outputs, for example watch nodes, and print them in the UI from python script? Or i need to capcure the result from the Dynamo graph into txt. or csv file and than read the output from PyRevit Python Script?
In the next few months I will learn more about making pyrevit python scripts, but for now I just want to set save my work (mostly dynamo scripts) in pyrevit extension.