I am trying to implement some automation with Rhino.Inside.Revit through GHPython to programmatically open a Revit model (Revit 2020). I found a Dynamo Python script at the link below, and it works fine to open a Revit document:
However, when I try to implement this in GHPython, it throws the following error:
Not sure why. If there is a better way to open a Revit model with RiR programmatically, I’d be all ears!
It looks like opening a Revit model is possible via the Document Grasshopper parameter, but I’m not entirely sure how this could be adapted for what I’m trying to do. See the link below, starting line 87: