diff --git a/MachMgrDBTools.cpp b/MachMgrDBTools.cpp index a85694a..23ff9c1 100644 --- a/MachMgrDBTools.cpp +++ b/MachMgrDBTools.cpp @@ -615,6 +615,8 @@ MachMgr::UpdateStandardToolDraw( const ToolData* pTdata, int nGenCtx, int nToolC pTdata->GetParam( TPA_DIAM, dDiam) ; double dTotDiam = 0 ; pTdata->GetParam( TPA_TOTDIAM, dTotDiam) ; + double dDist = 0 ; + pTdata->GetParam( TPA_DIST, dDist) ; double dMaxMat = 0 ; pTdata->GetParam( TPA_MAXMAT, dMaxMat) ; double dCornRad = 0 ; @@ -678,6 +680,7 @@ MachMgr::UpdateStandardToolDraw( const ToolData* pTdata, int nGenCtx, int nToolC bOk = bOk && ExeLuaSetGlobStringVar( "TOOL.TOOLHOLDER", sThPath) ; bOk = bOk && ExeLuaSetGlobNumVar( "TOOL.LEN", dLen) ; bOk = bOk && ExeLuaSetGlobNumVar( "TOOL.DIAM", dDiam) ; + bOk = bOk && ExeLuaSetGlobNumVar( "TOOL.DIST", dDist) ; bOk = bOk && ExeLuaSetGlobNumVar( "TOOL.MAXMAT", dMaxMat) ; bOk = bOk && ExeLuaSetGlobNumVar( "TOOL.THICK", dThick) ; bOk = bOk && ExeLuaSetGlobNumVar( "TOOL.CORNRAD", dCornRad) ; @@ -719,6 +722,8 @@ MachMgr::UpdateCustomToolDraw( const ToolData* pTdata, int nGenCtx, int nToolCtx pTdata->GetParam( TPA_LEN, dLen) ; double dDiam = 0 ; pTdata->GetParam( TPA_DIAM, dDiam) ; + double dDist = 0 ; + pTdata->GetParam( TPA_DIST, dDist) ; // Non pił limitato alle sole frese //if ( nType != TT_MILL_STD && nType != TT_MILL_NOTIP && nType != TT_MILL_POLISHING) // return TD_INT_ERR ; @@ -730,6 +735,7 @@ MachMgr::UpdateCustomToolDraw( const ToolData* pTdata, int nGenCtx, int nToolCtx // Assegno i dati utensile bOk = bOk && ExeLuaSetGlobNumVar( "TOOL.LEN", dLen) ; bOk = bOk && ExeLuaSetGlobNumVar( "TOOL.DIAM", dDiam) ; + bOk = bOk && ExeLuaSetGlobNumVar( "TOOL.DIST", dDist) ; // Eseguo aggiornamento utensile bOk = bOk && ExeLuaCallFunction( "AdjustCustomTool") ; // Recupero errore