EgtExecutor :
- a Exe/Lua ExportSvg aggiunto parametro Filter.
This commit is contained in:
+4
-2
@@ -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()) ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user