EgtExecutor 2.3b4 :
- aggiunta funzione Exe e lua AutoNestSetStartCorner.
This commit is contained in:
+10
-1
@@ -54,7 +54,16 @@ ExeAutoNestSetGuillotineMode( void)
|
||||
{
|
||||
if ( IsNull( s_pAutoNester))
|
||||
return false ;
|
||||
return s_pAutoNester->SetGuillotineMode();
|
||||
return s_pAutoNester->SetGuillotineMode() ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeAutoNestSetStartCorner( int nCorner)
|
||||
{
|
||||
if ( IsNull( s_pAutoNester))
|
||||
return false ;
|
||||
return s_pAutoNester->SetStartCorner( nCorner) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
Binary file not shown.
@@ -117,6 +117,21 @@ LuaAutoNestSetGuillotineMode( lua_State* L)
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
static int
|
||||
LuaAutoNestSetStartCorner( lua_State* L)
|
||||
{
|
||||
// 1 parametro : nCorner
|
||||
int nCorner ;
|
||||
LuaCheckParam( L, 1, nCorner)
|
||||
LuaClearStack( L) ;
|
||||
// imposto corner di partenza
|
||||
bool bOk = ExeAutoNestSetStartCorner( nCorner) ;
|
||||
// restituisco il risultato
|
||||
LuaSetParam( L, bOk) ;
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
static int
|
||||
LuaAutoNestAddSheet( lua_State* L)
|
||||
@@ -385,6 +400,7 @@ LuaInstallNesting( LuaMgr& luaMgr)
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtVerifyMachining", LuaVerifyMachining) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtAutoNestStart", LuaAutoNestStart) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtAutoNestSetGuillotineMode", LuaAutoNestSetGuillotineMode) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtAutoNestSetStartCorner", LuaAutoNestSetStartCorner) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtAutoNestAddDefectToSheet", LuaAutoNestAddDefectToSheet) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtAutoNestAddSheet", LuaAutoNestAddSheet) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtAutoNestAddPart", LuaAutoNestAddPart) ;
|
||||
|
||||
Reference in New Issue
Block a user