EgtExecutor :

- a Exe/Lua ExportSvg aggiunto parametro Filter.
This commit is contained in:
Dario Sassi
2019-12-06 08:23:45 +00:00
parent d1dc8f87e3
commit d7d3532dcf
2 changed files with 9 additions and 4 deletions
+4 -2
View File
@@ -308,7 +308,7 @@ ExeExportStl( int nId, const string& sFilePath)
//-----------------------------------------------------------------------------
bool
ExeExportSvg( int nId, const string& sFilePath)
ExeExportSvg( int nId, const string& sFilePath, int nFilter)
{
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, false)
@@ -318,11 +318,13 @@ ExeExportSvg( int nId, const string& sFilePath)
PtrOwner<IExportSvg> pExpSvg( MyCreateExportSvg()) ;
bOk = bOk && ! IsNull( pExpSvg) ;
// eseguo l'esportazione
pExpSvg->SetOptions( nFilter) ;
bOk = bOk && pExpSvg->Export( pGeomDB, nId, sFilePath) ;
// se richiesto, salvo il comando Lua equivalente
if ( IsCmdLog()) {
string sLua = "EgtExportSvg(" + ToString( nId) + ",'" +
StringToLuaString( sFilePath) + "')" +
StringToLuaString( sFilePath) + "'," +
ToString( nFilter) + ")" +
" -- Ok=" + ToString( bOk) ;
LOG_INFO( GetCmdLogger(), sLua.c_str()) ;
}