diff --git a/LuaLibs/ProcessProfCamb.lua b/LuaLibs/ProcessProfCamb.lua index 45f2ff9..4311586 100644 --- a/LuaLibs/ProcessProfCamb.lua +++ b/LuaLibs/ProcessProfCamb.lua @@ -302,7 +302,7 @@ function ProcessProfCamb.Make( Proc, nPhase, nRawId, nPartId, dCurrOvmH) local sMilling -- in base alla direzione iniziale della curva e al valore di entrata valido, setto l'antischeggia local bMakeAs - local bDeleteAntiSplint = EgtGetInfo( Proc.Id, sDisableAntiSplint, 'i') == 1 + local bDeleteAntiSplint = ( EgtGetInfo( Proc.Id, sDisableAntiSplint, 'i') or 0) == 1 local vtStart = EgtSV( AuxId, GDB_ID.ROOT) if nSide == 0 then if abs( vtStart:getY()) >= dActivateCompoAng and dMakeAntiSplintOnHead and abs( dMakeAntiSplintOnHead) > 0 and not bDeleteAntiSplint then @@ -533,7 +533,7 @@ function ProcessProfCamb.Make( Proc, nPhase, nRawId, nPartId, dCurrOvmH) if bDouble then -- inserisco la lavorazione local sName - if bMakeAs and not bDeleteAntiSplint then + if bMakeAs then sName = 'ProfB_As_' .. ( EgtGetName( Proc.Id) or tostring( Proc.Id)) else sName = 'ProfB_' .. ( EgtGetName( Proc.Id) or tostring( Proc.Id)) @@ -585,7 +585,7 @@ function ProcessProfCamb.Make( Proc, nPhase, nRawId, nPartId, dCurrOvmH) ModifySideAndInvert( Proc, bHead) end -- se devo fare l'antischeggia in testa - if bMakeAs and not bDeleteAntiSplint then + if bMakeAs then local sNewName = 'ProfB_' .. ( EgtGetName( Proc.Id) or tostring( Proc.Id)) -- copio lavorazione per ingresso antischeggia (la copia è la lavorazione finale) local nMch2Id = EgtCopyMachining( sNewName, EgtGetName( nMchId)) @@ -623,7 +623,7 @@ function ProcessProfCamb.Make( Proc, nPhase, nRawId, nPartId, dCurrOvmH) end -- inserisco la prima lavorazione local sName - if bMakeAs and not bDeleteAntiSplint then + if bMakeAs then sName = 'Prof_As_' .. ( EgtGetName( Proc.Id) or tostring( Proc.Id)) else sName = 'Prof_' .. ( EgtGetName( Proc.Id) or tostring( Proc.Id)) @@ -700,7 +700,7 @@ function ProcessProfCamb.Make( Proc, nPhase, nRawId, nPartId, dCurrOvmH) ModifySideAndInvert( Proc, bHead) end -- se devo fare l'antischeggia in testa - if bMakeAs and not bDeleteAntiSplint then + if bMakeAs then local sNewName = 'Prof_' .. ( EgtGetName( Proc.Id) or tostring( Proc.Id)) -- copio lavorazione per ingresso antischeggia (la copia è la lavorazione finale) local nMch2Id = EgtCopyMachining( sNewName, EgtGetName( nMchId))