From fc8ee49c11fc1db29fa4cb83d4baad501215e667 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Mon, 12 May 2025 09:48:27 +0200 Subject: [PATCH] EgtExecutor 2.7e2 : - modifiche per gestione lavorazioni con percorsi utensile vuoti. --- EXE_MachMgr.cpp | 26 +++++++++++++------------- EgtExecutor.rc | Bin 18890 -> 18890 bytes LUA_MachMgr.cpp | 47 +++++++++++++++++++++++++++++------------------ 3 files changed, 42 insertions(+), 31 deletions(-) diff --git a/EXE_MachMgr.cpp b/EXE_MachMgr.cpp index 7611214..f339dd2 100644 --- a/EXE_MachMgr.cpp +++ b/EXE_MachMgr.cpp @@ -559,7 +559,7 @@ ExeModifyRawPart( int nRawId, Point3d ptOrig, double dLength, double dWidth, dou //----------------------------------------------------------------------------- bool -ExeModifyRawPart( int nRawId, int nCrvId, double dOverMat, double dZmin, double dHeight, Color cCol) +ExeModifyRawPart( int nRawId, int nCrvId, double dOverMat, double dHeight, Color cCol) { IMachMgr* pMachMgr = GetCurrMachMgr() ; VERIFY_MACHMGR( pMachMgr, false) @@ -2106,42 +2106,42 @@ ExeGetPrevOperation( int nId) } //----------------------------------------------------------------------------- int -ExeGetFirstActiveOperation( void) +ExeGetFirstActiveOperation( bool bNeedMachNotEmpty) { IMachMgr* pMachMgr = GetCurrMachMgr() ; VERIFY_MACHMGR( pMachMgr, GDB_ID_NULL) // recupero la prima operazione attiva della macchinata corrente - return pMachMgr->GetFirstActiveOperation() ; + return pMachMgr->GetFirstActiveOperation( bNeedMachNotEmpty) ; } //----------------------------------------------------------------------------- int -ExeGetNextActiveOperation( int nId) +ExeGetNextActiveOperation( int nId, bool bNeedMachNotEmpty) { IMachMgr* pMachMgr = GetCurrMachMgr() ; VERIFY_MACHMGR( pMachMgr, GDB_ID_NULL) // recupero la successiva operazione attiva della macchinata corrente - return pMachMgr->GetNextActiveOperation( nId) ; + return pMachMgr->GetNextActiveOperation( nId, bNeedMachNotEmpty) ; } //----------------------------------------------------------------------------- int -ExeGetLastActiveOperation( void) +ExeGetLastActiveOperation( bool bNeedMachNotEmpty) { IMachMgr* pMachMgr = GetCurrMachMgr() ; VERIFY_MACHMGR( pMachMgr, false) // recupero l'ultima operazione attiva della macchinata corrente - return pMachMgr->GetLastActiveOperation() ; + return pMachMgr->GetLastActiveOperation( bNeedMachNotEmpty) ; } //----------------------------------------------------------------------------- int -ExeGetPrevActiveOperation( int nId) +ExeGetPrevActiveOperation( int nId, bool bNeedMachNotEmpty) { IMachMgr* pMachMgr = GetCurrMachMgr() ; VERIFY_MACHMGR( pMachMgr, GDB_ID_NULL) // recupero la precedente operazione attiva della macchinata corrente - return pMachMgr->GetPrevActiveOperation( nId) ; + return pMachMgr->GetPrevActiveOperation( nId, bNeedMachNotEmpty) ; } //----------------------------------------------------------------------------- @@ -2206,12 +2206,12 @@ ExeGetOperationId( const string& sName) //----------------------------------------------------------------------------- bool -ExeIsOperationEmpty( int nId) +ExeIsOperationEmpty( int nId, int nEmptyType) { IMachMgr* pMachMgr = GetCurrMachMgr() ; VERIFY_MACHMGR( pMachMgr, false) // recupero lo stato dell'operazione indicata della macchinata corrente - return pMachMgr->IsOperationEmpty( nId) ; + return pMachMgr->IsOperationEmpty( nId, nEmptyType) ; } //----------------------------------------------------------------------------- @@ -2840,12 +2840,12 @@ ExeGetMachiningSkippedGeometry( SELVECTOR& vIds) //----------------------------------------------------------------------------- bool -ExeIsMachiningEmpty( void) +ExeIsMachiningEmpty( int nEmptyType) { IMachMgr* pMachMgr = GetCurrMachMgr() ; VERIFY_MACHMGR( pMachMgr, false) // restituisco lo stato della lavorazione corrente - return pMachMgr->IsMachiningEmpty() ; + return pMachMgr->IsMachiningEmpty( nEmptyType) ; } //----------------------------------------------------------------------------- diff --git a/EgtExecutor.rc b/EgtExecutor.rc index 6c15af52f79c5f238e9f45b3246978addc3c679b..b84fe29a535b11c7ea1b31e459c57ced090a9e0f 100644 GIT binary patch delta 81 zcmX>#neo(Q#tpyN7>zdnW^-i*QjT29S-`yGOp`YVRxuh)cH~Ol+$UrM5m>XaK delta 81 zcmX>#neo(Q#tpyN7!5c7W^-i*QjT29S-`yGOp`YVRxuh*cH~Ol+$UrM5