EgtExecutor 1.6v3 :
- aggiunta KeepFixture ed estesa KeepRawPart.
This commit is contained in:
+24
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user