On 26/10/2015 at 05:30, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 17
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;
---------
Hi,
We have some c++ code that exports the current scene into an OBJ file.
This has worked fine under R14-16, but with R17 it now fails.
Initially we thought it was an SDK issue (we build against R14) but after testing this by updating to the R17 API we still have the same problem.
The call we use is SaveDocument()
Param 1: Polygonized version of the current scene. GetActiveDocument()- >Polygonize()
Param 2: Filename structure initialised to the path to export to.
Param 3: Flags SAVEDOCUMENTFLAGS_AUTOSAVE|SAVEDOCUMENTFLAGS_DONTADDTORECENTLIST
Param 4 Format flag **FORMAT_OBJEXPORT
** I'm not sure why this fails under R17, but it would be good to know if we are doing it incorrectly now (for R17) or if it's just broken.
The call to SaveDocument simply returns false.
Thanks for any help in advance!
Cheers,
Simon.