Home
Reply
Contributor
androy
Posts: 8

Save/Restore Binary ACIS Files

Hello,

 

I have quite a simple question about the binary save/load.

From the article http://doc.spatial.com/index.php/SAT_Save_and_Restore it's clear that I have to use functions api_save_entity_list and api_restore_entity_list and specify that I'm going to use binary format. And it works perfectly for saving, but when it comes to the restoring of the ACIS data from the binary file I'm always getting the error stating "unexpected end of restore file". 

I'm sure there should be easy solution for this problem, but I was not able to find anything specific in the documentation.

 

Thanks in advance,

Andrey

Contributor
Igorunius
Posts: 11

Re: Save/Restore Binary ACIS Files

Please, you can read the follow topic:

http://forums.spatial.com/t5/3D-Modeling/ACIS18-BinaryFile-read-problems/td-p/814

 

maybe, it have the solution.

Contributor
androy
Posts: 8

Re: Save/Restore Binary ACIS Files

Thanks for your answer.

It was very easy to fix the problem just by using appropriate flags while opening file for read write ("rb" and "wb").