EgtExecutor :

- aggiunta funzione Exe/Lua AddAnotherOutlineToPart
- in ExeAutomaticPac aggiunta gestione di pezzi con tagli inclinati.
This commit is contained in:
Dario Sassi
2019-12-05 09:34:54 +00:00
parent e217258589
commit d1dc8f87e3
3 changed files with 56 additions and 10 deletions
+17
View File
@@ -171,6 +171,22 @@ LuaAutoNestAddPart( lua_State* L)
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaAutoNestAddAnotherOutlineToPart( lua_State* L)
{
// 2 parametri : nPartId, nAnotherOutlineId
int nPartId ;
LuaCheckParam( L, 1, nPartId)
int nAnotherOutlineId ;
LuaCheckParam( L, 2, nAnotherOutlineId)
// aggiungo un contorno aggiuntivo al pezzo indicato
bool bOk = ExeAddAnotherOutlineToPart( nPartId, nAnotherOutlineId) ;
// restituisco il risultato
LuaSetParam( L, bOk) ;
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaAutoNestAddToolOutlineToPart( lua_State* L)
@@ -325,6 +341,7 @@ LuaInstallNesting( LuaMgr& luaMgr)
bOk = bOk && luaMgr.RegisterFunction( "EgtAutoNestAddDefectToSheet", LuaAutoNestAddDefectToSheet) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtAutoNestAddSheet", LuaAutoNestAddSheet) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtAutoNestAddPart", LuaAutoNestAddPart) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtAutoNestAddAnotherOutlineToPart", LuaAutoNestAddAnotherOutlineToPart) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtAutoNestAddToolOutlineToPart", LuaAutoNestAddToolOutlineToPart) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtAutoNestSetInterpartGap", LuaAutoNestSetInterpartGap) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtAutoNestCompute", LuaAutoNestCompute) ;