EgtExecutor 2.3l2 :
- aggiunte funzioni Exe e Lua AutoNestAddRestrictedZoneToSheet e AutoNestSetRestrictedZoneToPart.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user