Handle API change in OCC 6.5

This commit is contained in:
wmayer 2012-10-06 12:17:08 +02:00
parent 1933093e71
commit 8a4c0ec2c0

View File

@ -671,7 +671,11 @@ static PyObject * exporter(PyObject *self, PyObject *args)
writer.Transfer(hDoc, STEPControl_AsIs);
// edit STEP header
#if OCC_VERSION_HEX > 0x060500
APIHeaderSection_MakeHeader makeHeader(writer.ChangeWriter().Model());
#else
APIHeaderSection_MakeHeader makeHeader(writer.Writer().Model());
#endif
makeHeader.SetName(new TCollection_HAsciiString((const Standard_CString)filename));
makeHeader.SetAuthorValue (1, new TCollection_HAsciiString("FreeCAD"));
makeHeader.SetOrganizationValue (1, new TCollection_HAsciiString("FreeCAD"));