EgtMachKernel 1.6j4 :

- modifiche a DB utensili per gestione utensile corrente
- prima versione generatore codice.
This commit is contained in:
Dario Sassi
2015-10-31 09:45:57 +00:00
parent a4525dd059
commit 2324a8b3f4
22 changed files with 835 additions and 184 deletions
+7 -5
View File
@@ -1,8 +1,8 @@
//----------------------------------------------------------------------------
// EgalTech 2015-2015
//----------------------------------------------------------------------------
// File : Simulation.cpp Data : 19.10.15 Versione : 1.6j2
// Contenuto : Implementazione della classe Simulation.
// File : Simulator.cpp Data : 19.10.15 Versione : 1.6j2
// Contenuto : Implementazione della classe Simulator.
//
//
//
@@ -17,6 +17,7 @@
#include "MachMgr.h"
#include "Machining.h"
#include "MachiningConst.h"
#include "/EgtDev/Include/EMkToolConst.h"
#include "/EgtDev/Include/EMkOperationConst.h"
using namespace std ;
@@ -186,12 +187,13 @@ Simulator::UpdateTool( void)
Machining* pMch = dynamic_cast<Machining*>( m_pGeomDB->GetUserObj( m_nOpId)) ;
if ( pMch == nullptr || ! pMch->GetParam( MPA_TOOL, sTool))
return false ;
const ToolData* pTdata = m_pMchMgr->TdbGetToolData( sTool) ;
if ( pTdata == nullptr)
if ( ! m_pMchMgr->TdbSetCurrTool( sTool))
return false ;
// se cambiato, attivo l'utensile della lavorazione
if ( sTool != m_sTool) {
if ( ! m_pMchMgr->SetCalcTool( sTool, pTdata->m_sHead, pTdata->m_nExit))
string sHead ; m_pMchMgr->TdbGetCurrToolParam( TPA_HEAD, sHead) ;
int nExit ; m_pMchMgr->TdbGetCurrToolParam( TPA_EXIT, nExit) ;
if ( ! m_pMchMgr->SetCalcTool( sTool, sHead, nExit))
return false ;
m_sTool = sTool ;
}