From cd1e810cf1abb439d512ac99cdf51b0ede9feec8 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Mon, 17 Oct 2016 07:57:36 +0000 Subject: [PATCH] EgtExecutor 1.6v3 : - aggiunta KeepFixture ed estesa KeepRawPart. --- EXE_MachMgr.cpp | 27 ++++++++++++++++++++++++--- EgtExecutor.rc | Bin 11694 -> 11694 bytes LUA_MachMgr.cpp | 24 ++++++++++++++++++++++-- 3 files changed, 46 insertions(+), 5 deletions(-) diff --git a/EXE_MachMgr.cpp b/EXE_MachMgr.cpp index b533ff8..0516196 100644 --- a/EXE_MachMgr.cpp +++ b/EXE_MachMgr.cpp @@ -455,16 +455,17 @@ ExeModifyRawPartHeight( int nRawId, double dHeight) //----------------------------------------------------------------------------- bool -ExeKeepRawPart( int nRawId) +ExeKeepRawPart( int nRawId, int nSouPhase) { GseContext* pGseCtx = GetCurrGseContext() ; VERIFY_CTX_MACHMGR( pGseCtx, false) // confermo il grezzo nella fase corrente della macchinata corrente - bool bOk = pGseCtx->m_pMachMgr->KeepRawPart( nRawId) ; + bool bOk = pGseCtx->m_pMachMgr->KeepRawPart( nRawId, nSouPhase) ; ExeSetModified() ; // se richiesto, salvo il comando Lua equivalente if ( IsCmdLog()) { - string sLua = "EgtKeepRawPart(" + ToString( nRawId) + ")" + + string sLua = "EgtKeepRawPart(" + ToString( nRawId) + "," + + ToString( nSouPhase) + ")" + " -- Ok=" + ToString( bOk) ; LOG_INFO( GetCmdLogger(), sLua.c_str()) ; } @@ -829,6 +830,26 @@ ExeAddFixture( const string& sName, const Point3d& ptPos, double dAngRotDeg, dou return nId ; } +//----------------------------------------------------------------------------- +bool +ExeKeepFixture( int nFxtId, int nSouPhase) +{ + GseContext* pGseCtx = GetCurrGseContext() ; + VERIFY_CTX_MACHMGR( pGseCtx, false) + // confermo il bloccaggio nella fase corrente della macchinata corrente + bool bOk = pGseCtx->m_pMachMgr->KeepFixture( nFxtId, nSouPhase) ; + ExeSetModified() ; + // se richiesto, salvo il comando Lua equivalente + if ( IsCmdLog()) { + string sLua = "EgtKeepFixture(" + ToString( nFxtId) + "," + + ToString( nSouPhase) + ")" + + " -- Ok=" + ToString( bOk) ; + LOG_INFO( GetCmdLogger(), sLua.c_str()) ; + } + // restituisco il risultato + return bOk ; +} + //----------------------------------------------------------------------------- bool ExeRemoveFixture( int nFxtId) diff --git a/EgtExecutor.rc b/EgtExecutor.rc index 63c894cb57a55c7cc7736309a7bcc1615d8bcdea..ae4e3842e807a9846de88cf2b0935a6eadc6e4ea 100644 GIT binary patch delta 97 zcmZ1%y)JsgA2vqg%@@V4Gflq2na5~6Ignd-a{*Tk3sCf++-0W82LxfF21;&>n->Y| cF@rU@0x76sKgP|Iq`|@mn->Y| cF@rU@0x76sKgP|Iq`|@m