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:
- 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.
- Next, break up the problem into many small simple steps, this is your pseudocode.
- 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!
- Finally, once it all works, clean up and comment your code, think about how you or someone else might use it in a year!