Docs for additions to slicing event payload
This commit is contained in:
parent
b41c1d89f4
commit
df5a6e42d7
2 changed files with 13 additions and 1 deletions
|
|
@ -352,7 +352,9 @@ SlicingStarted
|
|||
Payload:
|
||||
|
||||
* ``stl``: the STL's filename
|
||||
* ``stl_location``: the STL's location
|
||||
* ``gcode``: the sliced GCODE's filename
|
||||
* ``gcode_location``: the sliced GCODE's location
|
||||
* ``progressAvailable``: true if progress information via the ``slicingProgress`` push update will be available, false if not
|
||||
|
||||
SlicingDone
|
||||
|
|
@ -361,7 +363,9 @@ SlicingDone
|
|||
Payload:
|
||||
|
||||
* ``stl``: the STL's filename
|
||||
* ``stl_location``: the STL's location
|
||||
* ``gcode``: the sliced GCODE's filename
|
||||
* ``gcode_location``: the sliced GCODE's location
|
||||
* ``time``: the time needed for slicing, in seconds (float)
|
||||
|
||||
SlicingCancelled
|
||||
|
|
@ -371,7 +375,9 @@ SlicingCancelled
|
|||
Payload:
|
||||
|
||||
* ``stl``: the STL's filename
|
||||
* ``stl_location``: the STL's location
|
||||
* ``gcode``: the sliced GCODE's filename
|
||||
* ``gcode_location``: the sliced GCODE's location
|
||||
|
||||
SlicingFailed
|
||||
The slicing of a file has failed.
|
||||
|
|
@ -379,7 +385,9 @@ SlicingFailed
|
|||
Payload:
|
||||
|
||||
* ``stl``: the STL's filename
|
||||
* ``stl_location``: the STL's location
|
||||
* ``gcode``: the sliced GCODE's filename
|
||||
* ``gcode_location``: the sliced GCODE's location
|
||||
* ``reason``: the reason for the slicing having failed
|
||||
|
||||
SlicingProfileAdded
|
||||
|
|
|
|||
|
|
@ -295,7 +295,11 @@ class FileManager(object):
|
|||
|
||||
import time
|
||||
start_time = time.time()
|
||||
eventManager().fire(Events.SLICING_STARTED, {"stl": source_path, "gcode": dest_path, "progressAvailable": slicer.get_slicer_properties()["progress_report"] if slicer else False})
|
||||
eventManager().fire(Events.SLICING_STARTED, {"stl": source_path,
|
||||
"stl_location": source_location,
|
||||
"gcode": dest_path,
|
||||
"gcode_location": dest_location,
|
||||
"progressAvailable": slicer.get_slicer_properties()["progress_report"] if slicer else False})
|
||||
|
||||
import tempfile
|
||||
f = tempfile.NamedTemporaryFile(suffix=".gco", delete=False)
|
||||
|
|
|
|||
Loading…
Reference in a new issue