Data exchange between different versions of oc

hi all,
what is the best, most efficient, way to exchange 3d objects data (TopoDS_Shape-s) between oc 6.9.1 and oc 7.7.0?
to use step or iges files is for me the last chance...
thank you for answers in advance.
best regards,
adrian

gkv311 n's picture

You may use native OCCT formats: XCAF document (.xbf file format, may store names and colors), ascii .brep format (BRepTools::Write() + BRepTools::Read()) or it's binary version (BinTools::Write() and BinTools::Read()).

The following article provides some details about history of these formats. The newer versions of OCCT should be able reading files stored by older OCCT, and there is an API to write files in older compatible format when using newer OCCT.

Adrian Helcman's picture

thank you for your response