KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_setup_rules_help_8expression_functions.h
Go to the documentation of this file.
1// Do not edit this file, it is autogenerated by CMake from the .md file
2_HKI( "### Expression functions\n"
3"\n"
4"All function parameters support simple wildcards (`*` and `?`).\n"
5"\n"
6"\n"
7"```\n"
8" A.enclosedByArea('<zone_name>')\n"
9"```\n"
10"> True if all of `A` lies within the given zone's outline.\n"
11"\n"
12"> NB: this is potentially a more expensive call than `intersectsArea()`.\n"
13"Use `intersectsArea()` where possible.\n"
14"\n"
15"\n"
16"```\n"
17" A.existsOnLayer('<layer_name>')\n"
18"```\n"
19"> True if `A` exists on the given layer. The layer name can be\n"
20"either the name assigned in Board Setup > Board Editor Layers or\n"
21"the canonical name (ie: `F.Cu`).\n"
22"\n"
23"> NB: this returns true if `A` is on the given layer, independently\n"
24"of whether or not the rule is being evaluated for that layer.\n"
25"For the latter use a `(layer \"layer_name\")` clause in the rule.\n"
26"\n"
27"\n"
28"```\n"
29" A.fromTo('x', 'y')\n"
30"```\n"
31"> True if the object exists on the copper path between the given\n"
32"pads. `x` and `y` are the full names of pads in the design, such as\n"
33"`R1-Pad1`.\n"
34"\n"
35"\n"
36"```\n"
37" A.getField('<field_name>')\n"
38"```\n"
39"> The value of the given field. Only footprints have fields, so a field is only returned if\n"
40"`A` is a footprint.\n"
41"\n"
42"\n"
43"```\n"
44" A.hasComponentClass('<component_class_name>')\n"
45"```\n"
46"> True if the set of component classes assigned to `A` contains the named\n"
47"component class.\n"
48"\n"
49"\n"
50"```\n"
51" A.hasNetclass('<netclass_name>')\n"
52"```\n"
53"> True if `A` has had the given netclass assigned to it, either by an explicit netclass label\n"
54"or through a pattern match assignment.\n"
55"\n"
56"\n"
57"```\n"
58" A.inDiffPair('<net_name>')\n"
59"```\n"
60"> True if `A` has a net that is part of the specified differential pair.\n"
61"`<net_name>` is the base name of the differential pair.\n"
62"For example, `inDiffPair('/CLK')` matches items in the `/CLK_P` and `/CLK_N` nets.\n"
63"\n"
64"\n"
65"\n"
66"```\n"
67" A.inNetChain('<chain_name>')\n"
68"```\n"
69"> True if `A`'s net is a member of the named chain. `<chain_name>`\n"
70"accepts wildcards: `inNetChain('DDR_*')` matches every chain whose\n"
71"name starts with `DDR_`.\n"
72"\n"
73"\n"
74"\n"
75"```\n"
76" A.hasNetChain()\n"
77"```\n"
78"> True if `A`'s net belongs to any chain.\n"
79"\n"
80"\n"
81"\n"
82"```\n"
83" A.inNetChainClass('<class_name>')\n"
84"```\n"
85"> True if `A`'s net belongs to a chain whose assigned chain class\n"
86"matches `<class_name>`. Class assignments live in the project's\n"
87"`net_chain_classes` map. `<class_name>` accepts wildcards.\n"
88"\n"
89"\n"
90"\n"
91"```\n"
92" A.intersectsArea('<zone_name>')\n"
93"```\n"
94"> True if any part of `A` lies within the given zone's outline.\n"
95"\n"
96"\n"
97"```\n"
98" A.intersectsCourtyard('<footprint_identifier>')\n"
99"```\n"
100"> True if any part of `A` lies within the given footprint's principal courtyard.\n"
101"\n"
102"\n"
103"```\n"
104" A.intersectsFrontCourtyard('<footprint_identifier>')\n"
105"```\n"
106"> True if any part of `A` lies within the given footprint's front courtyard.\n"
107"\n"
108"\n"
109"```\n"
110" A.intersectsBackCourtyard('<footprint_identifier>')\n"
111"```\n"
112"> True if any part of `A` lies within the given footprint's back courtyard.\n"
113"\n"
114"\n"
115"> The `footprint_identifier` listed above can be one of the following:\n"
116"\n"
117"> 1. A reference designator, possibly containing wildcards `*` and `?`\n"
118"> 2. A footprint library identifier such as `LibName:FootprintName`. In this case,\n"
119" the library identifier must contain the `:` character to separate the library\n"
120" name from the footprint name, and either name may contain wildcards.\n"
121"> 3. A component class, in the form `${Class:ClassName}`. The keyword `Class` is not\n"
122" case-sensitive, but component class names are case-sensitive.\n"
123"\n"
124"\n"
125"```\n"
126" AB.isCoupledDiffPair()\n"
127"```\n"
128"> True if `A` and `B` are members of the same diff pair.\n"
129"\n"
130"\n"
131"```\n"
132" A.isMicroVia()\n"
133"```\n"
134"> True if `A` is a microvia.\n"
135"\n"
136"\n"
137"```\n"
138" A.isBlindVia()\n"
139"```\n"
140"> True if `A` is a blind via.\n"
141"\n"
142"\n"
143"```\n"
144" A.isBuriedVia()\n"
145"```\n"
146"> True if `A` is a buried via.\n"
147"\n"
148"\n"
149"```\n"
150" A.isPlated()\n"
151"```\n"
152"> True if `A` has a hole which is plated.\n"
153"\n"
154"\n"
155"```\n"
156" A.memberOfGroup('<group_name>')\n"
157"```\n"
158"> True if `A` is a member of the given group\n"
159"The name can contain wildcards.\n"
160"Includes nested membership.\n"
161"\n"
162"\n"
163"```\n"
164" A.memberOfFootprint('<footprint_identifier>')\n"
165"```\n"
166"> True if `A` is a member of a given footprint\n"
167"(for example, a pad or graphic shape defined inside that footprint).\n"
168"The various ways of specifying `footprint_identifier` are described above.\n"
169"\n"
170"\n"
171"```\n"
172" A.memberOfSheet('<sheet_path>')\n"
173"```\n"
174"> True if `A` is a member of the given schematic sheet.\n"
175"The sheet path can contain wildcards.\n"
176"\n"
177"\n"
178"```\n"
179" A.memberOfSheetOrChildren('<sheet_path>')\n"
180"```\n"
181"> True if `A` is a member of the given schematic sheet, or any of its child hierarchical sheets.\n"
182"The sheet path can contain wildcards.\n"
183"\n"
184"\n"
185"" );
#define _HKI(x)
Definition page_info.cpp:44