From 553efdec1b8b353e5a8149ce3a47d60af72a7426 Mon Sep 17 00:00:00 2001 From: DarioS Date: Wed, 11 Jan 2023 14:51:16 +0100 Subject: [PATCH] EgtExecutor 2.5a2 : - aggiunto parametro nFilter a tutte le funzioni di esportazione. --- EXE_Exchange.cpp | 10 ++++++---- EgtExecutor.rc | Bin 18890 -> 18890 bytes LUA_Exchange.cpp | 14 ++++++++++---- 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/EXE_Exchange.cpp b/EXE_Exchange.cpp index fd8fde1..723ff63 100644 --- a/EXE_Exchange.cpp +++ b/EXE_Exchange.cpp @@ -463,7 +463,7 @@ ExeAdvancedImport( const string& sFilePath, double dToler) //----------------------------------------------------------------------------- bool -ExeExportDxf( int nId, const string& sFilePath, int nFlag) +ExeExportDxf( int nId, const string& sFilePath, int nFlag, int nFilter) { IGeomDB* pGeomDB = GetCurrGeomDB() ; VERIFY_GEOMDB( pGeomDB, false) @@ -473,7 +473,7 @@ ExeExportDxf( int nId, const string& sFilePath, int nFlag) PtrOwner pExpDxf( MyCreateExportDxf()) ; bOk = bOk && ! IsNull( pExpDxf) ; // eseguo l'esportazione - pExpDxf->SetOptions( EEXFLT_DEFAULT, nFlag) ; + pExpDxf->SetOptions( nFilter, nFlag) ; bOk = bOk && pExpDxf->Export( pGeomDB, nId, sFilePath) ; // se richiesto, salvo il comando Lua equivalente if ( IsCmdLog()) { @@ -489,7 +489,7 @@ ExeExportDxf( int nId, const string& sFilePath, int nFlag) //----------------------------------------------------------------------------- bool -ExeExportStl( int nId, const string& sFilePath) +ExeExportStl( int nId, const string& sFilePath, int nFilter) { IGeomDB* pGeomDB = GetCurrGeomDB() ; VERIFY_GEOMDB( pGeomDB, false) @@ -499,6 +499,7 @@ ExeExportStl( int nId, const string& sFilePath) PtrOwner pExpStl( MyCreateExportStl()) ; bOk = bOk && ! IsNull( pExpStl) ; // eseguo l'esportazione + pExpStl->SetOptions( nFilter) ; bOk = bOk && pExpStl->Export( pGeomDB, nId, sFilePath) ; // se richiesto, salvo il comando Lua equivalente if ( IsCmdLog()) { @@ -513,7 +514,7 @@ ExeExportStl( int nId, const string& sFilePath) //----------------------------------------------------------------------------- bool -ExeExport3MF( int nId, const string& sFilePath) +ExeExport3MF( int nId, const string& sFilePath, int nFilter) { IGeomDB* pGeomDB = GetCurrGeomDB() ; VERIFY_GEOMDB( pGeomDB, false) @@ -523,6 +524,7 @@ ExeExport3MF( int nId, const string& sFilePath) PtrOwner pExp3MF( MyCreateExport3MF()) ; bOk = bOk && ! IsNull( pExp3MF) ; // eseguo l'esportazione + pExp3MF->SetOptions( nFilter) ; bOk = bOk && pExp3MF->Export( pGeomDB, nId, sFilePath) ; // se richiesto, salvo il comando Lua equivalente if ( IsCmdLog()) { diff --git a/EgtExecutor.rc b/EgtExecutor.rc index a68d88ebaf6043a515bfc78297aaade54e440ad1..a456b14b32ffc8f2ccd53b8c9a447f14bd2ad4e9 100644 GIT binary patch delta 81 zcmX>#neo(Q#tpyN7>zdnW^-i*QjT29S-`yGOp`YVRxuh)cH~Ol+$UrM5m>XaK delta 81 zcmX>#neo(Q#tpyN7!5c7W^-i*QjT29S-`yGOp`YVRxuh*cH~Ol+$UrM5