DeslicebetaES

Process › Others› G-code outputgcode_add_line_number

Number the G-code lines

Put a number (N…) at the start of every line of the print file. Only some older programs need it; most current printers (Bambu ones among them) don't.

How it works

G-code is the text file with the printer's instructions, one per line. Some firmwares or sending programs check the line numbers to catch lost lines. Bambu printers don't use them.

On them, it only makes the file bigger.

When to change it

  • If you don't know whether your printer uses them: off (default).
  • You're going to print the file on another printer whose sending program asks for numbered G-code: turn it on.

Typical values

ValueWhat for
OffDefaultdefault
OnPrograms that require it

Watch out for

Goes well with

What Bambu Studio saysits help card, quoted

What Bambu Studio says

Enable this to add line number(Nx) at the beginning of each G-Code line

Bambu Studio tooltip for this setting · AGPL-3.0

Read more at the official source

In your profile0.20mm Standard @BBL A1 · No

In Bambu Studio, the profile 0.20mm Standard @BBL A1 sets it toNo

In other slicers

Orca Slicer
Add line numberOthers › G-code output
PrusaSlicer
No clear equivalent.
Cura
No clear equivalent.

Names taken from each program's code (Orca Slicer 2.4.2, PrusaSlicer 2.9.6, Cura 5.13.0). Credits