mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-24 03:52:03 +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 <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 );
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user