The rule that prohibits copper fills beneath capacitor courtyards applies only to top-layer capacitors.
<!----------Before Creating a New Issue-----------
* Limit report to a single issue.
* Search the issue tracker to verify the issue has not already been reported.
* Complete all instructions between `template comment markers <>.
* Keep report contents limited to the necessary information required to fix the issue.
* When creating an issue against the stable version of KiCad, make sure the latest available stable version is installed as issues may have already been resolved in later stable versions.-->
# Description
The rule that prohibits copper fills beneath capacitor courtyards applies only to **top-layer capacitors**.
#Prevent copper fills under the courtyards of capacitors
(rule no_copper_under_caps
(constraint physical_clearance (min 0mm))
(condition "A.Type == 'Zone' && B.Reference == 'C\*'"))
[test.zip](/uploads/e06dbda527b6a994ee607a1d631005bc/test.zip)
<!--What is the current behavior and what is the expected behavior?-->
<!--If the issue is visual/graphical, please attach screenshots of the problem.-->
<!--Add the issue details below this line and before the "Steps to reproduce" heading.-->
# Steps to reproduce
<!--If there are multiple steps to reproduce it or it is a visual issue, then providing a screen recording as an attachment to this report is recommended.-->
<!--If this issue is specific to a project, please attach the necessary files to this issue.-->
<!--Add the steps to reproduce using the numbers below-->
<!--Add new step numbers before the "KiCad Version" heading.-->
1.
2.
# KiCad Version
<!--Copy version information (from main menu Help->About KiCad ->Copy Version Info) and paste it between the triple backticks below to preserve the formatting.-->
```
```
```
Application: KiCad x64 on x64
Version: 9.0.8, release build
Libraries:
wxWidgets 3.2.8
FreeType 2.13.3
HarfBuzz 12.2.0
FontConfig 2.15.0
Platform: Windows 10 (构建 19045),64位版, 64 bit, Little endian, wxMSW
OpenGL: NVIDIA Corporation, NVIDIA GeForce GTX 1630/PCIe/SSE2, 4.6.0 NVIDIA 560.94
wxWidgets: 3.2.8 (wchar_t,wx containers)
Boost: 1.89.0
OCC: 7.9.2
Curl: 8.17.0-DEV
ngspice: 45.2
Compiler: Visual C++ 1944 without C++ ABI
KICAD_IPC_API=ON
Locale:
Lang: zh_CN
Enc: UTF-8
Num: 1,234.5
Encoded кΩ丈: D0BACEA9E4B888 (sys), D0BACEA9E4B888 (utf8)
```
issue