Forum archiveIssue archiveData Exchange and Application Framework

Archived discussion

Backward XBF Storage Compatibility

Data Exchange and Application FrameworkThu, 01/22/2015 - 16:463 replies

Browse this forum
QuestionAuthor

Starting from OCC 6.7.0 the BinLDrivers were upgraded to version 7. What makes impossible to open the new files with the older versions of OCC (6.6.0 for example). Is there a way to force the storage driver to write the file in another version? (version 6)

Discussion

3 archived replies

Posts are displayed in their archived order.

01Commenter-1

There is no way to force the storage driver to write the file in another version (6), but there is a way to force retrieval driver to read newer files. For that you need to inherit BinLDrivers_DocumentRetrievalDriver and redefine the method CheckDocumentVersion. Of course, you also need to make and register your own document plugin. The application that uses old OCC should be patched then.

02Commenter-1

Please note that this is offtopic for modeling theme. It would be better to create a new theme "Application Framework" for this topic.

03Commenter-2

As a follow up - the method TDocStd_Document::ChangeStorageFormatVersion() has been introduced with limited support of writing documents in older format version:
https://tracker.dev.opencascade.org/view.php?id=29217