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 bb9a46b..0bf5c8b 100644 Binary files a/EgtInterface.rc and b/EgtInterface.rc differ