From 39cf61b818fa8106d6cfe6b4d049d25175a7f90b Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Sat, 17 Jun 2017 17:10:03 +0000 Subject: [PATCH] EgtInterface 1.8f4 : - aggiunte EgtSpecialUpdateDisposition, EgtUpdateMachining, EgtApplyAllMachinings e EgtUpdateAllMachinings. --- API_MachMgr.cpp | 40 ++++++++++++++++++++++++++++++++++++++++ EgtInterface.rc | Bin 11716 -> 11716 bytes 2 files changed, 40 insertions(+) diff --git a/API_MachMgr.cpp b/API_MachMgr.cpp index 662b4d0..4acf490 100644 --- a/API_MachMgr.cpp +++ b/API_MachMgr.cpp @@ -1189,6 +1189,13 @@ __stdcall EgtSpecialApplyDisposition( int nId, BOOL bRecalc) return ( ExeSpecialApplyDisposition( nId, ( bRecalc != FALSE)) ? TRUE : FALSE) ; } +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtSpecialUpdateDisposition( int nId) +{ + return ( ExeSpecialUpdateDisposition( nId) ? TRUE : FALSE) ; +} + //----------------------------------------------------------------------------- // Machinings //----------------------------------------------------------------------------- @@ -1282,6 +1289,13 @@ __stdcall EgtApplyMachining( BOOL bRecalc) return ( ExeApplyMachining( bRecalc != FALSE) ? TRUE : FALSE) ; } +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtUpdateMachining( void) +{ + return ( ExeUpdateMachining() ? TRUE : FALSE) ; +} + //----------------------------------------------------------------------------- BOOL __stdcall EgtGetMachiningParamBool( int nType, BOOL* pbVal) @@ -1352,6 +1366,32 @@ __stdcall EgtIsMachiningEmpty( void) return ( ExeIsMachiningEmpty() ? TRUE : FALSE) ; } +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtApplyAllMachinings( BOOL bStopOnFirstErr, wchar_t*& wsErrList) +{ + if ( &wsErrList == nullptr) + return FALSE ; + string sErrList ; + if ( ! ExeApplyAllMachinings( bStopOnFirstErr != FALSE, sErrList)) + return FALSE ; + wsErrList = _wcsdup( stringtoW( sErrList)) ; + return (( wsErrList == nullptr) ? FALSE : TRUE) ; +} + +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtUpdateAllMachinings( BOOL bStopOnFirstErr, wchar_t*& wsErrList) +{ + if ( &wsErrList == nullptr) + return FALSE ; + string sErrList ; + if ( ! ExeUpdateAllMachinings( bStopOnFirstErr != FALSE, sErrList)) + return FALSE ; + wsErrList = _wcsdup( stringtoW( sErrList)) ; + return (( wsErrList == nullptr) ? FALSE : TRUE) ; +} + //----------------------------------------------------------------------------- // Simulation //----------------------------------------------------------------------------- diff --git a/EgtInterface.rc b/EgtInterface.rc index bb9a46bd4f95b3222aebc6621374127d23207e5b..0bf5c8bb0277319693e3f9f70b89fc9f7eefa0a5 100644 GIT binary patch delta 92 zcmX>SeI$CrFE&P#%^&$rGEF|hS;uHH`Jtfh<^rw;7O^IY)%z7H$Avogmx* delta 92 zcmX>SeI$CrFE&P_%^&$rGEF|hS;uHJ`Jtfh<^rw;7O^IY)%z7H$Asy&%j0