EgtMachKernel 1.6p3 :
- gestione script OnSetTable in file mde per modificare dati assi - migliorato sequenziamento curve per lavorazione - eliminata tabella LOC per variabili locali in generazione part program - aggiunte funzioni EmtModifyAxisStroke e EmtModifyAxisHome richiamabili da lua macchina - aggiunta ExistsTable in interfaccia.
This commit is contained in:
@@ -125,3 +125,28 @@ Axis::Set( const string& sName, int nType,
|
||||
return m_vtDir.Normalize() ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
Axis::Modify( const STROKE& Stroke)
|
||||
{
|
||||
m_Stroke = Stroke ;
|
||||
if ( m_dHomeVal < m_Stroke.Min)
|
||||
m_dHomeVal = m_Stroke.Min ;
|
||||
else if ( m_dHomeVal > m_Stroke.Max)
|
||||
m_dHomeVal = m_Stroke.Max ;
|
||||
return true ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
Axis::Modify( double dHome)
|
||||
{
|
||||
if ( dHome < m_Stroke.Min)
|
||||
m_dHomeVal = m_Stroke.Min ;
|
||||
else if ( dHome > m_Stroke.Max)
|
||||
m_dHomeVal = m_Stroke.Max ;
|
||||
else
|
||||
m_dHomeVal = dHome ;
|
||||
return true ;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user