EgtExecutor 2.2a4 :

- aggiunta funzione Exe e Lua AutoNestAddHoleToPart
- corretto nome funzione ExeAddAnotherOutlineToPart in ExeAutoNestAddAnotherOutlineToPart.
This commit is contained in:
Dario Sassi
2020-01-29 09:44:28 +00:00
parent 4ae630e94a
commit dbda122216
4 changed files with 36 additions and 3 deletions
+17 -1
View File
@@ -139,7 +139,23 @@ ExeAutoNestAddPart( int nPartId, int nOutlineId, bool bCanFlip, bool bCanRotate,
//-----------------------------------------------------------------------------
bool
ExeAddAnotherOutlineToPart( int nPartId, int nAnotherOutlineId)
ExeAutoNestAddHoleToPart( int nPartId, int nHoleId)
{
if ( IsNull( s_pAutoNester))
return false ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, false)
// recupero un buco del pezzo
PolyArc Hole ;
if ( ! MyGetOutline( pGeomDB, nHoleId, Hole))
return false ;
// aggiungo un buco al pezzo
return s_pAutoNester->AddHoleToPart( nPartId, Hole) ;
}
//-----------------------------------------------------------------------------
bool
ExeAutoNestAddAnotherOutlineToPart( int nPartId, int nAnotherOutlineId)
{
if ( IsNull( s_pAutoNester))
return false ;