3dPrinting :
- in Generazione Cn si genera anche il codice e si rimane in Disegna - in Posizionamento Pezzo si inserisce il punto di Inizio dopo la creazione del grezzo.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
-- RunPartPositioning.lua by Egaltech s.r.l. 2022/04/13
|
||||
-- RunPartPositioning.lua by Egaltech s.r.l. 2022/05/19
|
||||
-- Gestione calcolo disposizione e lavorazioni per stampa 3d
|
||||
-- 2022/03/21 Creazione file
|
||||
|
||||
@@ -102,16 +102,7 @@ function RunPartPositioning.Exec()
|
||||
local frPart = Frame3d( b3Part:getCenter() - 0.5 * b3Part:getDimZ() * Z_AX(), Z_AX())
|
||||
nFrameId = EgtFrame( nPartId, frPart, GDB_RT.GLOB)
|
||||
if nFrameId then EgtSetName( nFrameId, FRAME_PART) end
|
||||
|
||||
-- creo lo start point
|
||||
local ptStart = b3Part:getCenter() - 0.6 * b3Part:getDimY() * Y_AX() - 0.5 * b3Part:getDimZ() * Z_AX()
|
||||
nPtStartId = EgtPoint( nPartId, ptStart, GDB_RT.GLOB)
|
||||
if nPtStartId then
|
||||
EgtSetName( nPtStartId, KEY_START_POINT)
|
||||
EgtSetColor( nPtStartId, EgtStdColor( "RED"))
|
||||
end
|
||||
|
||||
|
||||
|
||||
EgtAddMachGroup( '3dPrint')
|
||||
EgtSetTable( 'Tab')
|
||||
|
||||
@@ -120,6 +111,13 @@ function RunPartPositioning.Exec()
|
||||
|
||||
EgtResetCurrMachGroup()
|
||||
|
||||
-- creo lo start point
|
||||
local ptStart = b3Part:getCenter() - 0.6 * b3Part:getDimY() * Y_AX() - 0.5 * b3Part:getDimZ() * Z_AX()
|
||||
nPtStartId = EgtPoint( nPartId, ptStart, GDB_RT.GLOB)
|
||||
if nPtStartId then
|
||||
EgtSetName( nPtStartId, KEY_START_POINT)
|
||||
EgtSetColor( nPtStartId, EgtStdColor( "RED"))
|
||||
end
|
||||
|
||||
EgtSetView( SCE_VD.ISO_SW, false)
|
||||
EgtZoom( SCE_ZM.ALL)
|
||||
|
||||
Reference in New Issue
Block a user