0000931: Can't change STEP/IGES export units through Python interface

This commit is contained in:
wmayer
2013-07-09 19:02:53 +02:00
parent 017404250c
commit fc91651b3c
2 changed files with 37 additions and 1 deletions

View File

@@ -13,6 +13,8 @@
#ifndef _PreComp_
# include <Python.h>
# include <Interface_Static.hxx>
# include <IGESControl_Controller.hxx>
# include <STEPControl_Controller.hxx>
# include <OSD.hxx>
# include <sstream>
#endif
@@ -228,6 +230,8 @@ void PartExport initPart()
Part::GeomSurfaceOfExtrusion ::init();
IGESControl_Controller::Init();
STEPControl_Controller::Init();
// set the user-defined units
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter()
.GetGroup("BaseApp")->GetGroup("Preferences")->GetGroup("Mod/Part");