- in BeamLib aggiunta GetNewMachGroupName per avere il prossimo numero MachGroup intero libero
- in NestProcess i nomi MachGroup sono sempre interi; si mantiene sempre un BEAM_SAFETY_BUFFER nel riempimento delle barre - in BeamExec.GetCombinationListFromMatrix corretti indici taglio di testa e coda
This commit is contained in:
@@ -423,6 +423,24 @@ function BeamLib.GetAddGroup( PartId)
|
||||
return AddGrpId, sMchGrp
|
||||
end
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
-- Funzione prossimo nome MachGroup libero (numero intero)
|
||||
function BeamLib.GetNewMachGroupName()
|
||||
local idMachGroup = EgtGetFirstMachGroup()
|
||||
if not idMachGroup then return 1 end
|
||||
local nMaxMachGroup = 0
|
||||
while idMachGroup do
|
||||
local sMachGroupName = EgtGetMachGroupName( idMachGroup)
|
||||
local nMachGroupName = tonumber( sMachGroupName)
|
||||
if nMachGroupName > nMaxMachGroup then
|
||||
nMaxMachGroup = nMachGroupName
|
||||
end
|
||||
idMachGroup = EgtGetNextMachGroup( idMachGroup)
|
||||
end
|
||||
|
||||
return nMaxMachGroup + 1
|
||||
end
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
-- restituisce le facce della parte interessate dalla feature Proc
|
||||
-- TODO da spostare in FeatureLib???
|
||||
|
||||
Reference in New Issue
Block a user