EgtInterface 1.6s4 :

- aggiunte in interfaccia EgtSetMachiningParamBool e EgtGetMachiningParamBool.
This commit is contained in:
Dario Sassi
2016-07-18 08:05:37 +00:00
parent d953e46734
commit 1e4946c2aa
2 changed files with 20 additions and 0 deletions
+20
View File
@@ -937,6 +937,13 @@ __stdcall EgtGetCurrMachining( void)
return ExeGetCurrMachining() ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtSetMachiningParamBool( int nType, BOOL bVal)
{
return ( ExeSetMachiningParam( nType, ( bVal != FALSE)) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtSetMachiningParamInt( int nType, int nVal)
@@ -986,6 +993,19 @@ __stdcall EgtApplyMachining( BOOL bRecalc)
return ( ExeApplyMachining( bRecalc != FALSE) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetMachiningParamBool( int nType, BOOL* pbVal)
{
if ( pbVal == nullptr)
return FALSE ;
bool bVal ;
if ( ! ExeGetMachiningParam( nType, bVal))
return FALSE ;
*pbVal = bVal ;
return TRUE ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetMachiningParamInt( int nType, int* pnVal)