EgtExecutor 1.6x7 :

- aggiunta Exe e Lua ImportSetup.
This commit is contained in:
Dario Sassi
2017-01-28 07:59:58 +00:00
parent 9c4f480650
commit 1b41407b0a
4 changed files with 42 additions and 14 deletions
+22 -12
View File
@@ -248,18 +248,6 @@ ExeGetCurrMachGroup( void)
return pMachMgr->GetCurrMachGroup() ;
}
//-----------------------------------------------------------------------------
// Setup
//-----------------------------------------------------------------------------
int
ExeGetCurrSetup( void)
{
IMachMgr* pMachMgr = GetCurrMachMgr() ;
VERIFY_MACHMGR( pMachMgr, 0)
// recupero l'identificativo del gruppo di attrezzaggio della macchinata corrente
return pMachMgr->GetCurrSetup() ;
}
//-----------------------------------------------------------------------------
// Phases
//-----------------------------------------------------------------------------
@@ -1225,6 +1213,28 @@ ExeTdbGetToolHolderDir( string& sTHolderDir)
return pMachMgr->TdbGetToolHolderDir( sTHolderDir) ;
}
//-----------------------------------------------------------------------------
// Setup
//-----------------------------------------------------------------------------
int
ExeGetCurrSetup( void)
{
IMachMgr* pMachMgr = GetCurrMachMgr() ;
VERIFY_MACHMGR( pMachMgr, 0)
// recupero l'identificativo del gruppo di attrezzaggio della macchinata corrente
return pMachMgr->GetCurrSetup() ;
}
//-----------------------------------------------------------------------------
bool
ExeImportSetup( const string& sName)
{
IMachMgr* pMachMgr = GetCurrMachMgr() ;
VERIFY_MACHMGR( pMachMgr, false)
// eseguo importazione
return pMachMgr->ImportSetup( sName) ;
}
//-----------------------------------------------------------------------------
// DB lavorazioni
//-----------------------------------------------------------------------------
+2 -2
View File
@@ -240,9 +240,9 @@ ExeVerifyCutAsSplitting( int nMchId)
nResult += CAR_LI_OK ;
}
// verifico se posso portare uscita al bordo grezzo
bool bLoToModif = ( nLoType != SAW_LO_EXT) ;
bool bLoToModif = ( nLoType != SAW_LO_EXT_CENT && nLoType != SAW_LO_EXT_OUT) ;
if ( bLoToModif) {
pGseCtx->m_pMachMgr->SetMachiningParam( MPA_LEADOUTTYPE, SAW_LO_EXT) ;
pGseCtx->m_pMachMgr->SetMachiningParam( MPA_LEADOUTTYPE, SAW_LO_EXT_CENT) ;
// aggiorno preview
pGseCtx->m_pMachMgr->MachiningPreview( true) ;
// verifico interferenza
BIN
View File
Binary file not shown.
+18
View File
@@ -1316,6 +1316,22 @@ LuaTdbSave( lua_State* L)
return 1 ;
}
//-----------------------------------------------------------------------------
// Setup
//-----------------------------------------------------------------------------
static int
LuaImportSetup( lua_State* L)
{
// 1 o nessun parametro : [sName]
string sName ;
LuaGetParam( L, 1, sName) ;
LuaClearStack( L) ;
// eseguo importazione
bool bOk = ExeImportSetup( sName) ;
LuaSetParam( L, bOk) ;
return 1 ;
}
//-------------------------------------------------------------------------------
// Machinings database
//-------------------------------------------------------------------------------
@@ -3007,6 +3023,8 @@ LuaInstallMachMgr( LuaMgr& luaMgr)
bOk = bOk && luaMgr.RegisterFunction( "EgtTdbGetCurrToolParam", LuaTdbGetCurrToolParam) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtTdbReload", LuaTdbReload) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtTdbSave", LuaTdbSave) ;
// Setup
bOk = bOk && luaMgr.RegisterFunction( "EgtImportSetup", LuaImportSetup) ;
// Machinings database
bOk = bOk && luaMgr.RegisterFunction( "EgtMdbGetMachiningNewName", LuaMdbGetMachiningNewName) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtMdbAddMachining", LuaMdbAddMachining) ;