GPX(1)
π GPX(1) π β like, the manual page for gpx, bestie
User Commands β¨ the gpx page
πΈ NAME πΈ
gpx β G-code to X3G converter
yes queen, it takes your G-code and turns it into X3G, that's the whole job description π
β¨ SYNOPSIS β¨
gpx [-CFdgilpqrstvw] [-b BAUDRATE] [-c CONFIG] [-e EEPROM] [-f DIAMETER]
[-m MACHINE] [-N h|t|ht] [-n SCALE] [-x X] [-y Y] [-z Z] IN [OUT]
so the vibe is: a pile of lil flags, some options that take values, then your IN file and optionally an OUT file. iykyk π¦
π OPTIONS π
okay bestie, this is the part where you actually pay attention, no cap π
-Cβ make a temporary file with a copy of the machine configuration. it's giving "backup but temporary" π«Ά-Cβ make a temporary file with a copy of the machine configuration. not me listing this twiceβ¦ but fr fr the original lists it twice, so here we are. two-Cs. iconic. π-Fβ write X3G on-wire framing data to the output file. framing data, slay β¨-N h|t|htβ turn off writing the X3G header (the start build notice), the tail (the end build notice), or both.h= header,t= tail,ht= both, periodt π-dβ simulated ditto printing. ditto, but make it simulated π-gβ Makerbot/ReplicatorG GCODE flavor. a flavor, like a lil ice cream scoop of GCODE π-iβ enablestdinandstdoutsupport for command line pipes. pipes!! the plumbing of the gods π§-lβ log to file. receipts, but make it a file π-pβ override build percentage. going rogue on the percent π«-qβ quiet mode. shhh, main character energy but silent π-rβ Reprap GCODE flavor. another flavor bestie, pick your fighter π§-sβ enable USB serial I/O and send x3G output to the 3D printer. we're going STRAIGHT to the printer, no middleman π₯-tβ truncate the filename (DOS 8.3 format). 8.3 format, ancient and yet still here, we love a survivor π-vβ verose mode. yes it says "verose", that's literally what the page says, I'm not editing it, that's the source's own typo and I respect it π-wβ rewrite 5d extrusion values. 5d, mysterious, gorgeous, no notes π¦-b BAUDRATEβ setBAUDRATEfor serial I/O. Default is115200. default noted, bestie, don't come for me π-c CONFIGβCONFIGis the filename of a custom machine definition (ini file). ini file, your machine's little biography β¨-e EEPROMβEEPROMis the filename of an eeprom settings definition (ini file). another ini file, this one for eeprom settings π-f DIAMETERβDIAMETERis the actual filament diameter in the printer. measure your filament, bestie, it matters πΈ-m MACHINEβMACHINEis the predefined machine type. Available configurations are: the whole lineup, come get your fave πc3= Cupcake Gen3 XYZ, Mk5/6 + Gen4 Extruderc4= Cupcake Gen4 XYZ, Mk5/6 + Gen4 Extrudercp4= Cupcake Pololu XYZ, Mk5/6 + Gen4 Extrudercpp= Cupcake Pololu XYZ, Mk5/6 + Pololu Extrudercxy= Core-XY with HBP - single extrudercxysz= Core-XY with HBP - single extruder, slow Zcr1= Clone R1 Single with HBPcr1d= Clone R1 Dual with HBPr1= Replicator 1 - single extruderr1d= Replicator 1 - dual extruderr2= Replicator 2 (default) the default, the moment, the legend βr2h= Replicator 2 with HBPr2x= Replicator 2Xt6= TOM Mk6 - single extrudert7= TOM Mk7 - single extrudert7d= TOM Mk7 - dual extruderz= ZYYX - single extruderzd= ZYYX - dual extruder
-n SCALEβSCALEis the coordinate system scale for the conversion (ABS=1.0035). one point zero zero three five, that's the number, copy it exactly bestie π’-x X,-y Y,-z Yβ the axis offsets:X= the x axis offsetY= the y axis offsetZ= the z axis offset
heads up bestie: the option header up there says-x X,-y Y,-z Yand the synopsis says[-z Z]. that's the original's own lil inconsistency, and I'm keeping it character-for-character because the one rule is: the vibe changes, the facts do NOT. π«Ά
π EXAMPLES π
here's the tea, actual commands, copy them exactly π
gpx -p -m r2 my-sliced-model.gcode
gpx -c custom-tom.ini example.gcode /volumes/things/example.x3g
gpx -x 3 -y -3 offset-model.gcode
gpx -m c4 -s sio-example.gcode /dev/tty.usbmodem
- first one: override the build percentage, pick the
r2machine, convertmy-sliced-model.gcode. simple, clean, ate β¨ - second one: custom config
custom-tom.ini, inputexample.gcode, output to/volumes/things/example.x3g. giving "I know where my files live" energy π - third one: offset it,
-x 3and-y -3. note the minus, bestie, don't drop it π - fourth one:
c4machine, serial I/O on, straight out to/dev/tty.usbmodem. plugged in and sending it π₯
okay that's the whole page, you're literally a gpx expert now, so proud, no notes, go convert something πβ¨
this page came from the gpx source, version dated 2020-12-01, filed under GPX(1) in User Commands β mwah, bye bestie! π
π¦πΈ
π¦ where this page comes from
- debian bookworm: gpx 2.6.8-1 Β· GPL-2.0-or-later
- debian trixie: gpx 2.6.8-1 Β· GPL-2.0-or-later
- ubuntu jammy: gpx 2.6.8-1 Β· GPL-2.0-or-later
- ubuntu noble: gpx 2.6.8-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms