EgtMachKernel :

- aggiunta funzione GetPreviewMachiningToolStepCount
- nella funzione PreviewMachiningTool il secondo parametro non è più un flag ma il numero di passi con il verso.
This commit is contained in:
Dario Sassi
2024-05-30 15:24:50 +02:00
parent e61dd3d17b
commit 719bb994bd
5 changed files with 26 additions and 12 deletions
+9 -2
View File
@@ -1122,7 +1122,14 @@ MachMgr::RemovePreviewMachiningTool( void) const
//----------------------------------------------------------------------------
int
MachMgr::PreviewMachiningTool( int nEntId, int nFlag) const
MachMgr::GetPreviewMachiningToolStepCount( void) const
{
return -1 ;
}
//----------------------------------------------------------------------------
int
MachMgr::PreviewMachiningTool( int nEntId, int nStep) const
{
// recupero la lavorazione corrente
int nCurrMchId = GetCurrMachining() ;
@@ -1133,7 +1140,7 @@ MachMgr::PreviewMachiningTool( int nEntId, int nFlag) const
if ( pMch == nullptr)
return GDB_ID_NULL ;
// eseguo
return pMch->ToolPreview( nEntId, nFlag) ;
return pMch->ToolPreview( nEntId, nStep) ;
}
//----------------------------------------------------------------------------