DataBeam :
- aggiunta gestione marcature e testi da sotto per macchine con testa da sotto - aggiunta gestione smussi su profilatura caudata orizzontale per macchine con testa da sotto.
This commit is contained in:
+12
-3
@@ -1,5 +1,6 @@
|
||||
-- ProcessText.lua by Egaltech s.r.l. 2018/04/17
|
||||
-- ProcessText.lua by Egaltech s.r.l. 2021/05/03
|
||||
-- Gestione calcolo testi per Travi
|
||||
-- 2021/05/03 Aggiunta gestione testa da sotto.
|
||||
|
||||
-- Tabella per definizione modulo
|
||||
local ProcessText = {}
|
||||
@@ -45,13 +46,21 @@ function ProcessText.Make( Proc, nPhase, nRawId, nPartId)
|
||||
return false, sErr
|
||||
end
|
||||
-- verifico che il testo non sia orientato verso il basso (-5 deg)
|
||||
if vtN:getZ() < - 0.1 then
|
||||
if vtN:getZ() < - 0.1 and not BD.DOWN_HEAD then
|
||||
local sErr = 'Error on process ' .. tostring( Proc.Id) .. ' Text from bottom impossible'
|
||||
EgtOutLog( sErr)
|
||||
return false, sErr
|
||||
end
|
||||
-- abilitazione lavorazione da sotto
|
||||
local bMillUp = ( BD.DOWN_HEAD and vtN:getZ() > -0.259)
|
||||
local bMillDown = ( BD.DOWN_HEAD and vtN:getZ() < 0.174)
|
||||
-- recupero la lavorazione
|
||||
local sMilling = ML.FindMilling( 'Text')
|
||||
local sMillType = 'Text'
|
||||
local sMchExt = EgtIf( bMillDown, '_H2', '')
|
||||
local sMilling = ML.FindMilling( sMillType..sMchExt)
|
||||
if not sMilling and bMillUp then
|
||||
sMilling = ML.FindMilling( sMillType)
|
||||
end
|
||||
if not sMilling then
|
||||
local sErr = 'Error on process ' .. tostring( Proc.Id) .. ' milling not found in library'
|
||||
EgtOutLog( sErr)
|
||||
|
||||
Reference in New Issue
Block a user