Has any method can replace BasicFileInfo.Extract() ?

Has any method can replace BasicFileInfo.Extract() ?

Anonymous
Not applicable
963 Views
2 Replies
Message 1 of 3

Has any method can replace BasicFileInfo.Extract() ?

Anonymous
Not applicable
About "BasicFileInfo.Extract()" In "API Changes 2019":from a version of Revit prior to Revit 2019 will result in an exception if it is called on a Revit 2019 or later file. Is there another way I can get version information without fully opening a Revit file?
0 Likes
Accepted solutions (1)
964 Views
2 Replies
Replies (2)
Message 2 of 3

jeremytammik
Autodesk
Autodesk
Accepted solution

You mean you want to obtain information from a Revit file saved by a later version of Revit, later than the one you are using to run the API? No, I do not believe that Revit can open files from later versions, only earlier ones. I would suggest running the add-in calling the BasicFileInfo functionality in the latest version of Revit. Depending on what information you are trying to retrieve, you might also have more luck trying to retrieve it without using Revit at all: 

 

http://thebuildingcoder.typepad.com/blog/2017/06/determining-rvt-file-version-using-python.html

 

Best regards,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 3

Anonymous
Not applicable

  Thans for your replay. I have got lots of helpful info from your personal blog in past work.

  Your reply made me aware of my mistake that I tried to get information about the new version file with the old version API . 

 Thanks for your help again and I feel very luck for it.

0 Likes