Pre Revit 2013 BatchFileInfo

Pre Revit 2013 BatchFileInfo

stephen_harrison
Advocate Advocate
289 Views
3 Replies
Message 1 of 4

Pre Revit 2013 BatchFileInfo

stephen_harrison
Advocate
Advocate

First a little background I am using Revit 2021 and programming in C#.

I have developed myself an app for updating multiple Revit families/projects etc but have recently come across a problem were families/projects pre Revit 2013 are not being updated.

 

I believe the issue is that "BatchFileInfo" was not introduced until Revit 2013 and this is the bases of my app to filter out files utilising "IsSavedInCurrentVersion" and "IsWorkshared".

 

Is there an equivalent or a workaround for 2013 files and if so any pointers would be much appreciated. 

 

Thank you in advance for any assistance. 

0 Likes
290 Views
3 Replies
Replies (3)
Message 2 of 4

RPTHOMAS108
Mentor
Mentor

You mean BasicFileInfo?

 

If you open a small Revit file in notepad you'll see xml near the top (part of it is double spaced due to encoding). Small so it doesn't take forever.

 

There have been some standalone methods created for reading this type of data:

The Building Coder: Standalone BasicFileInfo and ExtractPartAtom (typepad.com)

0 Likes
Message 3 of 4

stephen_harrison
Advocate
Advocate

Thank you for your response and apologies for the error. 

I have tried opening the small Revit files as you suggested and in post Revit 2013 files the information is provided as you suggested. However in earlier Revit files there is no such information.

Once again apologies if my question was not clear or I have miss understood your response but I am trying to get similar information to that provided by BasicFileInfo i.e. "IsSavedInCurrentVersion" and "IsWorkshared" but from early Revit files i.e. pre BasicFileInfo.

 

Thank you in advance for any assistance.

0 Likes
Message 4 of 4

RPTHOMAS108
Mentor
Mentor
0 Likes