diff --git a/EXE_NstAutoNesting.cpp b/EXE_NstAutoNesting.cpp index 34fedae..6cfeafe 100644 --- a/EXE_NstAutoNesting.cpp +++ b/EXE_NstAutoNesting.cpp @@ -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) ; } //----------------------------------------------------------------------------- diff --git a/EgtExecutor.rc b/EgtExecutor.rc index 099a2af..aeab395 100644 Binary files a/EgtExecutor.rc and b/EgtExecutor.rc differ diff --git a/LUA_Nesting.cpp b/LUA_Nesting.cpp index c4c372e..28b941c 100644 --- a/LUA_Nesting.cpp +++ b/LUA_Nesting.cpp @@ -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) ;