- aggiunta costante if WD.DOUBLE_HEAD_MILLCORNER per attivazione puliture in doppio
This commit is contained in:
+10
-8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user