CAMAuto :
- correzione spostamento pezzo nel grezzo.
This commit is contained in:
@@ -162,7 +162,7 @@ local function MyProcessPieces()
|
||||
end
|
||||
|
||||
-- aggiungo sovramateriale ai grezzi
|
||||
PartData.AddOverMaterialToRaw( PARTS)
|
||||
PartData.AddOverMaterialToRaw( PARTS, false)
|
||||
|
||||
-- recupero offset per posizionamento
|
||||
for i = 1, #PARTS do
|
||||
|
||||
@@ -293,7 +293,7 @@ local function CreateMachGroups()
|
||||
AlignRawsToTable( GROUPS[j])
|
||||
|
||||
-- aggiungo sovramateriale ai grezzi
|
||||
PartData.AddOverMaterialToRaw( GROUPS[j])
|
||||
PartData.AddOverMaterialToRaw( GROUPS[j], true)
|
||||
|
||||
-- si dispongono i pezzi sulla tavola
|
||||
local bDispOk, sErr = WinData.ExecDisposition( GROUPS[j])
|
||||
|
||||
@@ -33,7 +33,7 @@ end
|
||||
|
||||
---------------------------------------------------------------------
|
||||
-- Crea il grezzo che verrà messo in macchina
|
||||
function PartData.AddOverMaterialToRaw( PARTS)
|
||||
function PartData.AddOverMaterialToRaw( PARTS, movePartInRawPart)
|
||||
for i = 1, #PARTS do
|
||||
|
||||
-- prima di aggiungere sovramateriale al grezzo, calcolo dimensioni del finito
|
||||
@@ -57,8 +57,10 @@ function PartData.AddOverMaterialToRaw( PARTS)
|
||||
|
||||
EgtModifyRawPartSize( PARTS[i].idRaw, PARTS[i].dRawLength, PARTS[i].dRawWidth, PARTS[i].dPartHeight)
|
||||
|
||||
--local vtMove = Vector3d( PARTS[i].RawOffset.dOverMatLeft, PARTS[i].RawOffset.dOverMatOut, 0)
|
||||
--EgtMovePartInRawPart( PARTS[i].id, vtMove)
|
||||
if(movePartInRawPart) then
|
||||
local vtMove = Vector3d( PARTS[i].RawOffset.dOverMatLeft, PARTS[i].RawOffset.dOverMatOut, 0)
|
||||
EgtMovePartInRawPart( PARTS[i].id, vtMove)
|
||||
end
|
||||
|
||||
-- TODO da controllare, se ruotato di 180° bisognerebbe prendere dOverMatIn. Lo stesso per la X
|
||||
PARTS[i].OffsetPartToRaw = {}
|
||||
|
||||
Reference in New Issue
Block a user