EgtMachKernel 1.6i9 :

- aggiunta gestione area della tavola (A1)
- i gruppi che rimangono come testimoni dei pezzi nei grezzi ora hanno livello system.
This commit is contained in:
Dario Sassi
2015-10-01 20:44:55 +00:00
parent 41c09abe37
commit e7d8b2fa83
5 changed files with 31 additions and 2 deletions
+20
View File
@@ -47,6 +47,26 @@ MachMgr::GetTableRef1( Point3d& ptPos)
return pDisp->GetTableRef1( ptPos) ;
}
//----------------------------------------------------------------------------
bool
MachMgr::GetTableArea1( int& nAreaId)
{
// verifico DB geometrico
if ( m_pGeomDB == nullptr)
return false ;
// recupero la macchina corrente
Machine* pMch = GetCurrMachine() ;
if ( pMch == nullptr)
return false ;
// recupero la tavola corrente
int nTabId = pMch->GetCurrTable() ;
if ( nTabId == GDB_ID_NULL)
return false ;
// recupero l'oggetto che ne definisce l'area utile
nAreaId = m_pGeomDB->GetFirstNameInGroup( nTabId, MCH_TAREA + "1") ;
return ( nAreaId != GDB_ID_NULL) ;
}
//----------------------------------------------------------------------------
int
MachMgr::AddSubPiece( const string& sName, const Point3d& ptPos, double dAngRotDeg)