EgtExecutor 1.9a1 :
- aggiunta gestione Flag Utensile per VirtualMilling in Exe e Lua.
This commit is contained in:
+16
-8
@@ -82,7 +82,7 @@ LuaRemoveVolZmapPart( lua_State* L)
|
||||
static int
|
||||
LuaVolZmapSetStdTool( lua_State* L)
|
||||
{
|
||||
// 5 parametri : Id, sToolName, dLen, dDiam, dCornR
|
||||
// 5 o 6 parametri : Id, sToolName, dLen, dDiam, dCornR, nFlag
|
||||
int nId ;
|
||||
LuaCheckParam( L, 1, nId)
|
||||
string sToolName ;
|
||||
@@ -93,9 +93,11 @@ LuaVolZmapSetStdTool( lua_State* L)
|
||||
LuaCheckParam( L, 4, dDiam)
|
||||
double dCornR ;
|
||||
LuaCheckParam( L, 5, dCornR)
|
||||
int nFlag = 1 ;
|
||||
LuaGetParam( L, 6, nFlag) ;
|
||||
LuaClearStack( L) ;
|
||||
// imposto utensile standard a Zmap indicato
|
||||
bool bOk = ExeVolZmapSetStdTool( nId, sToolName, dLen, dDiam, dCornR) ;
|
||||
bool bOk = ExeVolZmapSetStdTool( nId, sToolName, dLen, dDiam, dCornR, nFlag) ;
|
||||
// restituisco il risultato
|
||||
LuaSetParam( L, bOk) ;
|
||||
return 1 ;
|
||||
@@ -105,7 +107,7 @@ LuaVolZmapSetStdTool( lua_State* L)
|
||||
static int
|
||||
LuaVolZmapSetAdvTool( lua_State* L)
|
||||
{
|
||||
// 7 parametri : Id, sToolName, dLen, dDiam, dTipLen, dTipDiam, dCornR
|
||||
// 7 o 8 parametri : Id, sToolName, dLen, dDiam, dTipLen, dTipDiam, dCornR, nFlag
|
||||
int nId ;
|
||||
LuaCheckParam( L, 1, nId)
|
||||
string sToolName ;
|
||||
@@ -120,9 +122,11 @@ LuaVolZmapSetAdvTool( lua_State* L)
|
||||
LuaCheckParam( L, 6, dTipDiam)
|
||||
double dCornR ;
|
||||
LuaCheckParam( L, 7, dCornR)
|
||||
int nFlag = 1 ;
|
||||
LuaGetParam( L, 8, nFlag) ;
|
||||
LuaClearStack( L) ;
|
||||
// imposto utensile standard a Zmap indicato
|
||||
bool bOk = ExeVolZmapSetAdvTool( nId, sToolName, dLen, dDiam, dTipLen, dTipDiam, dCornR) ;
|
||||
bool bOk = ExeVolZmapSetAdvTool( nId, sToolName, dLen, dDiam, dTipLen, dTipDiam, dCornR, nFlag) ;
|
||||
// restituisco il risultato
|
||||
LuaSetParam( L, bOk) ;
|
||||
return 1 ;
|
||||
@@ -132,7 +136,7 @@ LuaVolZmapSetAdvTool( lua_State* L)
|
||||
static int
|
||||
LuaVolZmapSetMortiserTool( lua_State* L)
|
||||
{
|
||||
// 6 parametri : Id, sToolName, dLen, dWidth, dThick, dCornR
|
||||
// 6 o 7 parametri : Id, sToolName, dLen, dWidth, dThick, dCornR, nFlag
|
||||
int nId ;
|
||||
LuaCheckParam( L, 1, nId)
|
||||
string sToolName ;
|
||||
@@ -145,9 +149,11 @@ LuaVolZmapSetMortiserTool( lua_State* L)
|
||||
LuaCheckParam( L, 5, dThick)
|
||||
double dCornR ;
|
||||
LuaCheckParam( L, 6, dCornR)
|
||||
int nFlag = 1 ;
|
||||
LuaGetParam( L, 7, nFlag) ;
|
||||
LuaClearStack( L) ;
|
||||
// imposto mortasatrice a Zmap indicato
|
||||
bool bOk = ExeVolZmapSetMortiserTool( nId, sToolName, dLen, dWidth, dThick, dCornR) ;
|
||||
bool bOk = ExeVolZmapSetMortiserTool( nId, sToolName, dLen, dWidth, dThick, dCornR, nFlag) ;
|
||||
// restituisco il risultato
|
||||
LuaSetParam( L, bOk) ;
|
||||
return 1 ;
|
||||
@@ -157,7 +163,7 @@ LuaVolZmapSetMortiserTool( lua_State* L)
|
||||
static int
|
||||
LuaVolZmapSetChiselTool( lua_State* L)
|
||||
{
|
||||
// 5 parametri : Id, sToolName, dLen, dWidth, dThick
|
||||
// 5 o 6 parametri : Id, sToolName, dLen, dWidth, dThick, nFlag
|
||||
int nId ;
|
||||
LuaCheckParam( L, 1, nId)
|
||||
string sToolName ;
|
||||
@@ -168,9 +174,11 @@ LuaVolZmapSetChiselTool( lua_State* L)
|
||||
LuaCheckParam( L, 4, dWidth)
|
||||
double dThick ;
|
||||
LuaCheckParam( L, 5, dThick)
|
||||
int nFlag = 1 ;
|
||||
LuaGetParam( L, 6, nFlag) ;
|
||||
LuaClearStack( L) ;
|
||||
// imposto scalpello a Zmap indicato
|
||||
bool bOk = ExeVolZmapSetChiselTool( nId, sToolName, dLen, dWidth, dThick) ;
|
||||
bool bOk = ExeVolZmapSetChiselTool( nId, sToolName, dLen, dWidth, dThick, nFlag) ;
|
||||
// restituisco il risultato
|
||||
LuaSetParam( L, bOk) ;
|
||||
return 1 ;
|
||||
|
||||
Reference in New Issue
Block a user