From eb0ae7d037c607a1fa0cceae7296a27baf982b11 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Thu, 5 May 2016 07:32:54 +0000 Subject: [PATCH] EgtInterface 1.6p4 : - aggiornamento con aggiunta funzioni di interfaccia. --- API_GeomDB.cpp | 7 +++++++ API_MachMgr.cpp | 46 +++++++++++++++++++++++++++++++++++++++------- EgtInterface.rc | Bin 11726 -> 11726 bytes 3 files changed, 46 insertions(+), 7 deletions(-) diff --git a/API_GeomDB.cpp b/API_GeomDB.cpp index 1171f6a..adecb39 100644 --- a/API_GeomDB.cpp +++ b/API_GeomDB.cpp @@ -126,6 +126,13 @@ __stdcall EgtDisableModified( void) return ( ExeDisableModified() ? TRUE : FALSE) ; } +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtGetEnableModified( void) +{ + return ( ExeGetEnableModified() ? TRUE : FALSE) ; +} + //----------------------------------------------------------------------------- BOOL __stdcall EgtSetModified( void) diff --git a/API_MachMgr.cpp b/API_MachMgr.cpp index 76d4fa5..dec2e2f 100644 --- a/API_MachMgr.cpp +++ b/API_MachMgr.cpp @@ -317,13 +317,6 @@ __stdcall EgtRemovePartFromRawPart( int nPartId) //----------------------------------------------------------------------------- // Table & Fixtures -//----------------------------------------------------------------------------- -BOOL -__stdcall EgtExistsTable( const wchar_t* wsTable) -{ - return ( ExeExistsTable( wstrztoA( wsTable)) ? TRUE : FALSE) ; -} - //----------------------------------------------------------------------------- BOOL __stdcall EgtSetTable( const wchar_t* wsTable) @@ -872,6 +865,8 @@ __stdcall EgtChangeOperationPhase( int nId, int nNewPhase) return ( ExeChangeOperationPhase( nId, nNewPhase) ? TRUE : FALSE) ; } +//----------------------------------------------------------------------------- +// Dispositions //----------------------------------------------------------------------------- int __stdcall EgtGetPhaseDisposition( int nPhase) @@ -879,6 +874,13 @@ __stdcall EgtGetPhaseDisposition( int nPhase) return ExeGetPhaseDisposition( nPhase) ; } +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtSpecialApplyDisposition( int nId, BOOL bRecalc) +{ + return ( ExeSpecialApplyDisposition( nId, bRecalc != FALSE) ? TRUE : FALSE) ; +} + //----------------------------------------------------------------------------- // Machinings //----------------------------------------------------------------------------- @@ -1100,6 +1102,36 @@ __stdcall EgtGenerate( const wchar_t* wsCncFile, const wchar_t* wsInfo) return ( ExeGenerate( wstrztoA( wsCncFile), wstrztoA( wsInfo)) ? TRUE : FALSE) ; } +//----------------------------------------------------------------------------- +// Machine +//----------------------------------------------------------------------------- +int +__stdcall EgtGetBaseId( const wchar_t* wsBase) +{ + return ExeGetBaseId( wstrztoA( wsBase)) ; +} + +//----------------------------------------------------------------------------- +int +__stdcall EgtGetTableId( const wchar_t* wsTable) +{ + return ExeGetTableId( wstrztoA( wsTable)) ; +} + +//----------------------------------------------------------------------------- +int +__stdcall EgtGetAxisId( const wchar_t* wsAxis) +{ + return ExeGetAxisId( wstrztoA( wsAxis)) ; +} + +//----------------------------------------------------------------------------- +int +__stdcall EgtGetHeadId( const wchar_t* wsHead) +{ + return ExeGetHeadId( wstrztoA( wsHead)) ; +} + //----------------------------------------------------------------------------- // Machine Calc //----------------------------------------------------------------------------- diff --git a/EgtInterface.rc b/EgtInterface.rc index 12936f3f80c2d66d28967523bff713997e4cef3e..8d53e0aae559d4946cea6af8711834ddcffe64ca 100644 GIT binary patch delta 113 zcmX>XeJ*;#A2vpl%@4(HGEKh5na5}{`6H+9WG^L)&3#f*jGK>e8!&^VPclv3Cs+lM i-t491#khHcFjUGNr~*ls7YjlI&*XKAP&0v=TDSp_`6%@O delta 113 zcmX>XeJ*;#A2vqg%@4(HGEKh5na5~6`6H+9WG^L)&3#f*jGK>e8!&^VPclv3Cs+lM i-t491#khHcFjUGNr~*ls7YjlI&*XKAP&0v=TDSp^FDUH*