Skip to content

[CLI] kicad-cli pcb export gerbers DNP components drawn as if --crossout-DNP-footprints-on-fab-layers were enabled

Description

When running:

kicad-cli pcb export gerbers -l F.Fab 04.kicad_pcb

Using t4.zip, I get:

image

This is like if I passed -crossout-DNP-footprints-on-fab-layers, which isn't the case. Trying the other DNP options doesn't change the situation.

The problem is deeper, using --sketch-pads-on-fab-layers doesn't work.

All the problems are related to the use of PCBNEW_JOBS_HANDLER::populateGerberPlotOptionsFromJob (2 overloaded versions) for gerber instead of the general PCB_PLOTTER::PlotJobToPlotOpts, used by all the other pcb export PLOTTER options. The former versions are incomplete. I think the best is to use the second for all cases.

I can try to do it myself, at least for master.

Steps to reproduce

  1. Run the above mentioned command
  2. Open the gerber file using gerbview

KiCad Version

Application: KiCad PCB Editor x86_64 on x86_64

Version: 9.0.2, release build

Libraries:
	wxWidgets 3.2.2
	FreeType 2.12.1
	HarfBuzz 6.0.0
	FontConfig 2.14.1

Platform: Linux 6.1.0-34-amd64 x86_64, 64 bit, Little endian, wxGTK, X11, , 
OpenGL: AMD, PITCAIRN (, LLVM 15.0.6, DRM 2.50, 6.1.0-34-amd64), 4.5 (Compatibility Profile) Mesa 22.3.6

	wxWidgets: 3.2.2 (wchar_t,wx containers) GTK+ 3.24
	Boost: 1.74.0
	OCC: 7.6.3
	Curl: 7.88.1
	ngspice: 39
	Compiler: GCC 12.2.0 with C++ ABI 1017
	KICAD_IPC_API=ON

Locale: 
	Lang: en_US
	Enc: ANSI_X3.4-1968
	Num: 1234.5
	Encoded кΩ丈:  (sys), D0BACEA9E4B888 (utf8)