diff --git a/API_MachMgr.cpp b/API_MachMgr.cpp index e27885d..841e89c 100644 --- a/API_MachMgr.cpp +++ b/API_MachMgr.cpp @@ -663,6 +663,27 @@ __stdcall EgtMdbGetMachiningDir( wchar_t*& wsMchDir) //----------------------------------------------------------------------------- // Operations +//----------------------------------------------------------------------------- +int +__stdcall EgtGetFirstOperation( void) +{ + return ExeGetFirstOperation() ; +} + +//----------------------------------------------------------------------------- +int +__stdcall EgtGetNextOperation( int nId) +{ + return ExeGetNextOperation( nId) ; +} + +//----------------------------------------------------------------------------- +int +__stdcall EgtGetOperationType( int nId) +{ + return ExeGetOperationType( nId) ; +} + //----------------------------------------------------------------------------- BOOL __stdcall EgtRemoveOperation( int nId) @@ -684,6 +705,16 @@ __stdcall EgtSetOperationMode( int nId, BOOL bActive) return ( ExeSetOperationMode( nId, bActive!= FALSE) ? TRUE : FALSE) ; } +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtGetOperationMode( int nId) +{ + bool bActive ; + if ( ! ExeGetOperationMode( nId, bActive)) + return FALSE ; + return ( bActive ? TRUE : FALSE) ; +} + //----------------------------------------------------------------------------- BOOL __stdcall EgtSetAllOperationsMode( BOOL bActive) @@ -698,6 +729,16 @@ __stdcall EgtSetOperationStatus( int nId, BOOL bShow) return ( ExeSetOperationStatus( nId, bShow != FALSE) ? TRUE : FALSE) ; } +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtGetOperationStatus( int nId) +{ + bool bShow ; + if ( ! ExeGetOperationStatus( nId, bShow)) + return FALSE ; + return ( bShow ? TRUE : FALSE) ; +} + //----------------------------------------------------------------------------- BOOL __stdcall EgtSetAllOperationsStatus( BOOL bShow) @@ -826,6 +867,29 @@ __stdcall EgtGetCalcToolDirFromAngles( double dAngA, double dAngB, double vtDir[ return TRUE ; } +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtVerifyOutstroke( double dX, double dY, double dZ, double dAngA, double dAngB, int* pnStat) +{ + int nStat ; + if ( ! ExeVerifyOutstroke( dX, dY, dZ, dAngA, dAngB, nStat)) + return FALSE ; + if ( pnStat != nullptr) + *pnStat = nStat ; + return TRUE ; +} + +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtGetOutstrokeInfo( wchar_t*& wsInfo) +{ + string sInfo ; + if ( ! ExeGetOutstrokeInfo( sInfo)) + return false ; + wsInfo = _wcsdup( stringtoW( sInfo)) ; + return (( wsInfo == nullptr) ? FALSE : TRUE) ; +} + //----------------------------------------------------------------------------- // Machine Move //----------------------------------------------------------------------------- diff --git a/EgtInterface.rc b/EgtInterface.rc index b4b10cf..b1981da 100644 Binary files a/EgtInterface.rc and b/EgtInterface.rc differ