EgtMachKernel 1.6e7 :

- introdotto uso ObjUser per gruppi di macchina
- prima versione prototipo delle forature
- migliorie al calolo angoli e posizioni macchina.
This commit is contained in:
Dario Sassi
2015-05-26 06:49:55 +00:00
parent fe07bb767d
commit 3076dccb4b
25 changed files with 1402 additions and 247 deletions
+7 -1
View File
@@ -73,6 +73,9 @@ MachMgr::GetMachGroupNewName( string& sName) const
sName = "Mach01" ;
return true ;
}
// se nome vuoto, assegno radice standard
if ( sName.empty())
sName = "Mach" ;
// verifico che il nome sia unico
int nCount = 1 ;
string sOrigName = sName ;
@@ -210,6 +213,9 @@ MachMgr::GetMachGroupName( int nId) const
// verifica del gruppo base per le lavorazioni
if ( ! VerifyMachBase())
return "" ;
// verifico che il gruppo ricevuto sia corretto
if ( m_pGeomDB->GetParentId( nId) != m_nMachBaseId)
return "" ;
// recupero il nome del gruppo riferito
string sName ;
m_pGeomDB->GetName( nId, sName) ;
@@ -234,7 +240,7 @@ MachMgr::GetMachGroupId( const string& sName) const
while( bIter) {
// verifico il nome
string sMGroupName ;
if ( pIter->GetName( sMGroupName) && sMGroupName == sName)
if ( pIter->GetName( sMGroupName) && EqualNoCase( sMGroupName, sName))
return pIter->GetId() ;
// passo al successivo
bIter = pIter->GoToNextGroup() ;