EgtExecutor :

- aggiunta funzione Exe/Lua AddAnotherOutlineToPart
- in ExeAutomaticPac aggiunta gestione di pezzi con tagli inclinati.
This commit is contained in:
Dario Sassi
2019-12-05 09:34:54 +00:00
parent e217258589
commit d1dc8f87e3
3 changed files with 56 additions and 10 deletions
+16
View File
@@ -137,6 +137,22 @@ ExeAutoNestAddPart( int nPartId, int nOutlineId, bool bCanFlip, bool bCanRotate,
return true ;
}
//-----------------------------------------------------------------------------
bool
ExeAddAnotherOutlineToPart( int nPartId, int nAnotherOutlineId)
{
if ( IsNull( s_pAutoNester))
return false ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, false)
// recupero un contorno aggiuntivo del pezzo
PolyArc AnotherOutline ;
if ( ! MyGetOutline( pGeomDB, nAnotherOutlineId, AnotherOutline))
return false ;
// aggiungo un contorno aggiuntivo al pezzo
return s_pAutoNester->AddAnotherOutlineToPart( nPartId, AnotherOutline) ;
}
//-----------------------------------------------------------------------------
bool
ExeAutoNestAddToolOutlineToPart( int nPartId, int nToolOutlineId)