EgtInterface 1.8f4 :

- aggiunte EgtSpecialUpdateDisposition, EgtUpdateMachining, EgtApplyAllMachinings e EgtUpdateAllMachinings.
This commit is contained in:
Dario Sassi
2017-06-17 17:10:03 +00:00
parent 72bb8d6f7c
commit 39cf61b818
2 changed files with 40 additions and 0 deletions
+40
View File
@@ -1189,6 +1189,13 @@ __stdcall EgtSpecialApplyDisposition( int nId, BOOL bRecalc)
return ( ExeSpecialApplyDisposition( nId, ( bRecalc != FALSE)) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtSpecialUpdateDisposition( int nId)
{
return ( ExeSpecialUpdateDisposition( nId) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
// Machinings
//-----------------------------------------------------------------------------
@@ -1282,6 +1289,13 @@ __stdcall EgtApplyMachining( BOOL bRecalc)
return ( ExeApplyMachining( bRecalc != FALSE) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtUpdateMachining( void)
{
return ( ExeUpdateMachining() ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetMachiningParamBool( int nType, BOOL* pbVal)
@@ -1352,6 +1366,32 @@ __stdcall EgtIsMachiningEmpty( void)
return ( ExeIsMachiningEmpty() ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtApplyAllMachinings( BOOL bStopOnFirstErr, wchar_t*& wsErrList)
{
if ( &wsErrList == nullptr)
return FALSE ;
string sErrList ;
if ( ! ExeApplyAllMachinings( bStopOnFirstErr != FALSE, sErrList))
return FALSE ;
wsErrList = _wcsdup( stringtoW( sErrList)) ;
return (( wsErrList == nullptr) ? FALSE : TRUE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtUpdateAllMachinings( BOOL bStopOnFirstErr, wchar_t*& wsErrList)
{
if ( &wsErrList == nullptr)
return FALSE ;
string sErrList ;
if ( ! ExeUpdateAllMachinings( bStopOnFirstErr != FALSE, sErrList))
return FALSE ;
wsErrList = _wcsdup( stringtoW( sErrList)) ;
return (( wsErrList == nullptr) ? FALSE : TRUE) ;
}
//-----------------------------------------------------------------------------
// Simulation
//-----------------------------------------------------------------------------