Is there a way to access the file version of on BIM360 with pyrevit?
I’m trying to create a schedule for the Revit links that include the file version on BIM 360 but couldn’t find any info in doc that’s helpful
Yes, but not with builtin pyrevit functions. You would need to build your own.
The function you pointed out use the BasicInfoFile class of the Revit API which does not contain this info _ it does contain a version info but it is not related to the BIM360 version _ it is related to the increments of sync of the file
you will need to use the ACC Api to get there, and most probably outside of pyrevit because of the python utilities you may want to use (this one for example acc_sdk/acc_sdk/projects.py at master · realdanielbyrne/acc_sdk · GitHub)
or better using this GitHub - chuongmep/aps-toolkit: An Libray Unlock BIM Data With Autodesk Platform Services very well documented
Depending on what is your end game, a simple report export from ACC gives you the version
Hey there!
Great question — working with BIM 360 file versions can be a bit tricky, especially through pyRevit since it doesn’t natively expose that kind of integration out of the box.
Unfortunately, pyRevit alone doesn’t have direct access to BIM 360’s file versioning info because that data is part of Autodesk’s cloud services (specifically the Forge/BIM 360 Docs API). To get file version details, you’d typically need to interact with the BIM 360 API, which requires authentication and use of Autodesk’s Forge platform.
Here’s a general approach that could work:
- Use the Forge Data Management API to get version info from BIM 360. You’ll need to register an app with Autodesk, authenticate, and then call the endpoints to list versions of a file.
- Combine that with pyRevit — pyRevit can read your local Revit links and match them with the version info you retrieve via the API.
So while it’s not a straight-up pyRevit solution, it is possible with a bit of hybrid scripting (Forge + pyRevit). If you’re interested, I can share some starting points for setting up Forge access and combining that with your script.
Let me know!
Would this have to be something done outside of pyrevit with an external python app? The thing I’m afraid is that my only allowable path to deployment is through pyrevit extension. is this something achievable?
but If you could share some resources or video on how to get started with python that will be plenty for me too! thanks!