EgtExecutor :
- a ExeInitMachMgr aggiunto parametro sToolMakersDir - aggiunta funzione ExeTdbCurrToolDraw.
This commit is contained in:
+13
-2
@@ -31,14 +31,14 @@ using namespace std ;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeInitMachMgr( const string& sMachinesDir)
|
||||
ExeInitMachMgr( const string& sMachinesDir, const string& sToolMakersDir)
|
||||
{
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_GEOMDB( pGseCtx, false)
|
||||
// inizializzazione gestore lavorazioni
|
||||
PtrOwner<IMachMgr> pMachMgr( MyCreateMachMgr()) ;
|
||||
VERIFY_NULL( Get( pMachMgr), "Error in CreateMachMgr", false)
|
||||
bool bOk = pMachMgr->Init( sMachinesDir, pGseCtx->m_pGeomDB,
|
||||
bool bOk = pMachMgr->Init( sMachinesDir, sToolMakersDir, pGseCtx->m_pGeomDB,
|
||||
GetIndCurrGseContext(), LuaGetLuaLibsDir(), LuaGetLastRequire()) ;
|
||||
// assegno il gestore al contesto
|
||||
pGseCtx->m_pMachMgr = ( bOk ? Release( pMachMgr) : nullptr) ;
|
||||
@@ -1288,6 +1288,17 @@ ExeTdbGetCurrToolMaxDepth( double& dMaxDepth)
|
||||
return pMachMgr->TdbGetCurrToolMaxDepth( dMaxDepth) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
int
|
||||
ExeTdbCurrToolDraw( int nGenCtx, int nToolCtx)
|
||||
{
|
||||
ExeSetCurrentContext( nGenCtx) ;
|
||||
IMachMgr* pMachMgr = GetCurrMachMgr() ;
|
||||
VERIFY_MACHMGR( pMachMgr, 999)
|
||||
// recupero il massimo affondamento dell'utensile
|
||||
return pMachMgr->TdbCurrToolDraw( nGenCtx, nToolCtx) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeTdbReload( void)
|
||||
|
||||
Reference in New Issue
Block a user