Salome HOME
IPAL21444 Problem of Dumps study after reading IGES file RELIQUAT_5x_30102009
authordmv <dmv@opencascade.com>
Thu, 29 Oct 2009 14:21:46 +0000 (14:21 +0000)
committerdmv <dmv@opencascade.com>
Thu, 29 Oct 2009 14:21:46 +0000 (14:21 +0000)
src/GEOMImpl/GEOMImpl_IInsertOperations.cxx

index 102ebba74e2438d4f4918c9c73a8746c06a1b7e6..884c457cff9047a88f9020c76b83db5764e0618b 100644 (file)
@@ -240,8 +240,10 @@ Handle(GEOM_Object) GEOMImpl_IInsertOperations::Import
   }
 
   //Make a Python command
-  GEOM::TPythonDump(aFunction) << result << " = geompy.Import(\""
-    << theFileName.ToCString() << "\", \"" << theFormatName.ToCString() << "\")";
+  if( theFormatName != "IGES_UNIT" ) {
+    GEOM::TPythonDump(aFunction) << result << " = geompy.Import(\""
+      << theFileName.ToCString() << "\", \"" << theFormatName.ToCString() << "\")";
+  }
 
   SetErrorCode(OK);