mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
Added stubs for checking if a print is at all possible
CURA-1036
This commit is contained in:
parent
a36157c538
commit
44c2a09118
1 changed files with 13 additions and 0 deletions
|
@ -129,6 +129,19 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
|||
|
||||
def requestWrite(self, node, file_name = None, filter_by_machine = False):
|
||||
self._gcode = getattr(Application.getInstance().getController().getScene(), "gcode_list")
|
||||
|
||||
# TODO: Implement all checks.
|
||||
# Check if cartridges are loaded at all (Error)
|
||||
#self._json_printer_state["heads"][0]["extruders"][0]["hotend"]["id"] != ""
|
||||
|
||||
# Check if there is material loaded at all (Error)
|
||||
#self._json_printer_state["heads"][0]["extruders"][0]["active_material"]["GUID"] != ""
|
||||
|
||||
# Check if there is enough material (Warning)
|
||||
#self._json_printer_state["heads"][0]["extruders"][0]["active_material"]["length_remaining"]
|
||||
|
||||
#TODO: Check if the cartridge is the right ID (give warning otherwise)
|
||||
|
||||
self.startPrint()
|
||||
|
||||
def isConnected(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue