Settato il gruppo temporaneo come effettivamente temporaneo per evitare che venga salvato

This commit is contained in:
andrea.villa
2025-10-27 16:55:32 +01:00
parent ee54c32918
commit dd0b39df71
3 changed files with 10 additions and 11 deletions
+9 -7
View File
@@ -421,9 +421,6 @@ if bToProcess then
end
end
-- creo un gruppo temporaneo dove finiranno tutte le entità che non bisogna salvare, alla fine lo si cancella
BeamLib.CreateTempGroup()
-- recupero parametri generali da progetto
BeamExec.GetGeneralParameters()
@@ -642,9 +639,18 @@ if bToProcess then
-- Lavoro le features
if not GetDataConfig() then return end
-- creo un gruppo temporaneo dove finiranno tutte le entità che non bisogna salvare, alla fine lo si cancella
BeamLib.CreateTempGroup()
BeamExec.GetProcessings( PARTS, bCalcBestPieceUnloadPosition)
BeamExec.GetCombinationMatrix( PARTS, bCalcBestPieceUnloadPosition)
BeamExec.ProcessMachinings( PARTS)
-- si cancella gruppo temporaneo contenente entità da cancellare
local idTempGroup = BeamLib.GetTempGroup()
EgtErase( idTempGroup)
local sOutput = ''
-- Scrittura json risultati
@@ -709,10 +715,6 @@ if bToProcess then
end
end
-- si cancella gruppo temporaneo contenente entità da cancellare
local idTempGroup = BeamLib.GetTempGroup()
EgtErase( idTempGroup)
-- Salvo il progetto
EgtSaveFile( sNgeFile)
-- copio come originale (per dichiarare progetto ricalcolato)
+1
View File
@@ -299,6 +299,7 @@ function BeamLib.CreateTempGroup()
if not idTempGroup then
idTempGroup = EgtGroup( GDB_ID.ROOT)
EgtSetName( idTempGroup, "#TEMP_GROUP#")
EgtSetLevel( idTempGroup, GDB_LV.TEMP)
end
return idTempGroup
end
-4
View File
@@ -472,10 +472,6 @@ while nMachGroup do
nMachGroup = nNextMachGroup
end
-- si cancella gruppo temporaneo contenente entità da cancellare
local idTempGroup = EgtGetFirstNameInGroup( GDB_ID.ROOT, "#TEMP_GROUP#") or nil
EgtErase( idTempGroup)
EgtResetCurrMachGroup()
NEST.ERR = 0