3dPrinting :
- aggiunta info tempo di attesa.
This commit is contained in:
@@ -140,6 +140,7 @@ RESULT_READ_PROG = 'ResultReadProg'
|
||||
|
||||
KEY_PART_ON_TABLE = 'PartOnTable'
|
||||
KEY_RESULT = 'Result'
|
||||
KEY_WAITING_TIME = 'WaitingTime'
|
||||
KEY_PALETTE = 'Palette'
|
||||
KEY_LAYER_VIEW = 'LayerView'
|
||||
KEY_SHELL_VIEW = 'ShellView'
|
||||
|
||||
@@ -79,6 +79,8 @@ function RunMachiningParamCalc.Exec()
|
||||
while nLayerId do
|
||||
local sLayerName = EgtGetName( nLayerId)
|
||||
local nLayerIndex = tonumber( sLayerName:sub( #SLICE_LAYER + 1))
|
||||
-- rimuovo eventuale info precedente del tempo di attesa
|
||||
EgtRemoveInfo( nLayerId, KEY_WAITING_TIME)
|
||||
-- calcolo lunghezza totale del layer
|
||||
local dTotLayerLength = 0
|
||||
local nCrvId = EgtGetFirstGroupInGroup( nLayerId)
|
||||
@@ -132,6 +134,7 @@ function RunMachiningParamCalc.Exec()
|
||||
local sStatus = ''
|
||||
if dEsteemedTime < dMinTime then
|
||||
EgtSetInfo( nLayerId, KEY_RESULT, RESULT.KO_MINUS)
|
||||
EgtSetInfo( nLayerId, KEY_WAITING_TIME, dMinTime - dEsteemedTime)
|
||||
sStatus = 'KO(-)'
|
||||
elseif dEsteemedTime > dMinTime and dEsteemedTime < dMaxTime then
|
||||
EgtSetInfo( nLayerId, KEY_RESULT, RESULT.OK)
|
||||
|
||||
Reference in New Issue
Block a user