mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-24 10:02:04 +05:00
NPAL17002: EDF578: Problem when trying to import some ACIS and IGES files. Correct error message.
This commit is contained in:
parent
bfc5cf54e0
commit
46c358c504
@ -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 );
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user