- in BLADETOWASTE primo implemento, non completo, del taglio singolo
This commit is contained in:
+3
-36
@@ -1332,49 +1332,16 @@ function BeamExec.ProcessMachinings( PARTS)
|
||||
end
|
||||
EgtOutLog( ' *** AddMachinings ***', 1)
|
||||
|
||||
-- ordino le features
|
||||
-- ordinamento di base delle feature
|
||||
vProc = OrderFeatures( vProc)
|
||||
|
||||
-- esegue le strategie migliori che ha precedentemente scelto e salva le lavorazioni nella lista globale
|
||||
MACHININGS = CalculateMachinings( vProc, PARTS[nPart])
|
||||
|
||||
-- ordinamento lavorazioni
|
||||
MACHININGS = MachiningLib.PrepareMachiningsForSorting( PARTS[nPart])
|
||||
|
||||
--TODO - rimuovere o mettere in Log, serve solo per test
|
||||
-- TEST
|
||||
local MachiningPropertiesBeforeSorting = {}
|
||||
for i =1, #MACHININGS do
|
||||
MachiningPropertiesBeforeSorting[i] = {}
|
||||
MachiningPropertiesBeforeSorting[i] = {
|
||||
ptCenter = MACHININGS[i].Machining.ptCenter,
|
||||
nStage = MACHININGS[i].Machining.nStage,
|
||||
nPartSegment = MACHININGS[i].Machining.nPartSegment,
|
||||
sToolFamily = TOOLS[ MACHININGS[i].Machining.nToolIndex].sFamily,
|
||||
dToolPerformanceIndex = TOOLS[ MACHININGS[i].Machining.nToolIndex].dPerformanceIndex,
|
||||
sToolName = TOOLS[ MACHININGS[i].Machining.nToolIndex].sName,
|
||||
vtToolDirection = MACHININGS[i].Machining.vtToolDirection
|
||||
}
|
||||
end
|
||||
-- fine TEST
|
||||
|
||||
-- TODO completare ordinamento. Mancano le dipendenze.
|
||||
MACHININGS = BeamLib.StableSort( MACHININGS, MachiningLib.CompareMachinings)
|
||||
|
||||
--TODO - rimuovere o mettere in Log, serve solo per test
|
||||
-- TEST
|
||||
local MachiningPropertiesAfterSorting = {}
|
||||
for i =1, #MACHININGS do
|
||||
MachiningPropertiesAfterSorting[i] = {}
|
||||
MachiningPropertiesAfterSorting[i] = {
|
||||
ptCenter = MACHININGS[i].Machining.ptCenter,
|
||||
nStage = MACHININGS[i].Machining.nStage,
|
||||
nPartSegment = MACHININGS[i].Machining.nPartSegment,
|
||||
sToolFamily = TOOLS[ MACHININGS[i].Machining.nToolIndex].sFamily,
|
||||
dToolPerformanceIndex = TOOLS[ MACHININGS[i].Machining.nToolIndex].dPerformanceIndex,
|
||||
sToolName = TOOLS[ MACHININGS[i].Machining.nToolIndex].sName,
|
||||
vtToolDirection = MACHININGS[i].Machining.vtToolDirection
|
||||
}
|
||||
end
|
||||
-- fine TEST
|
||||
|
||||
-- aggiungo la fase, se non è la prima
|
||||
if nOrd == 1 then
|
||||
|
||||
Reference in New Issue
Block a user