Looking for a Guide for Revit Libraries in Pythonshell

Hi,

I have noticed often, that people add a reference in their python code to RevitServices by the following code in order to use DocumentManager and TransactionManager:

'# Import DocumentManager and TransactionManager
clr.AddReference(“RevitServices”)
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

Does anybody have an idea where I can find all methods, properties and members of the Revit librares “RevitServices” and RevitNodes . I cannot find them in RevitAPI.chm.

Thank you.

They don’t exist as they are part of dynamo and not the revit api.
These modules you mentioned are either wrappers around the api (revit services) or helpers to deal with how dynamo wraps revit elements (revit nodes)

They are loosely documented here:

Instead of revit services + document manager, you can just import Transaction from Revit.DB
Revit nodes are not needed as they are only needed to deal with how dynamo wraps elements (I think!)

1 Like