-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Help.qml
executable file
·149 lines (120 loc) · 5.47 KB
/
Help.qml
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
// LGPLv3
import UM 1.5 as UM
import QtQuick 2.15
import QtQuick.Window 2.2
import QtQuick.Controls 2.15
import Cura 1.5 as Cura
UM.Dialog
{
id: base
title: "Gcode Filename Format Plus - Help"
width: 700 * screenScaleFactor
height: 675 * screenScaleFactor
minimumWidth: 700 * screenScaleFactor
ScrollView {
width: parent.width
height: parent.height
Text
{
onLinkActivated: Qt.openUrlExternally(link)
color: UM.Theme.getColor("text")
wrapMode: Text.WordWrap
textFormat: Text.MarkdownText
text:
"## Default filename format:
[abbr_machine] [brand] [material] lw [line_width]mm lh [layer_height]mm if [infill_sparse_density]% ext1 [material_print_temperature]C bed [material_bed_temperature]C
## Example filename output:
PI3MK3M paperclip Generic PLA lw 0.4mm lh 0.2mm if 20% ext1 200C bed 60C.gcode
## Usage
1. Specify filename format using Extensions -> Gcode Filename Format Plus -> Edit Format
![Edit Format Dialog](images/edit-format-dialog.png)
2. Slice object
3. Select Save to Disk button, or File -> Export, or send job to printer
Besides .gcode, the plugin also works with other file types such as .3mf and .stl. Simply select from the available file
types in the save dialog. Additionally, GFF+ will pass the custom job name to an OctoPrint server when using the
[OctoPrint Connection](https://marketplace.ultimaker.com/app/cura/plugins/fieldofview/OctoPrintPlugin) plugin.
## Format options
- base_name - object/model name
- job_name - same as base_name
- abbr_machine - abbreviated printer machine name
- printer_name - printer manufacturer and model
- profile_name - name of the profile used for slicing e.g. Normal, Fine, Draft
- cura_version - the Semantic version of Cura e.g. 5.0.0
- object_count - number of objects on the build plate
- layer_height - layer height/thickness, vertical resolution (mm)
- machine_nozzle_size - nozzle diameter e.g. 0.2 mm, 0.4 mm, 0.6 mm
- line_width - line/nozzle width e.g. 0.2 mm, 0.4 mm, 0.6 mm
- wall_thickness - thickness of shell walls (mm)
- infill_sparse_density - infill percentage (%)
- infill_pattern - infill pattern e.g grid, lines, triangles
- top_bottom_pattern - pattern of the top and bottom layers e.g. lines, concentric, zig zag
- brand - the brand of the filament e.g. Generic, Prusa, MatterHackers, eSun, etc.
- material - material type e.g. PLA, PETG, ABS, etc.
- material_diameter - filament size e.g. 1.75 mm, 3 mm
- material_print_temperature - material/nozzle temperature (°C)
- material_bed_temperature - build plate temperature (°C)
- material_flow - extruded material flow rate (%)
- material_weight - printed material weight (g)
- material_length - printed material length (m)
- material_cost - printed material cost
- color_name - material color
- scale - uniform scale of the object (%)
- scale_x - scale of the object on the x axis (%)
- scale_y - scale of the object on the y axis (%)
- scale_z - scale of the object on the z axis (%)
- speed_print - print speed (mm/s)
- retraction_combing - combing mode
- magic_spiralize - spiralize outer contour, vase mode
- print_time - total print time in HHMMSS
- print_time_days - print time in days
- print_time_hours - print time in hours
- print_time_hours_all - print_time_days * 24 + print_time_hours
- print_time_minutes - print time in minutes
- print_time_seconds - print time in seconds
- date - current date in YYYY-MM-DD
- time - current time in HH-MM
- datetime - current time in YYYY-MM-DDTHHMMSS
- year - current year in YYYY
- month - current month in MM
- day - current day in DD
- hour - current hour in HH
- minute - current minute in MM
- second - current second in SS
For the full list please refer to [fdmprinter.def.json.pot](https://github.com/Ultimaker/Cura/blob/master/resources/i18n/fdmprinter.def.json.pot)
### Multiple extruder options
For printers with multiple extruders, individual extruder settings can be specified by appending the extruder number to
the option.
#### Example filename format:
[abbr_machine] [base_name] ext1 [brand1] [material1] [material_print_temperature1]C [line_width1]mm ext2 [brand2] [material2] [material_print_temperature2]C [line_width2]mm
#### Example filename output:
PI3MK3M paperclip ext1 Ultimaker ABS 255C 0.7mm ext2 Ultimaker Tough PLA 215C 0.35mm.gcode
## Support
If you find an issue or have any feedback please submit an issue on [GitHub](https://github.com/rgomezjnr/GcodeFilenameFormatPlus/issues).
You can also reachout via Twitter [@rgomezjnr](https://twitter.com/rgomezjnr).
If you would like to show your support donations are greatly appeciated via:
- [GitHub Sponsors](https://github.com/sponsors/rgomezjnr)
- [PayPal](https://paypal.me/rgomezjnr)
- [Venmo](https://account.venmo.com/u/rgomezjnr)
- [Cash app](https://cash.app/$rgomezjnr)
- [Strike](https://strike.me/rgomezjnr)
- [PayNym:](https://paynym.is/+orangesmoke693) +orangesmoke693
- [Bitcoin:](bitcoin:bc1qh46qmztl77d9dl8f6ezswvqdqxcaurrqegca2p) bc1qh46qmztl77d9dl8f6ezswvqdqxcaurrqegca2p
## Authors
[Robert Gomez, Jr.](https://github.com/rgomezjnr)
[Michael Chan](https://github.com/mchan016)
[Geoffrey Young](https://github.com/geoffrey-young)
## Source code
https://github.com/rgomezjnr/GcodeFilenameFormatPlus
## License
[LGPLv3](https://github.com/rgomezjnr/GcodeFilenameFormat/blob/master/LICENSE)"
}
}
rightButtons: Cura.SecondaryButton
{
text: "Close"
onClicked:
{
base.visible = false;
}
}
}