diff --git a/API_MachMgr.cpp b/API_MachMgr.cpp index 66cfeb6..f7b1972 100644 --- a/API_MachMgr.cpp +++ b/API_MachMgr.cpp @@ -937,6 +937,13 @@ __stdcall EgtGetCurrMachining( void) return ExeGetCurrMachining() ; } +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtSetMachiningParamBool( int nType, BOOL bVal) +{ + return ( ExeSetMachiningParam( nType, ( bVal != FALSE)) ? TRUE : FALSE) ; +} + //----------------------------------------------------------------------------- BOOL __stdcall EgtSetMachiningParamInt( int nType, int nVal) @@ -986,6 +993,19 @@ __stdcall EgtApplyMachining( BOOL bRecalc) return ( ExeApplyMachining( bRecalc != FALSE) ? TRUE : FALSE) ; } +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtGetMachiningParamBool( int nType, BOOL* pbVal) +{ + if ( pbVal == nullptr) + return FALSE ; + bool bVal ; + if ( ! ExeGetMachiningParam( nType, bVal)) + return FALSE ; + *pbVal = bVal ; + return TRUE ; +} + //----------------------------------------------------------------------------- BOOL __stdcall EgtGetMachiningParamInt( int nType, int* pnVal) diff --git a/EgtInterface.rc b/EgtInterface.rc index 92528a7..05f2f30 100644 Binary files a/EgtInterface.rc and b/EgtInterface.rc differ