EgtMachKernel 1.6k9 :
- aggiunti campi Rot2Stroke e SolCh a teste per limitare corse secondo asse rotante e dare criterio scelta soluzione - utilizzo di questi dati nel calcolo assi macchina - aggiunta GetCurrMachineName.
This commit is contained in:
+6
-4
@@ -359,6 +359,9 @@ MachiningsMgr::GetMachiningNewName( string& sName) const
|
||||
bool
|
||||
MachiningsMgr::AddMachining( const string& sName, int nType)
|
||||
{
|
||||
// annullo lavorazione corrente
|
||||
if ( m_pCurrMach != nullptr)
|
||||
delete m_pCurrMach ;
|
||||
// verifico unicità del nome
|
||||
if ( m_suData.find( sName) != m_suData.end())
|
||||
return false ;
|
||||
@@ -378,8 +381,6 @@ MachiningsMgr::AddMachining( const string& sName, int nType)
|
||||
bOk = bOk && m_suData.emplace( pMch->m_sName, pMch->m_Uuid).second ;
|
||||
m_bModified = true ;
|
||||
// la rendo la nuova lavorazione corrente
|
||||
if ( m_pCurrMach != nullptr)
|
||||
delete m_pCurrMach ;
|
||||
m_pCurrMach = pMch->Clone() ;
|
||||
Release( pMch) ;
|
||||
|
||||
@@ -390,6 +391,9 @@ MachiningsMgr::AddMachining( const string& sName, int nType)
|
||||
bool
|
||||
MachiningsMgr::CopyMachining( const string& sSource, const string& sName)
|
||||
{
|
||||
// annullo lavorazione corrente
|
||||
if ( m_pCurrMach != nullptr)
|
||||
delete m_pCurrMach ;
|
||||
// verifico unicità del nome
|
||||
if ( m_suData.find( sName) != m_suData.end())
|
||||
return false ;
|
||||
@@ -410,8 +414,6 @@ MachiningsMgr::CopyMachining( const string& sSource, const string& sName)
|
||||
bOk = bOk && m_suData.emplace( pMch->m_sName, pMch->m_Uuid).second ;
|
||||
m_bModified = true ;
|
||||
// la rendo la nuova lavorazione corrente
|
||||
if ( m_pCurrMach != nullptr)
|
||||
delete m_pCurrMach ;
|
||||
m_pCurrMach = pMch->Clone() ;
|
||||
Release( pMch) ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user