Is it possible to obtain the version of the RVT file that is uploaded to BIM360 Document management?

349 Views Asked by At

I am using Forge's Webhook API to manage the files that are uploaded to our BIM360 Projects. Is there a way to look up the version of the RVT file (for example, if is a Revit 2022 file or a 2018)?

3

There are 3 best solutions below

3
On

As soon as you have downloaded the RVT project file, you can determine the Revit file version last used to save it using the various following methods in chronological order:

0
On

You can check the Revit version used to save the file by downloading just a few bytes of it, not the whole RVT file: Check the version of a Revit file hosted on the cloud.

5
On

The development ticket RVTLMV-2277 is now in production.

You can view the version inside the manifest; I just did a quick test:

"Document Information": {
     "RVTVersion": "2017",

Addendum:

Some additional notes on the blog post:

  • The information is not always in the first 10kb of the file; it could be anywhere. You can dissect the file format and find it though through repeated downloading of different bytes from the file. The amount downloaded and therefore time to calculate the Revit version can vary a lot.
  • The encoding for the text information isn’t always UTF-16 BE (Big Endian). The bits in the file may line up so that you must use UTF-16 LE.
  • Sometimes the file offered by the Forge API is not the direct .rvt file but a zip file with the .rvt file in it. In these cases, you will need to dissect the zip format to get to the correct .rvt file underneath.