diff --git a/BatchProcessNew.lua b/BatchProcessNew.lua index a0b9e6e..70fb0c9 100644 --- a/BatchProcessNew.lua +++ b/BatchProcessNew.lua @@ -423,14 +423,15 @@ if bToProcess then -- box del pezzo local Ls = EgtGetFirstNameInGroup( nPartId, 'Box') local b3Solid = EgtGetBBoxGlob( Ls or GDB_ID.NULL, GDB_BB.STANDARD) - -- creo o pulisco gruppo geometrie aggiuntive + -- se nel grezzo c'รจ un pezzo if nPartId then + -- creo o pulisco gruppo geometrie aggiuntive BL.CreateOrEmptyAddGroup( nPartId) + -- aggiungo faccia per taglio iniziale al pezzo + BL.AddPartStartFace( nPartId, b3Solid) + -- aggiungo faccia per taglio finale al pezzo + BL.AddPartEndFace( nPartId, b3Solid) end - -- aggiungo faccia per taglio iniziale al pezzo - BL.AddPartStartFace( nPartId, b3Solid) - -- aggiungo faccia per taglio finale al pezzo - BL.AddPartEndFace( nPartId, b3Solid) -- passo al successivo grezzo nRawId = EgtGetNextRawPart( nRawId) end