From 369a17a669ac6131af0b0472d6e06384bd0e0ee8 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Mon, 7 Dec 2015 08:02:56 +0000 Subject: [PATCH] EgtInterface 1.6k10 : - aggiornamento esportazioni. --- API_MachMgr.cpp | 53 ++++++++++++++++++++++++++++++++++++++++++++++++ EgtInterface.rc | Bin 11726 -> 11742 bytes 2 files changed, 53 insertions(+) diff --git a/API_MachMgr.cpp b/API_MachMgr.cpp index f59bf7d..a8f8585 100644 --- a/API_MachMgr.cpp +++ b/API_MachMgr.cpp @@ -159,6 +159,14 @@ __stdcall EgtAddRawPart( const double ptOrig[3], return ExeAddRawPart( ptOrig, dLength, dWidth, dHeight, vCol) ; } +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtModifyRawPart( int nRawId, const double ptOrig[3], + double dLength, double dWidth, double dHeight, const int vCol[4]) +{ + return ( ExeModifyRawPart( nRawId, ptOrig, dLength, dWidth, dHeight, vCol) ? TRUE : FALSE) ; +} + //----------------------------------------------------------------------------- BOOL __stdcall EgtModifyRawPartSize( int nRawId, double dLength, double dWidth, double dHeight) @@ -596,6 +604,22 @@ __stdcall EgtMdbGetCurrMachiningParamString( int nType, wchar_t*& wsVal) return (( wsVal == nullptr) ? FALSE : TRUE) ; } +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtMdbSetSafeZ( double dSafeZ) +{ + return ( ExeMdbSetSafeZ( dSafeZ) ? TRUE : FALSE) ; +} + +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtMdbGetSafeZ( double* pdSafeZ) +{ + if ( pdSafeZ == nullptr) + return FALSE ; + return ( ExeMdbGetSafeZ( *pdSafeZ) ? TRUE : FALSE) ; +} + //----------------------------------------------------------------------------- BOOL __stdcall EgtMdbSave( void) @@ -665,6 +689,28 @@ __stdcall EgtSimGetAxisInfoPos( int nI, wchar_t*& wsName, double* pdVal) return (( wsName == nullptr) ? FALSE : TRUE) ; } +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtSimGetToolInfo( wchar_t*& wsTool, double* pdSpeed) +{ + if ( &wsTool == nullptr || pdSpeed == nullptr) + return FALSE ; + string sTool ; + if ( ! ExeSimGetToolInfo( sTool, *pdSpeed)) + return FALSE ; + wsTool = _wcsdup( stringtoW( sTool)) ; + return (( wsTool == nullptr) ? FALSE : TRUE) ; +} + +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtSimGetMoveInfo( int* pnGmove, double* pdFeed) +{ + if ( pnGmove == nullptr || pdFeed == nullptr) + return FALSE ; + return ( ExeSimGetMoveInfo( *pnGmove, *pdFeed) ? TRUE : FALSE) ; +} + //----------------------------------------------------------------------------- BOOL __stdcall EgtSimSetStep( double dStep) @@ -690,6 +736,13 @@ __stdcall EgtGenerate( const wchar_t* wsCncFile, const wchar_t* wsInfo) //----------------------------------------------------------------------------- // Machine Calc +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtSetCalcTool( const wchar_t* wsTool, const wchar_t* wsHead, int nExit) +{ + return ( ExeSetCalcTool( wstrztoA( wsTool), wstrztoA( wsHead), nExit) ? TRUE : FALSE) ; +} + //----------------------------------------------------------------------------- BOOL __stdcall EgtGetCalcTipFromPositions( double dX, double dY, double dZ, double dAngA, double dAngB, diff --git a/EgtInterface.rc b/EgtInterface.rc index 6222adcbc04114b79168992da48c74e6923a76a8..fcf790a1c67b1099dcf45ca28e048bad6a4ee262 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