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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user