diff --git a/src/Mod/Import/Gui/AppImportGuiPy.cpp b/src/Mod/Import/Gui/AppImportGuiPy.cpp index 720e23f5fb..ab16a72b9b 100644 --- a/src/Mod/Import/Gui/AppImportGuiPy.cpp +++ b/src/Mod/Import/Gui/AppImportGuiPy.cpp @@ -520,7 +520,6 @@ private: //Interface_Static::SetCVal("write.step.schema", "AP214IS"); bool optionScheme_214; bool optionScheme_203; - hApp->NewDocument(TCollection_ExtendedString("MDTV-CAF"), hDoc); ParameterGrp::handle hGrp_stp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Mod/Import/hSTEP"); optionScheme_214 = hGrp_stp->GetBool("Scheme_214",true); optionScheme_203 = hGrp_stp->GetBool("Scheme_203",false); @@ -528,7 +527,6 @@ private: Interface_Static::SetCVal("write.step.schema", "AP214CD"); if ( optionScheme_203 ) Interface_Static::SetCVal("write.step.schema", "AP203"); - STEPCAFControl_Writer writer; writer.Transfer(hDoc, STEPControl_AsIs);