EgtNesting 2.2b1 :
- aggiunta funzione SetReportFile.
This commit is contained in:
@@ -238,6 +238,14 @@ AutoNester::SetInterpartGap( double dGap)
|
||||
return true ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
AutoNester::SetReportFile( const string& sReportFile)
|
||||
{
|
||||
m_sReportFile = sReportFile ;
|
||||
return true ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
AutoNester::Compute( bool bMinimizeOnXvsY, int nMaxTime)
|
||||
@@ -263,6 +271,9 @@ AutoNester::Compute( bool bMinimizeOnXvsY, int nMaxTime)
|
||||
return false ;
|
||||
// passo i codici al nester
|
||||
CNS_UnLockLaunchingOrderOxy( m_pOrder, sKeyId.c_str(), sKeySign.c_str()) ;
|
||||
// se richiesto debug
|
||||
if ( ! IsEmptyOrSpaces( m_sReportFile))
|
||||
CNS_GenerateLaunchingOrderProblem( m_pOrder, m_sReportFile.c_str()) ;
|
||||
// lancio l'esecuzione
|
||||
m_pComp = CNS_LaunchLocalComputation( m_pOrder, nMaxTime) ;
|
||||
return ( m_pComp != nullptr) ;
|
||||
|
||||
@@ -34,6 +34,7 @@ class AutoNester : public IAutoNester
|
||||
bool AddAnotherOutlineToPart( int nPartId, const PolyArc& AnotherOutline) override ;
|
||||
bool AddToolOutlineToPart( int nPartId, const PolyArc& ToolOutline) override ;
|
||||
bool SetInterpartGap( double dGap) override ;
|
||||
bool SetReportFile( const std::string& sReportFile) override ;
|
||||
bool Compute( bool bMinimizeOnXvsY, int nMaxTime) override ;
|
||||
bool CancelComputation( void) override ;
|
||||
bool GetComputationStatus( int& nStatus) override ;
|
||||
@@ -56,4 +57,5 @@ class AutoNester : public IAutoNester
|
||||
IDSHEETPTR_UMAP m_IdSheetPtr ; // map dei pannelli basato su identificativi
|
||||
IDPARTPTR_UMAP m_IdPartPtr ; // map dei pannelli basato su identificativi
|
||||
double m_dInterpartGap ; // distanza minima tra i pezzi
|
||||
std::string m_sReportFile ; // file di report dei dati da inviare a Optalog in caso di problemi
|
||||
} ;
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user