diff --git a/LuaLibs/WProcessFreeContour.lua b/LuaLibs/WProcessFreeContour.lua index 2e31524..c5a4598 100644 --- a/LuaLibs/WProcessFreeContour.lua +++ b/LuaLibs/WProcessFreeContour.lua @@ -2122,6 +2122,12 @@ local function MakeByMill( Proc, nRawId, b3Raw) EgtSetMachiningParam( MCH_MP.WORKSIDE, MCH_MILL_WS.LEFT) elseif ( Proc.Grp == 3 and bToolInv) or ( Proc.Grp == 4 and not bToolInv) then EgtSetMachiningParam( MCH_MP.WORKSIDE, MCH_MILL_WS.RIGHT) + elseif ( Proc.Grp == 1 or Proc.Grp == 2) then + if bToolInv then + EgtSetMachiningParam( MCH_MP.WORKSIDE, MCH_MILL_WS.LEFT) + else + EgtSetMachiningParam( MCH_MP.WORKSIDE, MCH_MILL_WS.RIGHT) + end end -- se lamatura affondata speciale (cliente 90480029), setto attacco e stacco al centro @@ -2606,6 +2612,9 @@ function WPF.Make( Proc, nRawId, b3Raw, vNLO, b3Squaring) ReorderFaces( Proc.Id, EgtSurfTmFacetCount( Proc.Id)) -- recupero il tipo di lavorazione local nCntType = EgtGetInfo( Proc.Id, 'CNT_TYPE', 'i') or 0 + if WD.FORCE_MILL_CONTOUR == true then + nCntType = 2 + end -- se fresatura if nCntType == 2 then return MakeByMill( Proc, nRawId, b3Raw)