- Aggiunta gestione colori dei solidi
This commit is contained in:
@@ -127,13 +127,16 @@ function RunMachiningParamCalc.Exec()
|
||||
EgtSetInfo( nToolPathId, KEY_SPEED, dSpeed)
|
||||
nCrvId = EgtGetNext( nCrvId)
|
||||
end
|
||||
-- riporto valori calcolati in tabella per csv
|
||||
-- salvo e riporto valori calcolati in tabella per csv
|
||||
local sStatus = ''
|
||||
if dEsteemedTime < dMinTime then
|
||||
EgtSetInfo( nLayerId, KEY_RESULT, RESULT.KO_MINUS)
|
||||
sStatus = 'KO(-)'
|
||||
elseif dEsteemedTime > dMinTime and dEsteemedTime < dMaxTime then
|
||||
EgtSetInfo( nLayerId, KEY_RESULT, RESULT.OK)
|
||||
sStatus = 'OK'
|
||||
elseif dEsteemedTime > dMaxTime then
|
||||
EgtSetInfo( nLayerId, KEY_RESULT, RESULT.KO_PLUS)
|
||||
sStatus = 'KO(+)'
|
||||
end
|
||||
--table.insert( CSVOutTable, { Index = nLayerIndex, EsteemedTime = dEsteemedTime, Feed = dLayerFeed, Speed = dSpeed})
|
||||
@@ -144,7 +147,13 @@ function RunMachiningParamCalc.Exec()
|
||||
nPartIndex = nPartIndex + 1
|
||||
nPartId = EgtGetFirstNameInGroup( GDB_ID.ROOT, PART .. nPartIndex)
|
||||
end
|
||||
|
||||
|
||||
-- aggiorno palette
|
||||
local nPaletteType = EgtGetInfo( nParamsGrp, KEY_PALETTE, 'i')
|
||||
if nPaletteType == PALETTE_TYPE.RESULTS then
|
||||
local RSP = require( 'RunSlicePalette')
|
||||
RSP.UpdateColors( nPaletteType)
|
||||
end
|
||||
-- scrivo nuovo file csv di risultato
|
||||
local file = io.open( sResultFile, "w")
|
||||
if file then
|
||||
|
||||
Reference in New Issue
Block a user