EgtExecutor 2.3l2 :

- aggiunte funzioni Exe e Lua AutoNestAddRestrictedZoneToSheet e AutoNestSetRestrictedZoneToPart.
This commit is contained in:
DarioS
2021-12-06 16:50:13 +01:00
parent a828cf0b54
commit 4c45b9435a
3 changed files with 64 additions and 1 deletions
+26
View File
@@ -135,6 +135,22 @@ ExeAutoNestAddDefectToSheet( int nSheetId, int nDefectId)
return s_pAutoNester->AddDefectToSheet( nSheetId, Outline) ;
}
//-----------------------------------------------------------------------------
bool
ExeAutoNestAddRestrictedZoneToSheet( int nSheetId, int nRstZoneId, int nRzConstrId)
{
if ( IsNull( s_pAutoNester))
return false ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, false)
// recupero il contorno della zona ristretta
PolyArc Outline ;
if ( ! MyGetOutline( pGeomDB, nRstZoneId, Outline))
return false ;
// aggiungo la zona ristretta al pannello
return s_pAutoNester->AddRestrictedZoneToSheet( nRzConstrId, nSheetId, Outline) ;
}
//-----------------------------------------------------------------------------
bool
ExeAutoNestAddPart( int nPartId, int nOutlineId, bool bCanFlip, bool bCanRotate, double dRotStep, int nPriority, int nCount)
@@ -203,6 +219,16 @@ ExeAutoNestAddToolOutlineToPart( int nPartId, int nToolOutlineId)
return s_pAutoNester->AddToolOutlineToPart( nPartId, ToolOutline) ;
}
//-----------------------------------------------------------------------------
bool
ExeAutoNestSetRestrictedZoneToPart( int nPartId, int nRzConstrId)
{
if ( IsNull( s_pAutoNester))
return false ;
// aggiungo il vincolo di zona ristretta al pezzo
return s_pAutoNester->SetRestrictedZoneToPart( nPartId, nRzConstrId) ;
}
//-----------------------------------------------------------------------------
bool
ExeAutoNestSetInterpartGap( double dGap)