Get Legends in project

It’s not that difficult at it’s core. Python I mean.

The general idea from what I’ve learned so far is simple: you call libraries whit functions and then execute them. The functions that you can execute within Revit are listed in the API docs https://www.revitapidocs.com/2019/7a3b5ac1-c66d-9f81-a11d-9bcd4e026295.htm

Take this for example Spot coordinates

  1. I’ve imported libraries like RevitAPI, RevitNodes, RevitServices
  2. Then I’ve assigned the input values
  3. Then just executed an action within the TransactionManager

Just look inside the python scripts of Clockwork. It’s all the same pattern, almost every time. If the script has a lot of stuff in it, at it’s core it’s still execution of a action within the TransactionManager. The rest come naturally.

1 Like