Reset "do not populate" and "exclude from bom" flags for whole schematic

In a schematic I set some components as “do not populate” and “exclude from bom”.
I’m able to restore those flags editing the properties of each component.

Is there a way to reset the flags for all the components at once?

Application: KiCad Schematic Editor x86_64 on x86_64

Version: 8.0.5-8.0.5-0~ubuntu24.04.1, release build

Libraries:
	wxWidgets 3.2.4
	FreeType 2.13.2
	HarfBuzz 8.3.0
	FontConfig 2.15.0
	libcurl/8.5.0 OpenSSL/3.0.13 zlib/1.3 brotli/1.1.0 zstd/1.5.5 libidn2/2.3.7 libpsl/0.21.2 (+libidn2/2.3.7) libssh/0.10.6/openssl/zlib nghttp2/1.59.0 librtmp/2.3 OpenLDAP/2.6.7

Platform: Ubuntu 24.04.1 LTS, 64 bit, Little endian, wxGTK, X11, ubuntu, x11
OpenGL: NVIDIA Corporation, NVIDIA GeForce RTX 4080/PCIe/SSE2, 4.6.0 NVIDIA 535.183.01

Build Info:
	Date: Sep  6 2024 21:35:42
	wxWidgets: 3.2.4 (wchar_t,wx containers) GTK+ 3.24
	Boost: 1.83.0
	OCC: 7.6.3
	Curl: 8.5.0
	ngspice: 42
	Compiler: GCC 13.2.0 with C++ ABI 1018

Build settings:

It’s always helpful to write which version do you use.
This helps also future readers to contextualize the answer in relation to the different kicad version.

Kicad v8:
You could try the symbol fields table. Be sure to have “Scope==entire project” selected. From the Presets (bottom left corner) choose the “Attributes” Preset.
You have to experiment a bit with the selection behaviour, that needs a bit improvement.
First select one attribute-cell, change that cell to the desired state, copy that cell with"CTRL+C".
Then select the complete column, and paste the copied state to all these cells.

Kicad v9:

  • use the approach above
  • or utilize the new selection filter (this method works only for one schematic sheet page at a time, so maybe not so comfortable for schematics with hundreds of subsheets):
    • open one schematic sheet
    • enable the properties manager (View–>Show properties manager)
    • together with the properties manager a selection filter is displayed → enable only symbols
    • select all (hotkey “CTRL+A”) on the sheet → due to the selction filter all symbols on the sheet are selected
    • look in the properties manager panel - at the bottom you have 4 rows with the attributes (DNP/exclude)
2 Likes

There’s no need for copy-paste.

First make sure you have ${DNP} and ${EXCLUDE_FROM_BOM} fields. Use the Attributes preset as mf_ibfeew said. (I have edited the Label cells.)

image

Now use the Group By checkbox: clear all other Group By checkboxes and tick only the Exclude from BOM box. Now you will have at most two rows in the Fields Table: those which have “Exclude from BOM” selected and those which don’t.

You can now just click the tickbox at right, and all will get either selected or deselected.

Do the same with DNP.

With a little bit of creativity you can even create rudimentary schematic variants: create a new field called DNPVariant. Give some components a numerical value for it. Now you can group by the DNPVariant field only, and make for example all components with Variant 1 to be DNP with one click and Variant 2 to be not-DNP with one click.

4 Likes