-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
PrintConfig.cpp
2148 lines (1909 loc) · 104 KB
/
PrintConfig.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#include "PrintConfig.hpp"
#include <boost/algorithm/string/replace.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/thread.hpp>
namespace Slic3r {
PrintConfigDef::PrintConfigDef()
{
ConfigOptionDef external_fill_pattern;
external_fill_pattern.type = coEnum;
external_fill_pattern.enum_keys_map = ConfigOptionEnum<InfillPattern>::get_enum_values();
external_fill_pattern.enum_values.push_back("rectilinear");
external_fill_pattern.enum_values.push_back("concentric");
external_fill_pattern.enum_values.push_back("hilbertcurve");
external_fill_pattern.enum_values.push_back("archimedeanchords");
external_fill_pattern.enum_values.push_back("octagramspiral");
external_fill_pattern.enum_labels.push_back(__TRANS("Rectilinear"));
external_fill_pattern.enum_labels.push_back(__TRANS("Concentric"));
external_fill_pattern.enum_labels.push_back(__TRANS("Hilbert Curve"));
external_fill_pattern.enum_labels.push_back(__TRANS("Archimedean Chords"));
external_fill_pattern.enum_labels.push_back(__TRANS("Octagram Spiral"));
ConfigOptionDef* def;
def = this->add("adaptive_slicing", coBool);
def->label = "Use adaptive slicing";
def->category = "Layers and Perimeters";
def->tooltip = "Automatically determine layer heights by the objects topology instead of using the static value.";
def->cli = "adaptive-slicing!";
def->default_value = new ConfigOptionBool(false);
def = this->add("adaptive_slicing_quality", coPercent);
def->label = __TRANS("Adaptive quality");
def->category = __TRANS("Layers and Perimeters");
def->tooltip = __TRANS("Controls the quality / printing time tradeoff for adaptive layer generation. 0 -> fastest printing with max layer height, 100 -> highest quality, min layer height");
def->sidetext = "%";
def->cli = "adaptive-slicing-quality=f";
def->min = 0;
def->max = 100;
def->gui_type = "slider";
def->width = 200;
def->default_value = new ConfigOptionPercent(75);
def = this->add("avoid_crossing_perimeters", coBool);
def->label = __TRANS("Avoid crossing perimeters");
def->category = __TRANS("Layers and Perimeters");
def->tooltip = __TRANS("Optimize travel moves in order to minimize the crossing of perimeters. This is mostly useful with Bowden extruders which suffer from oozing. This feature slows down both the print and the G-code generation.");
def->cli = "avoid-crossing-perimeters!";
def->default_value = new ConfigOptionBool(false);
def = this->add("bed_shape", coPoints);
def->label = __TRANS("Bed shape");
def->tooltip = __TRANS("Shape of the print bed.");
{
ConfigOptionPoints* opt = new ConfigOptionPoints();
opt->values.push_back(Pointf(0,0));
opt->values.push_back(Pointf(200,0));
opt->values.push_back(Pointf(200,200));
opt->values.push_back(Pointf(0,200));
def->default_value = opt;
}
def->cli = "bed-shape=s";
def = this->add("has_heatbed", coBool);
def->label = __TRANS("Has heated bed");
def->tooltip = __TRANS("Unselecting this will suppress automatic generation of bed heating gcode.");
def->cli = "has_heatbed!";
def->default_value = new ConfigOptionBool(true);
def = this->add("bed_temperature", coInt);
def->label = __TRANS("Other layers");
def->tooltip = __TRANS("Bed temperature for layers after the first one.");
def->cli = "bed-temperature=i";
def->full_label = __TRANS("Bed temperature");
def->min = 0;
def->max = 300;
def->default_value = new ConfigOptionInt(0);
def = this->add("before_layer_gcode", coString);
def->label = __TRANS("Before layer change G-code");
def->tooltip = __TRANS("This custom code is inserted at every layer change, right before the Z move. Note that you can use placeholder variables for all Slic3r settings as well as [layer_num], [layer_z] and [current_retraction].");
def->cli = "before-layer-gcode=s";
def->multiline = true;
def->full_width = true;
def->height = 50;
def->default_value = new ConfigOptionString("");
def = this->add("between_objects_gcode", coString);
def->label = __TRANS("Between objects G-code");
def->tooltip = __TRANS("This code is inserted between objects when using sequential printing. By default extruder and bed temperature are reset using non-wait command; however if M104, M109, M140 or M190 are detected in this custom code, Slic3r will not add temperature commands. Note that you can use placeholder variables for all Slic3r settings, so you can put a \"M109 S[first_layer_temperature]\" command wherever you want.");
def->cli = "between-objects-gcode=s";
def->multiline = true;
def->full_width = true;
def->height = 120;
def->default_value = new ConfigOptionString("");
def = this->add("bottom_infill_pattern", external_fill_pattern);
def->label = __TRANS("Bottom");
def->full_label = __TRANS("Bottom infill pattern");
def->category = __TRANS("Infill");
def->tooltip = __TRANS("Infill pattern for bottom layers. This only affects the external visible layer, and not its adjacent solid shells.");
def->cli = "bottom-infill-pattern=s";
def->default_value = new ConfigOptionEnum<InfillPattern>(ipRectilinear);
def = this->add("bottom_solid_layers", coInt);
def->label = __TRANS("Bottom");
def->category = __TRANS("Layers and Perimeters");
def->tooltip = __TRANS("Number of solid layers to generate on bottom surfaces.");
def->cli = "bottom-solid-layers=i";
def->full_label = __TRANS("Bottom solid layers");
def->min = 0;
def->default_value = new ConfigOptionInt(3);
def = this->add("bridge_acceleration", coFloat);
def->label = __TRANS("Bridge");
def->category = __TRANS("Speed > Acceleration");
def->tooltip = __TRANS("This is the acceleration your printer will use for bridges. Set zero to disable acceleration control for bridges.");
def->sidetext = "mm/s²";
def->cli = "bridge-acceleration=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(0);
def = this->add("bridge_fan_speed", coInt);
def->label = __TRANS("Bridges fan speed");
def->tooltip = __TRANS("This fan speed is enforced during all bridges and overhangs.");
def->sidetext = "%";
def->cli = "bridge-fan-speed=i";
def->min = 0;
def->max = 100;
def->default_value = new ConfigOptionInt(100);
def = this->add("bridge_flow_ratio", coFloat);
def->label = __TRANS("Bridge flow ratio");
def->category = __TRANS("Advanced");
def->tooltip = __TRANS("This factor affects the amount of plastic for bridging. You can decrease it slightly to pull the extrudates and prevent sagging, although default settings are usually good and you should experiment with cooling (use a fan) before tweaking this.");
def->cli = "bridge-flow-ratio=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(1);
def = this->add("bridge_speed", coFloat);
def->label = __TRANS("Bridges");
def->gui_type = "f_enum_open";
def->category = __TRANS("Speed");
def->tooltip = __TRANS("Speed for printing bridges.");
def->sidetext = "mm/s";
def->cli = "bridge-speed=f";
def->aliases.push_back("bridge_feed_rate");
def->min = 0;
def->enum_values.push_back("0");
def->enum_labels.push_back("auto");
def->default_value = new ConfigOptionFloat(60);
def = this->add("brim_connections_width", coFloat);
def->label = __TRANS("Brim connections width");
def->category = __TRANS("Skirt and brim");
def->tooltip = __TRANS("If set to a positive value, straight connections will be built on the first layer between adjacent objects.");
def->sidetext = "mm";
def->cli = "brim-connections-width=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(0);
def = this->add("brim_ears", coBool);
def->label = __TRANS("Exterior brim ears");
def->category = __TRANS("Skirt and brim");
def->tooltip = __TRANS("Draw the brim only over the sharp edges of the model.");
def->cli = "brim-ears!";
def->default_value = new ConfigOptionBool(false);
def = this->add("brim_ears_max_angle", coFloat);
def->label = __TRANS("Brim ears Maximum Angle");
def->category = __TRANS("Skirt and brim");
def->tooltip = __TRANS("Maximum angle for a corner to place a brim ear.");
def->sidetext = "°";
def->cli = "brim-ears-max-angle=f";
def->min = 0;
def->max = 180;
def->default_value = new ConfigOptionFloat(125);
def = this->add("brim_width", coFloat);
def->label = __TRANS("Exterior brim width");
def->category = __TRANS("Skirt and brim");
def->tooltip = __TRANS("Horizontal width of the brim that will be printed around each object on the first layer.");
def->sidetext = "mm";
def->cli = "brim-width=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(0);
def = this->add("compatible_printers", coStrings);
def->label = __TRANS("Compatible printers");
def->default_value = new ConfigOptionStrings();
def = this->add("complete_objects", coBool);
def->label = __TRANS("Complete individual objects");
def->category = __TRANS("Advanced");
def->tooltip = __TRANS("When printing multiple objects or copies, this feature will complete each object before moving onto next one (and starting it from its bottom layer). This feature is useful to avoid the risk of ruined prints. Slic3r should warn and prevent you from extruder collisions, but beware.");
def->cli = "complete-objects!";
def->default_value = new ConfigOptionBool(false);
def = this->add("cooling", coBool);
def->label = __TRANS("Enable auto cooling");
def->tooltip = __TRANS("This flag enables the automatic cooling logic that adjusts print speed and fan speed according to layer printing time.");
def->cli = "cooling!";
def->default_value = new ConfigOptionBool(true);
def = this->add("default_acceleration", coFloat);
def->label = __TRANS("Default");
def->category = __TRANS("Speed > Acceleration");
def->tooltip = __TRANS("This is the acceleration your printer will be reset to after the role-specific acceleration values are used (perimeter/infill). Set zero to prevent resetting acceleration at all.");
def->sidetext = "mm/s²";
def->cli = "default-acceleration=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(0);
def = this->add("disable_fan_first_layers", coInt);
def->label = __TRANS("Disable fan for the first");
def->tooltip = __TRANS("This disables the fan completely for the first N layers to aid in the adhesion of media to the bed.");
def->sidetext = __TRANS("layers");
def->cli = "disable-fan-first-layers=i";
def->min = 0;
def->max = 1000;
def->default_value = new ConfigOptionInt(3);
def = this->add("dont_support_bridges", coBool);
def->label = __TRANS("Don't support bridges");
def->category = __TRANS("Support material");
def->tooltip = __TRANS("Experimental option for preventing support material from being generated under bridged areas.");
def->cli = "dont-support-bridges!";
def->default_value = new ConfigOptionBool(true);
def = this->add("duplicate_distance", coFloat);
def->label = __TRANS("Distance between copies");
def->tooltip = __TRANS("Distance used for the auto-arrange feature of the plater.");
def->sidetext = "mm";
def->cli = "duplicate-distance=f";
def->aliases.push_back("multiply_distance");
def->min = 0;
def->default_value = new ConfigOptionFloat(6);
def = this->add("end_gcode", coString);
def->label = __TRANS("End G-code");
def->tooltip = __TRANS("This end procedure is inserted at the end of the output file. Note that you can use placeholder variables for all Slic3r settings. If Slic3r detects M104, M109, M140 or M190 in your custom codes, such commands will not be prepended automatically so you're free to customize the order of heating commands and other custom actions.");
def->cli = "end-gcode=s";
def->multiline = true;
def->full_width = true;
def->height = 120;
def->default_value = new ConfigOptionString("M104 S0 ; turn off temperature\nG28 X0 ; home X axis\nM84 ; disable motors\n");
def = this->add("end_filament_gcode", coStrings);
def->label = __TRANS("End G-code");
def->tooltip = __TRANS("This end procedure is inserted at the end of the output file, before the printer end gcode. Note that you can use placeholder variables for all Slic3r settings. If you have multiple extruders, the gcode is processed in extruder order. If Slic3r detects M104, M109, M140 or M190 in your custom codes, such commands will not be prepended automatically so you're free to customize the order of heating commands and other custom actions.");
def->cli = "end-filament-gcode=s@";
def->multiline = true;
def->full_width = true;
def->height = 120;
{
ConfigOptionStrings* opt = new ConfigOptionStrings();
opt->values.push_back("; Filament-specific end gcode \n;END gcode for filament\n");
def->default_value = opt;
}
def = this->add("external_fill_pattern", external_fill_pattern);
def->label = __TRANS("Top/bottom fill pattern");
def->category = __TRANS("Infill");
def->tooltip = __TRANS("Fill pattern for top/bottom infill. This only affects the external visible layer, and not its adjacent solid shells.");
def->cli = "external-fill-pattern|external-infill-pattern|solid-fill-pattern=s";
def->aliases.push_back("solid_fill_pattern");
def->shortcut.push_back("top_infill_pattern");
def->shortcut.push_back("bottom_infill_pattern");
def = this->add("external_perimeter_extrusion_width", coFloatOrPercent);
def->label = __TRANS("↳ external");
def->full_label = __TRANS("External perimeters extrusion width");
def->gui_type = "f_enum_open";
def->category = __TRANS("Extrusion Width");
def->tooltip = __TRANS("Set this to a non-zero value to set a manual extrusion width for external perimeters. If auto is chosen, a value will be used that maximizes accuracy of the external visible surfaces. If expressed as percentage (for example 200%) it will be computed over layer height.");
def->sidetext = "mm or %";
def->cli = "external-perimeter-extrusion-width=s";
def->min = 0;
def->enum_values.push_back("0");
def->enum_labels.push_back("auto");
def->default_value = new ConfigOptionFloatOrPercent(0, false);
def = this->add("external_perimeter_speed", coFloatOrPercent);
def->label = __TRANS("↳ external");
def->full_label = __TRANS("External perimeters speed");
def->gui_type = "f_enum_open";
def->category = __TRANS("Speed");
def->tooltip = __TRANS("This separate setting will affect the speed of external perimeters (the visible ones). If expressed as percentage (for example: 80%) it will be calculated on the perimeters speed setting above.");
def->sidetext = "mm/s or %";
def->cli = "external-perimeter-speed=s";
def->ratio_over = "perimeter_speed";
def->min = 0;
def->enum_values.push_back("0");
def->enum_labels.push_back("auto");
def->default_value = new ConfigOptionFloatOrPercent(50, true);
def = this->add("external_perimeters_first", coBool);
def->label = __TRANS("External perimeters first");
def->category = __TRANS("Layers and Perimeters");
def->tooltip = __TRANS("Print contour perimeters from the outermost one to the innermost one instead of the default inverse order.");
def->cli = "external-perimeters-first!";
def->default_value = new ConfigOptionBool(false);
def = this->add("extra_perimeters", coBool);
def->label = __TRANS("Extra perimeters if needed");
def->category = __TRANS("Layers and Perimeters");
def->tooltip = __TRANS("Add more perimeters when needed for avoiding gaps in sloping walls.");
def->cli = "extra-perimeters!";
def->default_value = new ConfigOptionBool(true);
def = this->add("extruder", coInt);
def->gui_type = "i_enum_open";
def->label = __TRANS("Extruder");
def->category = __TRANS("Extruders");
def->tooltip = __TRANS("The extruder to use (unless more specific extruder settings are specified).");
def->cli = "extruder=i";
def->min = 0; // 0 = inherit defaults
def->enum_labels.push_back("default"); // override label for item 0
def->enum_labels.push_back("1");
def->enum_labels.push_back("2");
def->enum_labels.push_back("3");
def->enum_labels.push_back("4");
def = this->add("extruder_clearance_height", coFloat);
def->label = __TRANS("Height");
def->tooltip = __TRANS("Set this to the vertical distance between your nozzle tip and (usually) the X carriage rods. In other words, this is the height of the clearance cylinder around your extruder, and it represents the maximum depth the extruder can peek before colliding with other printed objects.");
def->sidetext = "mm";
def->cli = "extruder-clearance-height=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(20);
def = this->add("extruder_clearance_radius", coFloat);
def->label = __TRANS("Radius");
def->tooltip = __TRANS("Set this to the clearance radius around your extruder. If the extruder is not centered, choose the largest value for safety. This setting is used to check for collisions and to display the graphical preview in the plater.");
def->sidetext = "mm";
def->cli = "extruder-clearance-radius=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(20);
def = this->add("extruder_offset", coPoints);
def->label = __TRANS("Extruder offset");
def->tooltip = __TRANS("If your firmware doesn't handle the extruder displacement you need the G-code to take it into account. This option lets you specify the displacement of each extruder with respect to the first one. It expects positive coordinates (they will be subtracted from the XY coordinate).");
def->sidetext = "mm";
def->cli = "extruder-offset=s@";
{
ConfigOptionPoints* opt = new ConfigOptionPoints();
opt->values.push_back(Pointf(0,0));
def->default_value = opt;
}
def = this->add("extrusion_axis", coString);
def->label = __TRANS("Extrusion axis");
def->tooltip = __TRANS("Use this option to set the axis letter associated to your printer's extruder (usually E but some printers use A).");
def->cli = "extrusion-axis=s";
def->default_value = new ConfigOptionString("E");
def = this->add("extrusion_multiplier", coFloats);
def->label = __TRANS("Extrusion multiplier");
def->tooltip = __TRANS("This factor changes the amount of flow proportionally. You may need to tweak this setting to get nice surface finish and correct single wall widths. Usual values are between 0.9 and 1.1. If you think you need to change this more, check filament diameter and your firmware E steps.");
def->cli = "extrusion-multiplier=f@";
{
ConfigOptionFloats* opt = new ConfigOptionFloats();
opt->values.push_back(1);
def->default_value = opt;
}
def = this->add("extrusion_width", coFloatOrPercent);
def->label = __TRANS("Default extrusion width");
def->gui_type = "f_enum_open";
def->category = __TRANS("Extrusion Width");
def->tooltip = __TRANS("Set this to a non-zero value to set a manual extrusion width. If expressed as percentage (for example: 230%) it will be computed over layer height.");
def->sidetext = "mm or %";
def->cli = "extrusion-width=s";
def->min = 0;
def->enum_values.push_back("0");
def->enum_labels.push_back("auto");
def->default_value = new ConfigOptionFloatOrPercent(0, false);
def = this->add("fan_always_on", coBool);
def->label = __TRANS("Keep fan always on");
def->tooltip = __TRANS("If this is enabled, fan will never be disabled and will be kept running at least at its minimum speed. Useful for PLA, harmful for ABS.");
def->cli = "fan-always-on!";
def->default_value = new ConfigOptionBool(false);
def = this->add("fan_below_layer_time", coInt);
def->label = __TRANS("Enable fan if layer print time is below");
def->tooltip = __TRANS("If layer print time is estimated below this number of seconds, fan will be enabled and its speed will be calculated by interpolating the minimum and maximum speeds.");
def->sidetext = "approximate seconds";
def->cli = "fan-below-layer-time=i";
def->width = 60;
def->min = 0;
def->max = 1000;
def->default_value = new ConfigOptionInt(60);
def = this->add("filament_colour", coStrings);
def->label = __TRANS("Color");
def->tooltip = __TRANS("This is only used in the Slic3r interface as a visual help.");
def->cli = "filament-color=s@";
def->gui_type = "color";
{
ConfigOptionStrings* opt = new ConfigOptionStrings();
opt->values.push_back("#FFFFFF");
def->default_value = opt;
}
def = this->add("filament_notes", coStrings);
def->label = __TRANS("Filament notes");
def->tooltip = __TRANS("You can put your notes regarding the filament here.");
def->cli = "filament-notes=s@";
def->multiline = true;
def->full_width = true;
def->height = 130;
{
ConfigOptionStrings* opt = new ConfigOptionStrings();
opt->values.push_back("");
def->default_value = opt;
}
def = this->add("filament_max_volumetric_speed", coFloats);
def->label = __TRANS("Max volumetric speed");
def->tooltip = __TRANS("Maximum volumetric speed allowed for this filament. Limits the maximum volumetric speed of a print to the minimum of print and filament volumetric speed. Set to zero for no limit.");
def->sidetext = "mm³/s";
def->cli = "filament-max-volumetric-speed=f@";
def->min = 0;
{
ConfigOptionFloats* opt = new ConfigOptionFloats();
opt->values.push_back(0.f);
def->default_value = opt;
}
def = this->add("fan_percentage", coBool);
def->label = __TRANS("Fan PWM from 0-100");
def->tooltip = __TRANS("Set this if your printer uses control values from 0-100 instead of 0-255.");
def->cli = "fan-percentage";
def->default_value = new ConfigOptionBool(false);
def = this->add("filament_diameter", coFloats);
def->label = __TRANS("Diameter");
def->tooltip = __TRANS("Enter your filament diameter here. Good precision is required, so use a caliper and do multiple measurements along the filament, then compute the average.");
def->sidetext = "mm";
def->cli = "filament-diameter=f@";
def->min = 0;
{
ConfigOptionFloats* opt = new ConfigOptionFloats();
opt->values.push_back(3);
def->default_value = opt;
}
def = this->add("filament_density", coFloats);
def->label = __TRANS("Density");
def->tooltip = __TRANS("Enter your filament density here. This is only for statistical information. A decent way is to weigh a known length of filament and compute the ratio of the length to volume. Better is to calculate the volume directly through displacement.");
def->sidetext = "g/cm³";
def->cli = "filament-density=f@";
def->min = 0;
{
ConfigOptionFloats* opt = new ConfigOptionFloats();
opt->values.push_back(0);
def->default_value = opt;
}
def = this->add("filament_cost", coFloats);
def->label = __TRANS("Cost");
def->tooltip = __TRANS("Enter your filament cost per kg here. This is only for statistical information.");
def->sidetext = __TRANS("money/kg");
def->cli = "filament-cost=f@";
def->min = 0;
{
ConfigOptionFloats* opt = new ConfigOptionFloats();
opt->values.push_back(0);
def->default_value = opt;
}
def = this->add("filament_settings_id", coString);
def->default_value = new ConfigOptionString("");
def = this->add("fill_angle", coFloat);
def->label = __TRANS("Fill angle");
def->category = __TRANS("Infill");
def->tooltip = __TRANS("Default base angle for infill orientation. Cross-hatching will be applied to this. Bridges will be infilled using the best direction Slic3r can detect, so this setting does not affect them.");
def->sidetext = "°";
def->cli = "fill-angle=i";
def->min = 0;
def->max = 359;
def->default_value = new ConfigOptionFloat(45);
def = this->add("fill_density", coPercent);
def->gui_type = "f_enum_open";
def->gui_flags = "show_value";
def->label = __TRANS("Fill density");
def->category = __TRANS("Infill");
def->tooltip = __TRANS("Density of internal infill, expressed in the range 0% - 100%.");
def->sidetext = "%";
def->cli = "fill-density=s";
def->min = 0;
def->max = 100;
def->enum_values.push_back("0");
def->enum_values.push_back("5");
def->enum_values.push_back("10");
def->enum_values.push_back("15");
def->enum_values.push_back("20");
def->enum_values.push_back("25");
def->enum_values.push_back("30");
def->enum_values.push_back("40");
def->enum_values.push_back("50");
def->enum_values.push_back("60");
def->enum_values.push_back("70");
def->enum_values.push_back("80");
def->enum_values.push_back("90");
def->enum_values.push_back("100");
def->enum_labels.push_back("0%");
def->enum_labels.push_back("5%");
def->enum_labels.push_back("10%");
def->enum_labels.push_back("15%");
def->enum_labels.push_back("20%");
def->enum_labels.push_back("25%");
def->enum_labels.push_back("30%");
def->enum_labels.push_back("40%");
def->enum_labels.push_back("50%");
def->enum_labels.push_back("60%");
def->enum_labels.push_back("70%");
def->enum_labels.push_back("80%");
def->enum_labels.push_back("90%");
def->enum_labels.push_back("100%");
def->default_value = new ConfigOptionPercent(20);
def = this->add("fill_gaps", coBool);
def->label = __TRANS("Fill gaps");
def->category = __TRANS("Infill");
def->tooltip = __TRANS("If this is enabled, gaps will be filled with single passes. Enable this for better quality, disable it for shorter printing times.");
def->cli = "fill-gaps!";
def->default_value = new ConfigOptionBool(true);
def = this->add("fill_pattern", coEnum);
def->label = __TRANS("Fill pattern");
def->category = __TRANS("Infill");
def->tooltip = __TRANS("Fill pattern for general low-density infill.");
def->cli = "fill-pattern=s";
def->enum_keys_map = ConfigOptionEnum<InfillPattern>::get_enum_values();
def->enum_values.push_back("rectilinear");
def->enum_values.push_back("alignedrectilinear");
def->enum_values.push_back("grid");
def->enum_values.push_back("triangles");
def->enum_values.push_back("stars");
def->enum_values.push_back("cubic");
def->enum_values.push_back("concentric");
def->enum_values.push_back("honeycomb");
def->enum_values.push_back("3dhoneycomb");
def->enum_values.push_back("gyroid");
def->enum_values.push_back("hilbertcurve");
def->enum_values.push_back("archimedeanchords");
def->enum_values.push_back("octagramspiral");
def->enum_labels.push_back(__TRANS("Rectilinear"));
def->enum_labels.push_back(__TRANS("Aligned Rectilinear"));
def->enum_labels.push_back(__TRANS("Grid"));
def->enum_labels.push_back(__TRANS("Triangles"));
def->enum_labels.push_back(__TRANS("Stars"));
def->enum_labels.push_back(__TRANS("Cubic"));
def->enum_labels.push_back(__TRANS("Concentric"));
def->enum_labels.push_back(__TRANS("Honeycomb"));
def->enum_labels.push_back(__TRANS("3D Honeycomb"));
def->enum_labels.push_back(__TRANS("Gyroid"));
def->enum_labels.push_back(__TRANS("Hilbert Curve"));
def->enum_labels.push_back(__TRANS("Archimedean Chords"));
def->enum_labels.push_back(__TRANS("Octagram Spiral"));
def->default_value = new ConfigOptionEnum<InfillPattern>(ipStars);
def = this->add("first_layer_acceleration", coFloat);
def->label = __TRANS("First layer");
def->category = __TRANS("Speed > Acceleration");
def->tooltip = __TRANS("This is the acceleration your printer will use for first layer. Set zero to disable acceleration control for first layer.");
def->sidetext = "mm/s²";
def->cli = "first-layer-acceleration=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(0);
def = this->add("first_layer_bed_temperature", coInt);
def->label = __TRANS("First layer");
def->tooltip = __TRANS("Heated build plate temperature for the first layer. Set this to zero to disable bed temperature control commands in the output.");
def->cli = "first-layer-bed-temperature=i";
def->max = 0;
def->max = 300;
def->default_value = new ConfigOptionInt(0);
def = this->add("first_layer_extrusion_width", coFloatOrPercent);
def->label = __TRANS("First layer");
def->gui_type = "f_enum_open";
def->category = __TRANS("Extrusion Width");
def->tooltip = __TRANS("Set this to a non-zero value to set a manual extrusion width for first layer. You can use this to force fatter extrudates for better adhesion. If expressed as percentage (for example 120%) it will be computed over first layer height.");
def->sidetext = "mm or %";
def->cli = "first-layer-extrusion-width=s";
def->ratio_over = "first_layer_height";
def->min = 0;
def->enum_values.push_back("200%");
def->enum_labels.push_back("default");
def->enum_values.push_back("0");
def->enum_labels.push_back("auto");
def->default_value = new ConfigOptionFloatOrPercent(200, true);
def = this->add("first_layer_height", coFloatOrPercent);
def->label = __TRANS("First layer height");
def->category = __TRANS("Layers and Perimeters");
def->tooltip = __TRANS("When printing with very low layer heights, you might still want to print a thicker bottom layer to improve adhesion and tolerance for non perfect build plates. This can be expressed as an absolute value or as a percentage (for example: 150%) over the default layer height.");
def->sidetext = "mm or %";
def->cli = "first-layer-height=s";
def->ratio_over = "layer_height";
def->default_value = new ConfigOptionFloatOrPercent(0.35, false);
def = this->add("first_layer_speed", coFloatOrPercent);
def->label = __TRANS("First layer speed");
def->category = __TRANS("Speed");
def->tooltip = __TRANS("If expressed as absolute value in mm/s, this speed will be applied to all the print moves of the first layer, regardless of their type. If expressed as a percentage (for example: 40%) it will scale the default speeds.");
def->sidetext = "mm/s or %";
def->cli = "first-layer-speed=s";
def->min = 0;
def->default_value = new ConfigOptionFloatOrPercent(30, false);
def = this->add("first_layer_temperature", coInts);
def->label = __TRANS("First layer");
def->tooltip = __TRANS("Extruder temperature for first layer. If you want to control temperature manually during print, set this to zero to disable temperature control commands in the output file.");
def->cli = "first-layer-temperature=i@";
def->min = 0;
def->max = 500;
{
ConfigOptionInts* opt = new ConfigOptionInts();
opt->values.push_back(200);
def->default_value = opt;
}
def = this->add("gap_fill_speed", coFloatOrPercent);
def->label = __TRANS("↳ gaps");
def->full_label = "Gap fill speed";
def->gui_type = "f_enum_open";
def->category = __TRANS("Speed");
def->tooltip = __TRANS("Speed for filling gaps. Since these are usually single lines you might want to use a low speed for better sticking. If expressed as percentage (for example: 80%) it will be calculated on the infill speed setting above.");
def->sidetext = "mm/s or %";
def->cli = "gap-fill-speed=s";
def->ratio_over = "infill_speed";
def->min = 0;
def->enum_values.push_back("0");
def->enum_labels.push_back("auto");
def->default_value = new ConfigOptionFloatOrPercent(20, false);
def = this->add("gcode_arcs", coBool);
def->label = __TRANS("Use native G-code arcs");
def->tooltip = __TRANS("This experimental feature tries to detect arcs from segments and generates G2/G3 arc commands instead of multiple straight G1 commands.");
def->cli = "gcode-arcs!";
def->default_value = new ConfigOptionBool(0);
def = this->add("gcode_comments", coBool);
def->label = __TRANS("Verbose G-code");
def->tooltip = __TRANS("Enable this to get a commented G-code file, with each line explained by a descriptive text. If you print from SD card, the additional weight of the file could make your firmware slow down.");
def->cli = "gcode-comments!";
def->default_value = new ConfigOptionBool(0);
def = this->add("gcode_flavor", coEnum);
def->label = __TRANS("G-code flavor");
def->tooltip = __TRANS("Some G/M-code commands, including temperature control and others, are not universal. Set this option to your printer's firmware to get a compatible output. The \"No extrusion\" flavor prevents Slic3r from exporting any extrusion value at all.");
def->cli = "gcode-flavor=s";
def->enum_keys_map = ConfigOptionEnum<GCodeFlavor>::get_enum_values();
def->enum_values.push_back("reprap");
def->enum_values.push_back("repetier");
def->enum_values.push_back("teacup");
def->enum_values.push_back("makerware");
def->enum_values.push_back("sailfish");
def->enum_values.push_back("mach3");
def->enum_values.push_back("machinekit");
def->enum_values.push_back("smoothie");
def->enum_values.push_back("no-extrusion");
def->enum_labels.push_back("RepRap (Marlin/Sprinter)");
def->enum_labels.push_back("Repetier");
def->enum_labels.push_back("Teacup");
def->enum_labels.push_back("MakerWare (MakerBot)");
def->enum_labels.push_back("Sailfish (MakerBot)");
def->enum_labels.push_back("Mach3/LinuxCNC");
def->enum_labels.push_back("Machinekit");
def->enum_labels.push_back("Smoothieware");
def->enum_labels.push_back("No extrusion");
def->default_value = new ConfigOptionEnum<GCodeFlavor>(gcfRepRap);
def = this->add("host_type", coEnum);
def->label = "Host type";
def->tooltip = "Select Octoprint or Duet to connect to your machine via LAN";
def->cli = "host-type=s";
def->enum_keys_map = ConfigOptionEnum<HostType>::get_enum_values();
def->enum_values.push_back("octoprint");
def->enum_values.push_back("duet");
def->enum_labels.push_back("Octoprint");
def->enum_labels.push_back("Duet");
def->default_value = new ConfigOptionEnum<HostType>(htOctoprint);
def = this->add("infill_acceleration", coFloat);
def->label = __TRANS("Infill");
def->category = __TRANS("Speed > Acceleration");
def->tooltip = __TRANS("This is the acceleration your printer will use for infill. Set zero to disable acceleration control for infill.");
def->sidetext = "mm/s²";
def->cli = "infill-acceleration=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(0);
def = this->add("infill_every_layers", coInt);
def->label = __TRANS("Combine infill every");
def->category = __TRANS("Infill");
def->tooltip = __TRANS("This feature allows to combine infill and speed up your print by extruding thicker infill layers while preserving thin perimeters, thus accuracy.");
def->sidetext = "layers";
def->cli = "infill-every-layers=i";
def->full_label = "Combine infill every n layers";
def->min = 1;
def->default_value = new ConfigOptionInt(1);
def = this->add("infill_extruder", coInt);
def->label = __TRANS("Infill extruder");
def->category = __TRANS("Extruders");
def->tooltip = __TRANS("The extruder to use when printing infill.");
def->cli = "infill-extruder=i";
def->min = 1;
def->default_value = new ConfigOptionInt(1);
def = this->add("infill_extrusion_width", coFloatOrPercent);
def->label = __TRANS("Infill");
def->gui_type = "f_enum_open";
def->category = __TRANS("Extrusion Width");
def->tooltip = __TRANS("Set this to a non-zero value to set a manual extrusion width for infill. You may want to use fatter extrudates to speed up the infill and make your parts stronger. If expressed as percentage (for example 90%) it will be computed over layer height.");
def->sidetext = "mm or %";
def->cli = "infill-extrusion-width=s";
def->min = 0;
def->enum_values.push_back("0");
def->enum_labels.push_back("default");
def->default_value = new ConfigOptionFloatOrPercent(0, false);
def = this->add("infill_first", coBool);
def->label = __TRANS("Infill before perimeters");
def->category = __TRANS("Infill");
def->tooltip = __TRANS("This option will switch the print order of perimeters and infill, making the latter first.");
def->cli = "infill-first!";
def->default_value = new ConfigOptionBool(false);
def = this->add("infill_only_where_needed", coBool);
def->label = __TRANS("Only infill where needed");
def->category = __TRANS("Infill");
def->tooltip = __TRANS("This option will limit infill to the areas actually needed for supporting ceilings (it will act as internal support material). If enabled, slows down the G-code generation due to the multiple checks involved.");
def->cli = "infill-only-where-needed!";
def->default_value = new ConfigOptionBool(false);
def = this->add("infill_overlap", coFloatOrPercent);
def->label = __TRANS("Infill/perimeters overlap");
def->category = __TRANS("Advanced");
def->tooltip = __TRANS("This setting applies an additional overlap between infill and perimeters for better bonding. Theoretically this shouldn't be needed, but backlash might cause gaps. If expressed as percentage (example: 15%) it is calculated over perimeter extrusion width.");
def->sidetext = "mm or %";
def->cli = "infill-overlap=s";
def->ratio_over = "perimeter_extrusion_width";
def->default_value = new ConfigOptionFloatOrPercent(55, true);
def = this->add("infill_speed", coFloat);
def->label = __TRANS("Infill");
def->gui_type = "f_enum_open";
def->category = __TRANS("Speed");
def->tooltip = __TRANS("Speed for printing the internal fill.");
def->sidetext = "mm/s";
def->cli = "infill-speed=f";
def->aliases.push_back("print_feed_rate");
def->aliases.push_back("infill_feed_rate");
def->min = 0;
def->enum_values.push_back("0");
def->enum_labels.push_back("auto");
def->default_value = new ConfigOptionFloat(80);
def = this->add("interior_brim_width", coFloat);
def->label = __TRANS("Interior brim width");
def->category = __TRANS("Skirt and brim");
def->tooltip = __TRANS("Horizontal width of the brim that will be printed inside object holes on the first layer.");
def->sidetext = "mm";
def->cli = "interior-brim-width=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(0);
def = this->add("interface_shells", coBool);
def->label = __TRANS("Interface shells");
def->tooltip = __TRANS("Force the generation of solid shells between adjacent materials/volumes. Useful for multi-extruder prints with translucent materials or manual soluble support material.");
def->cli = "interface-shells!";
def->category = __TRANS("Layers and Perimeters");
def->default_value = new ConfigOptionBool(false);
def = this->add("label_printed_objects", coBool);
def->label = "Label Prints with Object ID";
def->tooltip = "Enable this to add comments in the G-Code that label print moves with what object they belong. Can be used with Octoprint CancelObject plugin.";
def->cli = "label-printed-objects!";
def->default_value = new ConfigOptionBool(0);
def = this->add("layer_gcode", coString);
def->label = __TRANS("After layer change G-code");
def->tooltip = __TRANS("This custom code is inserted at every layer change, right after the Z move and before the extruder moves to the first layer point. Note that you can use placeholder variables for all Slic3r settings as well as [layer_num], [layer_z] and [current_retraction].");
def->cli = "after-layer-gcode|layer-gcode=s";
def->multiline = true;
def->full_width = true;
def->height = 50;
def->default_value = new ConfigOptionString("");
def = this->add("layer_height", coFloat);
def->label = __TRANS("Layer height");
def->category = __TRANS("Layers and Perimeters");
def->tooltip = __TRANS("This setting controls the height (and thus the total number) of the slices/layers. Thinner layers give better accuracy but take more time to print.");
def->sidetext = "mm";
def->cli = "layer-height=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(0.3);
def = this->add("match_horizontal_surfaces", coBool);
def->label = "Match horizontal surfaces";
def->tooltip = "Try to match horizontal surfaces during the slicing process. Matching is not guaranteed, very small surfaces and multiple surfaces with low vertical distance might cause bad results.";
def->cli = "match-horizontal-surfaces!";
def->default_value = new ConfigOptionBool(false);
def = this->add("max_fan_speed", coInt);
def->label = __TRANS("Max");
def->tooltip = __TRANS("This setting represents the maximum speed of your fan.");
def->sidetext = "%";
def->cli = "max-fan-speed=i";
def->min = 0;
def->max = 100;
def->default_value = new ConfigOptionInt(100);
def = this->add("max_layer_height", coFloats);
def->label = "Max";
def->tooltip = "This is the highest printable layer height for this extruder and limits the resolution for adaptive slicing. Typical values are slightly smaller than nozzle_diameter.";
def->sidetext = "mm";
def->cli = "max-layer-height=f@";
def->min = 0;
{
ConfigOptionFloats* opt = new ConfigOptionFloats();
opt->values.push_back(0.3);
def->default_value = opt;
}
def = this->add("max_print_speed", coFloat);
def->label = __TRANS("Max print speed");
def->category = __TRANS("Speed");
def->tooltip = __TRANS("When setting other speed settings to 0 Slic3r will autocalculate the optimal speed in order to keep constant extruder pressure. This experimental setting is used to set the highest print speed you want to allow.");
def->sidetext = "mm/s";
def->cli = "max-print-speed=f";
def->min = 1;
def->default_value = new ConfigOptionFloat(80);
def = this->add("max_volumetric_speed", coFloat);
def->label = __TRANS("Max volumetric speed");
def->category = __TRANS("Speed");
def->tooltip = __TRANS("If set to a non-zero value, extrusion will be limited to this volumetric speed. You may want to set it to your extruder maximum. As a hint, you can read calculated volumetric speeds in the comments of any G-code file you export from Slic3r.");
def->sidetext = "mm³/s";
def->cli = "max-volumetric-speed=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(0);
def = this->add("min_fan_speed", coInt);
def->label = __TRANS("Min");
def->tooltip = __TRANS("This setting represents the minimum PWM your fan needs to work.");
def->sidetext = "%";
def->cli = "min-fan-speed=i";
def->min = 0;
def->max = 100;
def->default_value = new ConfigOptionInt(35);
def = this->add("min_shell_thickness", coFloat);
def->label = "Minimum shell thickness";
def->category = "Layers and Perimeters";
def->sidetext = "mm";
def->tooltip = "Alternative method of configuring perimeters and top/bottom layers. If this is above 0 extra perimeters and solid layers will be generated when necessary";
def->cli = "min-shell-thickness=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(0);
def = this->add("min_top_bottom_shell_thickness", coFloat);
def->label = "Minimum shell thickness";
def->category = "Layers and Perimeters";
def->sidetext = "mm";
def->tooltip = "Alternative method of configuring top/bottom layers. If this is above 0 extra solid layers will be generated when necessary";
def->cli = "min-vertical-shell-thickness=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(0);
def = this->add("min_layer_height", coFloats);
def->label = "Min";
def->tooltip = "This is the lowest printable layer height for this extruder and limits the resolution for adaptive slicing. Typical values are 0.1 or 0.05.";
def->sidetext = "mm";
def->cli = "min-layer-height=f@";
def->min = 0;
{
ConfigOptionFloats* opt = new ConfigOptionFloats();
opt->values.push_back(0.15);
def->default_value = opt;
}
def = this->add("min_print_speed", coFloat);
def->label = __TRANS("Min print speed");
def->tooltip = __TRANS("Slic3r will not scale speed down below this speed.");
def->sidetext = "mm/s";
def->cli = "min-print-speed=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(10);
def = this->add("min_skirt_length", coFloat);
def->label = __TRANS("Minimum extrusion length");
def->category = __TRANS("Skirt and brim");
def->tooltip = __TRANS("Generate no less than the number of skirt loops required to consume the specified amount of filament on the bottom layer. For multi-extruder machines, this minimum applies to each extruder.");
def->sidetext = "mm";
def->cli = "min-skirt-length=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(0);
def = this->add("notes", coString);
def->label = __TRANS("Configuration notes");
def->tooltip = __TRANS("You can put here your personal notes. This text will be added to the G-code header comments.");
def->cli = "notes=s";
def->multiline = true;
def->full_width = true;
def->height = 130;
def->default_value = new ConfigOptionString("");
def = this->add("nozzle_diameter", coFloats);
def->label = __TRANS("Nozzle diameter");
def->tooltip = __TRANS("This is the diameter of your extruder nozzle (for example: 0.5, 0.35 etc.)");
def->sidetext = "mm";
def->cli = "nozzle-diameter=f@";
{
ConfigOptionFloats* opt = new ConfigOptionFloats();
opt->values.push_back(0.5);
def->default_value = opt;
}
def = this->add("octoprint_apikey", coString);
def->label = __TRANS("API Key");
def->tooltip = __TRANS("Slic3r can upload G-code files to OctoPrint. This field should contain the API Key required for authentication.");
def->cli = "octoprint-apikey=s";
def->default_value = new ConfigOptionString("");
def = this->add("print_host", coString);
def->label = __TRANS("Host or IP");
def->tooltip = __TRANS("Slic3r can upload G-code files to an Octoprint/Duet server. This field should contain the hostname or IP address of the server instance.");
def->cli = "octoprint-host=s";
def->default_value = new ConfigOptionString("");
def = this->add("only_retract_when_crossing_perimeters", coBool);
def->label = __TRANS("Only retract when crossing perimeters");
def->category = __TRANS("Layers and Perimeters");
def->tooltip = __TRANS("Disables retraction when the travel path does not exceed the upper layer's perimeters (and thus any ooze will be probably invisible).");
def->cli = "only-retract-when-crossing-perimeters!";
def->default_value = new ConfigOptionBool(true);
def = this->add("ooze_prevention", coBool);
def->label = __TRANS("Enable");
def->full_label = "Ooze Prevention";
def->category = __TRANS("Extruders");
def->tooltip = __TRANS("During multi-extruder prints, this option will drop the temperature of the inactive extruders to prevent oozing. It will enable a tall skirt automatically and move extruders outside such skirt when changing temperatures.");
def->cli = "ooze-prevention!";
def->default_value = new ConfigOptionBool(false);
def = this->add("output_filename_format", coString);
def->label = __TRANS("Output filename format");
def->tooltip = __TRANS("You can use all configuration options as variables inside this template. For example: [layer_height], [fill_density] etc. You can also use [timestamp], [year], [month], [day], [hour], [minute], [second], [version], [input_filename], [input_filename_base].");
def->cli = "output-filename-format=s";
def->full_width = true;
def->default_value = new ConfigOptionString("[input_filename_base].gcode");
def = this->add("overhangs", coBool);
def->label = __TRANS("Detect bridging perimeters");
def->category = __TRANS("Layers and Perimeters");
def->tooltip = __TRANS("Experimental option to adjust flow for overhangs (bridge flow will be used), to apply bridge speed to them and enable fan.");
def->cli = "overhangs|detect-bridging-perimeters!";
def->default_value = new ConfigOptionBool(true);
def = this->add("shortcuts", coStrings);
def->label = __TRANS("Shortcuts");
def->aliases.push_back("overridable");
{
ConfigOptionStrings* opt = new ConfigOptionStrings();
opt->values.push_back("support_material");
def->default_value = opt;
}
def = this->add("perimeter_acceleration", coFloat);
def->label = __TRANS("Perimeters");
def->category = __TRANS("Speed > Acceleration");
def->tooltip = __TRANS("This is the acceleration your printer will use for perimeters. A high value like 9000 usually gives good results if your hardware is up to the job. Set zero to disable acceleration control for perimeters.");
def->sidetext = "mm/s²";
def->cli = "perimeter-acceleration=f";
def->default_value = new ConfigOptionFloat(0);
def = this->add("perimeter_extruder", coInt);
def->label = __TRANS("Perimeter extruder");
def->category = __TRANS("Extruders");
def->tooltip = __TRANS("The extruder to use when printing perimeters and brim. First extruder is 1.");
def->cli = "perimeter-extruder=i";
def->aliases.push_back("perimeters_extruder");
def->min = 1;
def->default_value = new ConfigOptionInt(1);
def = this->add("perimeter_extrusion_width", coFloatOrPercent);
def->label = __TRANS("Perimeters");
def->gui_type = "f_enum_open";
def->category = __TRANS("Extrusion Width");