From 1fd62c71802a96ddca65a591eb09b43dda736519 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Sat, 2 Dec 2017 18:38:30 +0000 Subject: [PATCH] EgtExecutor 1.8k4 : - a ApplyAllMachinings di Exe e Lua aggiunto parametro di ricalcolo - in Lua corretta EgtSetInfo con stringhe numeriche. --- EXE_MachMgr.cpp | 14 +++++---- EgtExecutor.rc | Bin 15096 -> 15096 bytes LUA_GdbObjAttribs.cpp | 64 ++++++++++++++++++++++-------------------- LUA_MachMgr.cpp | 8 ++++-- 4 files changed, 46 insertions(+), 40 deletions(-) diff --git a/EXE_MachMgr.cpp b/EXE_MachMgr.cpp index 4878da0..02bbfa1 100644 --- a/EXE_MachMgr.cpp +++ b/EXE_MachMgr.cpp @@ -2340,7 +2340,7 @@ ExeGetMachiningEndPoint( Point3d& ptEnd) //----------------------------------------------------------------------------- bool -ExeApplyAllMachinings( bool bStopOnFirstErr, string& sErrList) +ExeApplyAllMachinings( bool bRecalc, bool bStopOnFirstErr, string& sErrList) { sErrList.clear() ; IMachMgr* pMachMgr = GetCurrMachMgr() ; @@ -2357,7 +2357,7 @@ ExeApplyAllMachinings( bool bStopOnFirstErr, string& sErrList) while ( nOperId != GDB_ID_NULL) { if ( pMachMgr->GetOperationType( nOperId) == OPER_DISP) { pMachMgr->SetCurrPhase( pMachMgr->GetOperationPhase( nOperId)) ; - if ( ! pMachMgr->DispositionSpecialApply( nOperId, true)) { + if ( ! pMachMgr->DispositionSpecialApply( nOperId, bRecalc)) { bOk = false ; if ( pMachMgr->GetLastErrorId() != 0) sErrList += pMachMgr->GetOperationName( nOperId) + " -> " + pMachMgr->GetLastErrorString() + "\r\n" ; @@ -2367,7 +2367,7 @@ ExeApplyAllMachinings( bool bStopOnFirstErr, string& sErrList) } else { pMachMgr->SetCurrMachining( nOperId) ; - if ( ! pMachMgr->MachiningApply( true)) { + if ( ! pMachMgr->MachiningApply( bRecalc, true)) { bOk = false ; if ( pMachMgr->GetLastErrorId() != 0) { sErrList += pMachMgr->GetOperationName( nOperId) + " -> " + pMachMgr->GetLastErrorString() ; @@ -2390,11 +2390,13 @@ ExeApplyAllMachinings( bool bStopOnFirstErr, string& sErrList) pMachMgr->ResetCurrMachining() ; // Ripristino stato visualizzazione macchina pMachMgr->SetMachineLook( nCurrLook) ; - // Progetto modificato - ExeSetModified() ; + // Se richiesto ricalcolo, progetto modificato + if ( bRecalc) + ExeSetModified() ; // se richiesto, salvo il comando Lua equivalente if ( IsCmdLog()) { - string sLua = "EgtApplyAllMachinings(" + string( bStopOnFirstErr ? "true" : "false") + ")" + + string sLua = "EgtApplyAllMachinings(" + string( bRecalc ? "true" : "false") + ")" + + string( bStopOnFirstErr ? "true" : "false") + ")" + " -- Ok=" + ToString( bOk) ; LOG_INFO( GetCmdLogger(), sLua.c_str()) ; } diff --git a/EgtExecutor.rc b/EgtExecutor.rc index 0f6049d63ce6f69adeed44eb12af14a524770330..ef8c80dd687232d5d481a3755708f29b97555017 100644 GIT binary patch delta 97 zcmexS`lEEiA2vpl%@@V4Gflq2na5}{Ignd-a{*Tk3sCf++-0W82LxfF21;&>n->Y| cF@rU@0x76sKgP|Iq`|@mPYXATM delta 97 zcmexS`lEEiA2vqg%@@V4Gflq2na5~6Ignd-a{*Tk3sCf++-0W82LxfF21;&>n->Y| cF@rU@0x76sKgP|Iq`|@m