- aggiunta costante if WD.DOUBLE_HEAD_MILLCORNER per attivazione puliture in doppio

This commit is contained in:
luca.mazzoleni
2023-09-05 16:14:05 +02:00
parent fa276949a2
commit 61e5ce6359
+10 -8
View File
@@ -907,15 +907,17 @@ local function SetMirroredOperations()
local vMillings = {}
-- raccolgo le fresature non già fatte in doppio
local nOperId = EgtGetNextOperation( EgtGetPhaseDisposition( 1))
while nOperId do
EgtSetCurrMachining( nOperId)
local sUserNotes = EgtGetMachiningParam( MCH_MP.USERNOTES)
local bIsDouble = ( EgtGetValInNotes( sUserNotes, 'DOUBLE', 'i') or 0) > 0
if not bIsDouble and EgtGetOperationType( nOperId) == MCH_OY.MILLING then
table.insert( vMillings, nOperId)
if WD.DOUBLE_HEAD_MILLCORNER then
local nOperId = EgtGetNextOperation( EgtGetPhaseDisposition( 1))
while nOperId do
EgtSetCurrMachining( nOperId)
local sUserNotes = EgtGetMachiningParam( MCH_MP.USERNOTES)
local bIsDouble = ( EgtGetValInNotes( sUserNotes, 'DOUBLE', 'i') or 0) > 0
if not bIsDouble and EgtGetOperationType( nOperId) == MCH_OY.MILLING then
table.insert( vMillings, nOperId)
end
nOperId = EgtGetNextOperation( nOperId)
end
nOperId = EgtGetNextOperation( nOperId)
end
-- ordinamento delle operazioni raccolte secondo X e poi Y crescente