DataBeam :

- sistemata gestione smussi in Cut
- non si segnala la mancata lavorazione smussi causa giacitura trave (richiesta A. Sola).
This commit is contained in:
Dario Sassi
2020-06-04 17:25:59 +00:00
parent 8604483177
commit 6921dd3b1e
6 changed files with 105 additions and 18 deletions
+3 -3
View File
@@ -57,7 +57,7 @@ local function MakeChamfer( Proc, nPhase, nRawId, nPartId, dOvmHead)
-- ingombro del grezzo
local b3Raw = EgtGetRawPartBBox( nRawId)
-- recupero e verifico l'entità curva associata
local AuxId = EgtGetInfo( Proc.Id, 'AUXID', 'i') or 0
local AuxId = EgtGetInfo( Proc.Id, 'AUXID', 'i')
if AuxId then AuxId = AuxId + Proc.Id end
if not AuxId or ( EgtGetType( AuxId) & GDB_FY.GEO_CURVE) == 0 then
local sErr = 'Error : missing profile geometry'
@@ -67,11 +67,11 @@ local function MakeChamfer( Proc, nPhase, nRawId, nPartId, dOvmHead)
-- recupero i dati della curva e del profilo
local dWidth = abs( EgtCurveThickness( AuxId))
local vtExtr = EgtCurveExtrusion( AuxId, GDB_RT.GLOB)
-- eseguo lo smusso solo se direzione orizzontale
-- eseguo lo smusso solo se direzione orizzontale (non propago la segnalazione a TS3)
if abs( vtExtr:getZ()) > 0.1 then
local sWarn = 'Warning : skipped not horizontal chamfer'
EgtOutLog( sWarn)
return true, sWarn
return true
end
-- eseguo lo smusso solo se feature larga come la trave
if dWidth < b3Raw:getDimY() - 1 then