3dPrinting :

- modifichei per aggiustare funzionamento con Icarus
- correzione per salvataggio progetto durante generazione CN.
This commit is contained in:
DarioS
2022-09-15 15:08:43 +02:00
parent 32ac1ca46f
commit f7b1c4297c
4 changed files with 19 additions and 4 deletions
+1 -2
View File
@@ -29,6 +29,7 @@ local nResultLayerId = EgtGetFirstNameInGroup( GDB_ID.ROOT, LAY_TFSCALC)
if not nResultLayerId then
nResultLayerId = EgtGroup( GDB_ID.ROOT)
EgtSetName( nResultLayerId, LAY_TFSCALC)
EgtSetLevel( nResultLayerId, GDB_LV.SYSTEM)
end
-- recupero Speed minima e massima dalla macchina
local sMachIni = EgtGetCurrMachineDir() .. '\\' .. EgtGetCurrMachineName() .. '.ini'
@@ -53,8 +54,6 @@ while nPartId do
local nLayerIndex = 1
local nLayerId = EgtGetFirstNameInGroup( nPartId, SLICE_LAYER .. nLayerIndex)
while nLayerId do
local sLayerName = EgtGetName( nLayerId)
local nLayerIndex = tonumber( sLayerName:sub( #SLICE_LAYER + 1))
-- rimuovo eventuale info precedente del tempo di attesa
EgtRemoveInfo( nLayerId, KEY_WAITING_TIME)
-- calcolo lunghezza totale del layer
+3
View File
@@ -104,6 +104,9 @@ function RunGcodeGenerate.Exec()
end
-- Salvo il progetto
local sFilePath = EgtGetCurrFilePath()
sFilePath = EgtChangePathExtension( sFilePath, 'nge')
EgtSetCurrFilePath( sFilePath)
EgtSaveFile()
-- Genero il programma CN
+2 -1
View File
@@ -1,4 +1,4 @@
-- RunShowManager.lua by Egaltech s.r.l. 2022/07/03
-- RunShowManager.lua by Egaltech s.r.l. 2022/09/15
-- Gestione visualizzazione per Stampa 3d
-- Tabella per definizione modulo
@@ -37,6 +37,7 @@ function RunShowManager.Exec()
if not nViewId then
nViewId = EgtGroup( GDB_ID.ROOT)
EgtSetName( nViewId, VIEWPARAMS)
EgtSetLevel( nViewId, GDB_LV.SYSTEM)
else
bImportedSolid = EgtGetInfo( nViewId, IMPORTED_SOLID, 'b')
bOuterCrv = EgtGetInfo( nViewId, OUTER_CRV, 'b')
+13 -1
View File
@@ -1,4 +1,4 @@
-- RunSlicing.lua by Egaltech s.r.l. 2022/07/03
-- RunSlicing.lua by Egaltech s.r.l. 2022/09/15
-- Calcoli prima fase per Stampa 3d
-- Tabella per definizione modulo
@@ -210,12 +210,21 @@ local function RemoveOldSlices( nPartId)
end
end
---------------------------------------------------------------------
local function RemoveOldTFS()
local nTFSCalcId = EgtGetFirstNameInGroup( GDB_ID.ROOT, LAY_TFSCALC)
if nTFSCalcId then
EgtEmptyGroup( nTFSCalcId)
end
end
---------------------------------------------------------------------
local function SetViewInfo()
local nViewId = EgtGetFirstNameInGroup( GDB_ID.ROOT, VIEWPARAMS)
if not nViewId then
nViewId = EgtGroup( GDB_ID.ROOT)
EgtSetName( nViewId, VIEWPARAMS)
EgtSetLevel( nViewId, GDB_LV.SYSTEM)
end
EgtSetInfo( nViewId, IMPORTED_SOLID, false)
EgtSetInfo( nViewId, OUTER_CRV, false)
@@ -297,6 +306,9 @@ function RunSlicing.Exec()
-- Rimozione vecchi conti
RemoveOldSlices( nPartId)
-- Rimozione vecchi TFS
RemoveOldTFS()
-- Calcolo delle fette
CSLICES.Exec( nPartId, nStmId, HMax)
EgtDraw()