This is the first thing you should try. PyRevit encourages learning by inspecting existing code. pyrevit