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:
Additionally, when I use the CovertUserVisiblePathToModelPath method in GHPython, it returns a FilePath rather than a ModelPath.
Any ideas what the differences are between Dynamo running the script vs GHPython? Any assistance is appreciated!