EgtExecutor 2.4a1 :
- ExeGetRawPartFromPart non imposta più progetto modificato (non lo modifica) - ExeGetCalcTool ora restituisce utensile, testa e uscita.
This commit is contained in:
+10
-37
@@ -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,
|
||||
|
||||
Binary file not shown.
+1
-1
@@ -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) ;
|
||||
|
||||
Reference in New Issue
Block a user