EgtExecutor 1.6v3 :

- aggiunta KeepFixture ed estesa KeepRawPart.
This commit is contained in:
Dario Sassi
2016-10-17 07:57:36 +00:00
parent cd50f887b8
commit cd1e810cf1
3 changed files with 46 additions and 5 deletions
+24 -3
View File
@@ -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)