From 1a7194e9eeeda8e7c8538edfa2603d33619fbb7d Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Thu, 18 Feb 2016 08:06:17 +0000 Subject: [PATCH] EgtInterface : - aggiornamento. --- API_MachMgr.cpp | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/API_MachMgr.cpp b/API_MachMgr.cpp index ee0ff48..eaeaa46 100644 --- a/API_MachMgr.cpp +++ b/API_MachMgr.cpp @@ -853,6 +853,13 @@ __stdcall EgtSetCurrMachining( int nId) return ( ExeSetCurrMachining( nId) ? TRUE : FALSE) ; } +//----------------------------------------------------------------------------- +int +__stdcall EgtGetCurrMachining( void) +{ + return ExeGetCurrMachining() ; +} + //----------------------------------------------------------------------------- BOOL __stdcall EgtSetMachiningParamInt( int nType, int nVal) @@ -874,6 +881,13 @@ __stdcall EgtPreviewMachining( BOOL bRecalc) return ( ExePreviewMachining( bRecalc != FALSE) ? TRUE : FALSE) ; } +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtApplyMachining( BOOL bRecalc) +{ + return ( ExeApplyMachining( bRecalc != FALSE) ? TRUE : FALSE) ; +} + //----------------------------------------------------------------------------- BOOL __stdcall EgtGetMachiningParamInt( int nType, int* pnVal) @@ -892,6 +906,25 @@ __stdcall EgtGetMachiningParamDouble( int nType, double* pdVal) return ( ExeGetMachiningParam( nType, *pdVal) ? TRUE : FALSE) ; } +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtGetMachiningGeometry( int nInd, int* pnId, int* pnSub) +{ + if ( pnId == nullptr || pnSub == nullptr) + return FALSE ; + // recupero elenco identificativi + SELVECTOR vIds ; + if ( ! ExeGetMachiningGeometry( vIds)) + return FALSE ; + // verifico indice + if ( nInd < 0 || nInd >= int( vIds.size())) + return FALSE ; + // assegno il risultato + *pnId = vIds[nInd].nId ; + *pnSub = vIds[nInd].nSub ; + return TRUE ; +} + //----------------------------------------------------------------------------- BOOL __stdcall EgtIsMachiningEmpty( void)