EgtInterface :
- aggiornamento.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user