Migliorata gestione del gruppo temporaneo. DA RIVEDERE!

This commit is contained in:
andrea.villa
2025-10-27 16:39:28 +01:00
parent 746eb9efe9
commit ee54c32918
4 changed files with 11 additions and 6 deletions
-3
View File
@@ -377,9 +377,6 @@ if bToProcess then
-- Altrimenti, opero sul progetto corrente
else
-- creo un gruppo temporaneo dove finiranno tutte le entità che non bisogna salvare, alla fine lo si cancella
BeamLib.CreateTempGroup()
-- Recupero l'identificativo del gruppo di lavoro corrente
local nMGrpId = EgtGetCurrMachGroup()
-- Barra da creare
+6 -2
View File
@@ -294,8 +294,12 @@ end
-------------------------------------------------------------------------------------------------------------
function BeamLib.CreateTempGroup()
local idTempGroup = EgtGroup( GDB_ID.ROOT)
EgtSetName( idTempGroup, "#TEMP_GROUP#")
local idTempGroup = BeamLib.GetTempGroup()
-- se non esiste, lo creo
if not idTempGroup then
idTempGroup = EgtGroup( GDB_ID.ROOT)
EgtSetName( idTempGroup, "#TEMP_GROUP#")
end
return idTempGroup
end
+4
View File
@@ -472,6 +472,10 @@ 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
+1 -1
View File
@@ -25,7 +25,7 @@
{
"sName": "bExecutePreCut",
"sNameNge": "EXEC_PRECUT",
"sValue": "true",
"sValue": "false",
"sDescriptionShort": "Force to add PreCuts",
"sDescriptionLong": "Autocam will apply a machining on the theoretical zero, to avoid collision if the theoretical piece length doesn't correspond to the real length",
"sType": "b",