RTV Tools

Monday, January 9, 2012

Python for Energy Modeling

I have previously posted about Python and Revit (including revitpythonshell ) here.

There are some very detailed posts coming from openRevit about using Python in Energy Modeling.  Check them out:

Python for Energy Modelers – Part 1 | openRevit
This even shows you how to install it...


Python for Energy Modelers – Part 2 – Simple Pre-processing | openRevit
This focuses on some basic simulation scenarios.  Quote:
  1. Identify in your simulation workflow something that you need to do manually many times for each simulation, or something you need to do for each of your many simulations. If you can write the problem down in one sentence, it’s a great candidate for scripting.
  2. Next, break up the problem into many small simple steps, this is your pseudocode.
  3. Now try to write it out in Python. Remember, Google is your best friend, if you have a question about something in Python, chances are there have been hundreds of others out there with the same question!
  4. Finally, once it all works, clean up and comment your code, think about how you or someone else might use it in a year!



No comments:

Post a Comment