Add machine_file_format setting

This will determine which file formats a machine is able to save to. The setting is currently not yet used. It will be used to filter the output formats under the Save to File dialogue.

Contributes to issue CURA-611.
This commit is contained in:
Ghostkeeper 2016-02-09 13:50:02 +01:00
parent 5693d639f1
commit 80698c47de
14 changed files with 49 additions and 4 deletions

View File

@ -32,6 +32,9 @@
},
"machine_end_gcode": {
"default": ";End GCode\nM104 S0 ;extruder heater off\nM140 S0 ;heated bed heater off (if you have it)\nG91 ;relative positioning\nG1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure\nG1 Z+10 E-1 X-20 Y-20 F{travel_speed} ;move Z up a bit and retract filament even more\nG28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way\nG1 Y230 F3000 ;move Y so the head is out of the way and Plate is moved forward\nM84 ;steppers off\nG90 ;absolute positioning\n;{profile_string}"
},
"machine_file_formats": {
"default": "text/x-gcode",
}
},

View File

@ -30,6 +30,9 @@
},
"machine_end_gcode": {
"default": ";End GCode\nM104 S0 ;extruder heater off\nM140 S0 ;heated bed heater off (if you have it)\nG91 ;relative positioning\nG1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure\nG1 Z+10 E-1 X-20 Y-20 F{travel_speed} ;move Z up a bit and retract filament even more\nG28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way\nG1 Y230 F3000 ;move Y so the head is out of the way and Plate is moved forward\nM84 ;steppers off\nG90 ;absolute positioning\n;{profile_string}"
},
"machine_file_formats": {
"default": "text/x-gcode",
}
},

View File

@ -34,6 +34,9 @@
},
"machine_platform_offset": {
"default": [0, -82, 0]
},
"machine_file_formats": {
"default": "text/x-gcode"
}
},
"overrides": {

View File

@ -34,6 +34,9 @@
},
"machine_platform_offset": {
"default": [6, 1320, 0]
},
"machine_file_formats": {
"default": "text/x-gcode",
}
},
"overrides": {

View File

@ -34,6 +34,9 @@
},
"machine_platform_offset": {
"default": [0, -82, 0]
},
"machine_file_formats": {
"default": "text/x-gcode",
}
},
"overrides": {

View File

@ -34,6 +34,9 @@
},
"machine_platform_offset": {
"default": [0, -145, -38]
},
"machine_file_formats": {
"default": "text/x-gcode",
}
},
"overrides": {

View File

@ -34,6 +34,9 @@
},
"machine_platform_offset": {
"default": [0, -145, -38]
},
"machine_file_formats": {
"default": "text/x-gcode",
}
},
"overrides": {

View File

@ -175,6 +175,12 @@
"description": "The height difference between the tip of the nozzle and the gantry system (X and Y axes).",
"default": 99999999999,
"global_only": true
},
"machine_file_formats": {
"description": "The file formats that this printer is able to read.",
"type": "string",
"default": "text/x-gcode;application/sla;prs.wavefront-obj;application/octet-stream",
"global_only": true
}
},
"categories": {

View File

@ -30,6 +30,9 @@
},
"machine_end_gcode": {
"default": "M104 S0 ;extruder heater off\nM140 S0 ;heated bed heater off (if you have it)\nG91 ;relative positioning\nG1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure\nG1 Z+0.5 E-5 X-20 Y-20 F9000 ;move Z up a bit and retract filament even more\nG28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way\nM84 ;steppers off\nG90 ;absolute positioning"
},
"machine_file_formats": {
"default": "text/x-gcode",
}
},

View File

@ -24,7 +24,10 @@
"gantry_height": { "default": 55 },
"machine_gcode_flavor": { "default": "RepRap (Marlin/Sprinter)" },
"machine_start_gcode": { "default": "M136\nM73 P0\nM103\nG21\nG90\nM320\n;(**** begin homing ****)\nG162 X Y F4000\nG161 Z F3500\nG92 Z-5\nG1 Z0.0\nG161 Z F100\nM132 X Y Z A B\n;(**** end homing ****)\nG92 X147 Y66 Z5\nG1 X105 Y-60 Z10 F4000.0\nG130 X127 Y127 A127 B127\nG0 X105 Y-60\nG1 Z0.3 F300\nG92 E0\nG1 X100 E10 F300\nG92 E0\nG1 Z0.0 F300\nM320" },
"machine_end_gcode": { "default": "G92 Z0\nG1 Z10 F400\nM18\nM109 S0 T0\nM104 S0 T0\nM73 P100 (end build progress)\nG162 X Y F3000\nM18" }
"machine_end_gcode": { "default": "G92 Z0\nG1 Z10 F400\nM18\nM109 S0 T0\nM104 S0 T0\nM73 P100 (end build progress)\nG162 X Y F3000\nM18" },
"machine_file_formats": {
"default": "application/octet-stream",
}
},
"overrides": {

View File

@ -30,7 +30,10 @@
"machine_nozzle_tip_outer_diameter": { "default": 1.0 },
"machine_nozzle_head_distance": { "default": 3.0 },
"machine_nozzle_expansion_angle": { "default": 45 }
"machine_nozzle_expansion_angle": { "default": 45 },
"machine_file_formats": {
"default": "text/x-gcode;application/sla;prs.wavefront-obj",
}
},
"overrides": {

View File

@ -30,6 +30,9 @@
},
"machine_end_gcode": {
"default": "M104 S0 ;extruder heater off\nM140 S0 ;heated bed heater off (if you have it)\nG91 ;relative positioning\nG1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure\nG1 Z+0.5 E-5 X-20 Y-20 F9000 ;move Z up a bit and retract filament even more\nG28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way\nM84 ;steppers off\nG90 ;absolute positioning"
},
"machine_file_formats": {
"default": "text/x-gcode",
}
}
}

View File

@ -79,7 +79,10 @@
"machine_nozzle_tip_outer_diameter": { "default": 1.0 },
"machine_nozzle_head_distance": { "default": 3.0 },
"machine_nozzle_expansion_angle": { "default": 45 }
"machine_nozzle_expansion_angle": { "default": 45 },
"machine_file_formats": {
"default": "text/x-gcode",
}
},
"overrides": {

View File

@ -78,6 +78,9 @@
"default": "M104 S0 ;extruder heater off\nM140 S0 ;heated bed heater off (if you have it)\nG91 ;relative positioning\nG1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure\nG1 Z+0.5 E-5 X-20 Y-20 F9000 ;move Z up a bit and retract filament even more\nG28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way\nM84 ;steppers off\nG90 ;absolute positioning"
},
"machine_extruder_drive_upgrade": { "default": false }
"machine_extruder_drive_upgrade": { "default": false },
"machine_file_formats": {
"default": "text/x-gcode",
}
}
}