]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
NPAL17002: EDF578: Problem when trying to import some ACIS and IGES files. Correct...
authorjfa <jfa@opencascade.com>
Thu, 4 Oct 2007 12:11:23 +0000 (12:11 +0000)
committerjfa <jfa@opencascade.com>
Thu, 4 Oct 2007 12:11:23 +0000 (12:11 +0000)
src/GEOMImpl/GEOMImpl_ExportDriver.cxx
src/GEOMImpl/GEOMImpl_ImportDriver.cxx

index 190116ccb8c30aa50f63a393ce6d7fefe79d1086..65e5abefab5b2251f491dbf529c1a22126b4df3b 100644 (file)
@@ -28,7 +28,7 @@
 #include <TopoDS_Shape.hxx>
 #include <TCollection_AsciiString.hxx>
 
-#include <Standard_ConstructionError.hxx>
+#include <Standard_Failure.hxx>
 
 #ifdef WNT
 #include <windows.h>
@@ -104,8 +104,11 @@ Standard_Integer GEOMImpl_ExportDriver::Execute(TFunction_Logbook& log) const
   if ( anExportLib )
     fp = (funcPoint)GetProc( anExportLib, "Export" );
 
-  if ( !fp )
-    return 0;
+  if ( !fp ) {
+    TCollection_AsciiString aMsg = aFormatName;
+    aMsg += " plugin was not installed";
+    Standard_Failure::Raise(aMsg.ToCString());
+  }
 
   // perform the export
   int res = fp( aShape, aFileName, aFormatName );
index 0d1480f85087042c4afc1ab3d3d6b86f26e3ae24..1e6455dc188a3b96c87a72678303ac0cc1b9aff6 100644 (file)
@@ -29,7 +29,7 @@
 
 #include <TopoDS_Shape.hxx>
 
-#include <Standard_ConstructionError.hxx>
+#include <Standard_Failure.hxx>
 #include <StdFail_NotDone.hxx>
 
 #ifdef WNT
@@ -98,8 +98,11 @@ Standard_Integer GEOMImpl_ImportDriver::Execute(TFunction_Logbook& log) const
   if ( anImportLib )
     fp = (funcPoint)GetProc( anImportLib, "Import" );
 
-  if ( !fp )
-    return 0;
+  if ( !fp ) {
+    TCollection_AsciiString aMsg = aFormatName;
+    aMsg += " plugin was not installed";
+    Standard_Failure::Raise(aMsg.ToCString());
+  }
 
   // perform the import
   TCollection_AsciiString anError;