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:
Dario Sassi
2015-11-24 22:13:21 +00:00
parent 2f016585bb
commit ebccd64daa
11 changed files with 143 additions and 26 deletions
+6 -4
View File
@@ -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) ;