EgtInterface :

- aggiornamento.
This commit is contained in:
Dario Sassi
2016-02-18 08:06:17 +00:00
parent cb643170aa
commit 1a7194e9ee
+33
View File
@@ -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)