From d7b40e4a1878ab232f627bdd822739a906680fc8 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Tue, 6 Apr 2021 08:39:16 +0000 Subject: [PATCH] EgtMachKernel : - agli script per disegno utensili aggiunto parametro TPA_DIST. --- MachMgrDBTools.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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