NPAL17002: EDF578: Problem when trying to import some ACIS and IGES files. Correct error message.

This commit is contained in:
jfa 2007-10-04 12:11:23 +00:00
parent bfc5cf54e0
commit 46c358c504
2 changed files with 12 additions and 6 deletions

View File

@ -28,7 +28,7 @@
#include <TopoDS_Shape.hxx> #include <TopoDS_Shape.hxx>
#include <TCollection_AsciiString.hxx> #include <TCollection_AsciiString.hxx>
#include <Standard_ConstructionError.hxx> #include <Standard_Failure.hxx>
#ifdef WNT #ifdef WNT
#include <windows.h> #include <windows.h>
@ -104,8 +104,11 @@ Standard_Integer GEOMImpl_ExportDriver::Execute(TFunction_Logbook& log) const
if ( anExportLib ) if ( anExportLib )
fp = (funcPoint)GetProc( anExportLib, "Export" ); fp = (funcPoint)GetProc( anExportLib, "Export" );
if ( !fp ) if ( !fp ) {
return 0; TCollection_AsciiString aMsg = aFormatName;
aMsg += " plugin was not installed";
Standard_Failure::Raise(aMsg.ToCString());
}
// perform the export // perform the export
int res = fp( aShape, aFileName, aFormatName ); int res = fp( aShape, aFileName, aFormatName );

View File

@ -29,7 +29,7 @@
#include <TopoDS_Shape.hxx> #include <TopoDS_Shape.hxx>
#include <Standard_ConstructionError.hxx> #include <Standard_Failure.hxx>
#include <StdFail_NotDone.hxx> #include <StdFail_NotDone.hxx>
#ifdef WNT #ifdef WNT
@ -98,8 +98,11 @@ Standard_Integer GEOMImpl_ImportDriver::Execute(TFunction_Logbook& log) const
if ( anImportLib ) if ( anImportLib )
fp = (funcPoint)GetProc( anImportLib, "Import" ); fp = (funcPoint)GetProc( anImportLib, "Import" );
if ( !fp ) if ( !fp ) {
return 0; TCollection_AsciiString aMsg = aFormatName;
aMsg += " plugin was not installed";
Standard_Failure::Raise(aMsg.ToCString());
}
// perform the import // perform the import
TCollection_AsciiString anError; TCollection_AsciiString anError;