From 8f97e8c7845b64fda70c670461de77b7f4b7d579 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Fri, 29 Jan 2016 19:58:46 +0000 Subject: [PATCH] EgtInterface 1.6l10 : - aggiornamenti. --- API_MachMgr.cpp | 23 +++++++++++++++++++++++ API_Nesting.cpp | 27 +++++++++++++++++---------- EgtInterface.rc | Bin 11726 -> 11742 bytes 3 files changed, 40 insertions(+), 10 deletions(-) diff --git a/API_MachMgr.cpp b/API_MachMgr.cpp index fe4ef29..d1a1468 100644 --- a/API_MachMgr.cpp +++ b/API_MachMgr.cpp @@ -755,6 +755,29 @@ __stdcall EgtSetCurrMachining( int nId) return ( ExeSetCurrMachining( nId) ? TRUE : FALSE) ; } +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtSetMachiningParamInt( int nType, int nVal) +{ + return ( ExeSetMachiningParam( nType, nVal) ? TRUE : FALSE) ; +} + +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtPreviewMachining( BOOL bRecalc) +{ + return ( ExePreviewMachining( bRecalc != FALSE) ? TRUE : FALSE) ; +} + +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtGetMachiningParamInt( int nType, int* pnVal) +{ + if ( pnVal == nullptr) + return FALSE ; + return ( ExeGetMachiningParam( nType, *pnVal) ? TRUE : FALSE) ; +} + //----------------------------------------------------------------------------- BOOL __stdcall EgtIsMachiningNotEmpty( void) diff --git a/API_Nesting.cpp b/API_Nesting.cpp index aa11bab..29aa777 100644 --- a/API_Nesting.cpp +++ b/API_Nesting.cpp @@ -244,6 +244,20 @@ __stdcall EgtMoveToSnapPointOnCollision( int nId[], int nCount, BOOL bReducedCut return TRUE ; } +//----------------------------------------------------------------------------- +void +__stdcall EgtSaveCollInfo( void) +{ + ExeSaveCollInfo() ; +} + +//----------------------------------------------------------------------------- +void +__stdcall EgtRestoreCollInfo( void) +{ + ExeRestoreCollInfo() ; +} + //----------------------------------------------------------------------------- BOOL __stdcall EgtGetPartClusterCenterGlob( int nId[], int nCount, double ptCen[3]) @@ -265,15 +279,8 @@ __stdcall EgtGetPartClusterCenterGlob( int nId[], int nCount, double ptCen[3]) } //----------------------------------------------------------------------------- -void -__stdcall EgtSaveCollInfo( void) +BOOL +__stdcall EgtVerifyMachining( int nMchId, bool bReduced, int nRawId) { - ExeSaveCollInfo() ; -} - -//----------------------------------------------------------------------------- -void -__stdcall EgtRestoreCollInfo( void) -{ - ExeRestoreCollInfo() ; + return ( ExeVerifyMachining( nMchId, bReduced, nRawId) ? TRUE : FALSE) ; } diff --git a/EgtInterface.rc b/EgtInterface.rc index b1981da082859e695bd17178013df8cb66fb0093..2ad42767512cc77e4eaec86cd85edb614e92051d 100644 GIT binary patch delta 113 zcmX>XeJ^^$A2wz~27}EH#cnc9zQ&oyXgK*Ihva4lsSL)=N4O1`p^_(=Chrrhf=UJm hO<;kFyEDTz%z%l3)$&YUrwB7FKq!H6^Au$(E&v1bCVv0` delta 97 zcmcZ?eJ*;#A2vqI&HvflnHeo7I|`+4UdQFd0v0*RG