EgtExecutor :

- a ExeAdvancedImport aggiunto parametro dLinToler.
This commit is contained in:
Dario Sassi
2020-11-21 17:56:50 +00:00
parent 4deddf22d5
commit 7086c90368
+4 -2
View File
@@ -299,7 +299,7 @@ ExeAdvancedImportIsEnabled( void)
//-----------------------------------------------------------------------------
bool
ExeAdvancedImport( const string& sFilePath)
ExeAdvancedImport( const string& sFilePath, double dToler)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_GEOMDB( pGseCtx, false)
@@ -330,7 +330,7 @@ ExeAdvancedImport( const string& sFilePath)
sExec = "EgtConverterR32.exe" ;
#endif
string sCmdLine = "\"" + sExec + "\" \"" + sFilePath + "\" \"" + sFileOut + "\" \"" +
ExeGetKey() +"\" \"" + ToString( ExeGetDebugLevel()) + "\"" ;
ToString( dToler, 3) + "\" \"" + ToString( ExeGetDebugLevel()) +"\" \"" + ExeGetKey() + "\"" ;
STARTUPINFO si ;
PROCESS_INFORMATION pi ;
ZeroMemory( &si, sizeof( si)) ;
@@ -361,6 +361,8 @@ ExeAdvancedImport( const string& sFilePath)
CmdLogOff cmdLogOff ;
bOk = bOk && ExeOpenFile( sFileOut) ;
cmdLogOff.Reset() ;
if ( ExeGetDebugLevel() < 5)
EraseFile( sFileOut) ;
// aggiorno stato file corrente
pGseCtx->m_sFilePath = sFilePath ;
ExeSetModified() ;