EgtExecutor 2.1c3 :
- in Exe e Lua SetAxisPos restituisce la posizione effettivamente raggiunta dall'asse.
This commit is contained in:
+2
-2
@@ -2913,12 +2913,12 @@ ExeGetAllTablesNames( STRVECTOR& vNames)
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeSetAxisPos( const string& sAxis, double dVal)
|
||||
ExeSetAxisPos( const string& sAxis, double dVal, double* pdNewVal)
|
||||
{
|
||||
IMachMgr* pMachMgr = GetCurrMachMgr() ;
|
||||
VERIFY_MACHMGR( pMachMgr, false)
|
||||
// metto l'asse nella nuova posizione
|
||||
return pMachMgr->SetAxisPos( sAxis, dVal) ;
|
||||
return pMachMgr->SetAxisPos( sAxis, dVal, pdNewVal) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
Binary file not shown.
+4
-2
@@ -3341,10 +3341,12 @@ LuaSetAxisPos( lua_State* L)
|
||||
LuaCheckParam( L, 2, dVal)
|
||||
LuaClearStack( L) ;
|
||||
// metto l'asse nella nuova posizione
|
||||
bool bOk = ExeSetAxisPos( sAxis, dVal) ;
|
||||
double dNewVal = dVal ;
|
||||
bool bOk = ExeSetAxisPos( sAxis, dVal, &dNewVal) ;
|
||||
// restituisco il risultato
|
||||
LuaSetParam( L, bOk) ;
|
||||
return 1 ;
|
||||
LuaSetParam( L, dNewVal) ;
|
||||
return 2 ;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user