diff --git a/EXE_MachMgr.cpp b/EXE_MachMgr.cpp index b0c96b0..3275b76 100644 --- a/EXE_MachMgr.cpp +++ b/EXE_MachMgr.cpp @@ -822,13 +822,6 @@ ExeGetRawPartFromPart( int nPartId) VERIFY_MACHMGR( pMachMgr, GDB_ID_NULL) // cerco il grezzo della fase corrente della macchinata corrente cui appartiene il pezzo int nRawId = pMachMgr->GetRawPartFromPart( nPartId) ; - ExeSetModified() ; - // se richiesto, salvo il comando Lua equivalente - if ( IsCmdLog()) { - string sLua = "EgtGetRawPartFromPart(" + ToString( nPartId) + ")" + - " -- Id=" + ToString( nRawId) ; - LOG_INFO( GetCmdLogger(), sLua.c_str()) ; - } // restituisco il risultato return nRawId ; } @@ -3148,6 +3141,16 @@ ExeSetRotAxisBlock( const string& sAxis, double dVal) return pMachMgr->SetRotAxisBlock( sAxis, dVal) ; } +//----------------------------------------------------------------------------- +bool +ExeGetCalcTool( string& sTool, string& sHead, int& nExit) +{ + IMachMgr* pMachMgr = GetCurrMachMgr() ; + VERIFY_MACHMGR( pMachMgr, false) + // restituisco l'utensile, la testa e l'uscita correnti per il calcolo sulla macchina della macchinata corrente + return ( pMachMgr->GetCalcTool( sTool) && pMachMgr->GetCalcHead( sHead) && pMachMgr->GetCalcExit( nExit)) ; +} + //---------------------------------------------------------------------------- bool ExeGetRotAxisBlocked( int nInd, string& sAxis, double& dVal) @@ -3158,36 +3161,6 @@ ExeGetRotAxisBlocked( int nInd, string& sAxis, double& dVal) return pMachMgr->GetRotAxisBlocked( nInd, sAxis, dVal) ; } -//----------------------------------------------------------------------------- -bool -ExeGetCalcTool( string& sTool) -{ - IMachMgr* pMachMgr = GetCurrMachMgr() ; - VERIFY_MACHMGR( pMachMgr, false) - // restituisco il nome dell'utensile corrente per il calcolo sulla macchina della macchinata corrente - return pMachMgr->GetCalcTool( sTool) ; -} - -//----------------------------------------------------------------------------- -bool -ExeGetCalcHead( string& sHead) -{ - IMachMgr* pMachMgr = GetCurrMachMgr() ; - VERIFY_MACHMGR( pMachMgr, false) - // restituisco il nome della testa corrente per il calcolo sulla macchina della macchinata corrente - return pMachMgr->GetCalcHead( sHead) ; -} - -//----------------------------------------------------------------------------- -bool -ExeGetCalcExit( int& nExit) -{ - IMachMgr* pMachMgr = GetCurrMachMgr() ; - VERIFY_MACHMGR( pMachMgr, false) - // restituisco il numero dell'uscita corrente per il calcolo sulla macchina della macchinata corrente - return pMachMgr->GetCalcExit( nExit) ; -} - //----------------------------------------------------------------------------- bool ExeGetCalcAngles( const Vector3d& vtDirT, const Vector3d& vtDirA, diff --git a/EgtExecutor.rc b/EgtExecutor.rc index 7d59b2a..3a60cb4 100644 Binary files a/EgtExecutor.rc and b/EgtExecutor.rc differ diff --git a/LUA_MachMgr.cpp b/LUA_MachMgr.cpp index 3e07f70..ba53b76 100644 --- a/LUA_MachMgr.cpp +++ b/LUA_MachMgr.cpp @@ -3323,7 +3323,7 @@ LuaGetCalcTool( lua_State* L) string sTool ; string sHead ; int nExit ; - bool bOk = ExeGetCalcTool( sTool) && ExeGetCalcHead( sHead) && ExeGetCalcExit( nExit) ; + bool bOk = ExeGetCalcTool( sTool, sHead, nExit) ; // restituisco il risultato if ( bOk) { LuaSetParam( L, sTool) ;