EgtMachKernel 1.6j4 :
- modifiche a DB utensili per gestione utensile corrente - prima versione generatore codice.
This commit is contained in:
+7
-5
@@ -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 ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user