falosy.blogg.se

Py revit
Py revit





When I start Revit Python Shell it displays the message shown below before the command prompt. I did not see anything on this webpage RPS Readme to address this issue. Here is a screen shot of RPS - note the missing ">":Īt this point, I am not sure if RPS allows print statements in the init.py file, or if this is a bug in RPS, or if there is a different way to accomplish what I wish to do, or if I what I want is even possible.

py revit

But adding the print statement below causes the RPS to "hang" print MJM_Notes MJM_Notes = MJM_Notes + " Revit Python Wrapper Loaded. Version: " + pyrevit.VERSION_STRING + "\n" MJM_Notes = MJM_Notes + " PyRevit Loaded. MJM_Notes = MJM_Notes + " CLR loaded (It is part of. MJM_Notes = MJM_Notes + "\nPreloaded Modules:\n" MJM_Notes = MJM_Notes + " lookup() - Database explorer tool\n" MJM_Notes = MJM_Notes + " doc = _revit_.ActiveUIDocument.Document\n" MJM_Notes = MJM_Notes + " UIApplication\n" MJM_Notes = MJM_Notes + " selection (user selected elements at startup\n" MJM_Notes = MJM_Notes + "Some Preloaded Varibles:\n" However, I want to print a message to the interactive shell stating that pyrevit has been loaded into this RPS session.įor example, I have these lines in the init.py file: MJM_Notes = "\n= MJM Notes =\n" Ok.so I modify this file to do things like "import pyrevit". It is commonly used to performe initialization of helper "The InitScript is a python script run everytime an interactive shell I have seen this statement in the RPS configuration dialog: I am not looking to create a script to run as a utility. I am not looking to run a script at Revit startup or any other time. I am looking to display information when starting the interactive Revit Python Shell. It looks I need to clarify my intent for this posting.







Py revit