Search code examples
pythonrevit-api

dynamo python: open revit files from autodesk docs


In dynamo / Python, how to open revit file from autodesk docs? Seems like if the revit file is from autodesk docs, it doesn’t really work, keep on freezing. Are there different ways to open the files from the revit API?

doc = app.OpenDocumentFile(file_path)

python


Solution

  • Yes, there are several different overloads of the OpenDocumentFile method. None of them cause freezing when used properly. Maybe you are not in a valid Revit API context? Btw, the best place to discuss Dynamo questions right now is probably the DynamoBIM forum.