EgtExecutor 2.3b4 :

- aggiunta funzione Exe e lua AutoNestSetStartCorner.
This commit is contained in:
Dario Sassi
2021-02-14 14:43:23 +00:00
parent 40f5140bf1
commit 6727ea07bf
3 changed files with 26 additions and 1 deletions
+10 -1
View File
@@ -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) ;
}
//-----------------------------------------------------------------------------
BIN
View File
Binary file not shown.
+16
View File
@@ -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) ;