Loading...
Searching...
No Matches
Go to the documentation of this file.
2_HKI(
"### Expression functions\n"
4"All function parameters support simple wildcards (`*` and `?`).\n"
8" A.enclosedByArea('<zone_name>')\n"
10"> True if all of `A` lies within the given zone's outline.\n"
12"> NB: this is potentially a more expensive call than `intersectsArea()`.\n"
13"Use `intersectsArea()` where possible.\n"
17" A.existsOnLayer('<layer_name>')\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"
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"
29" A.fromTo('x', 'y')\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"
37" A.getField('<field_name>')\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"
44" A.hasComponentClass('<component_class_name>')\n"
46"> True if the set of component classes assigned to `A` contains the named\n"
51" A.hasNetclass('<netclass_name>')\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"
58" A.inDiffPair('<net_name>')\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"
67" A.intersectsArea('<zone_name>')\n"
69"> True if any part of `A` lies within the given zone's outline.\n"
73" A.intersectsCourtyard('<footprint_identifier>')\n"
75"> True if any part of `A` lies within the given footprint's principal courtyard.\n"
79" A.intersectsFrontCourtyard('<footprint_identifier>')\n"
81"> True if any part of `A` lies within the given footprint's front courtyard.\n"
85" A.intersectsBackCourtyard('<footprint_identifier>')\n"
87"> True if any part of `A` lies within the given footprint's back courtyard.\n"
90"> The `footprint_identifier` listed above can be one of the following:\n"
92"> 1. A reference designator, possibly containing wildcards `*` and `?`\n"
93"> 2. A footprint library identifier such as `LibName:FootprintName`. In this case,\n"
94" the library identifier must contain the `:` character to separate the library\n"
95" name from the footprint name, and either name may contain wildcards.\n"
96"> 3. A component class, in the form `${Class:ClassName}`. The keyword `Class` is not\n"
97" case-sensitive, but component class names are case-sensitive.\n"
101" AB.isCoupledDiffPair()\n"
103"> True if `A` and `B` are members of the same diff pair.\n"
109"> True if `A` is a microvia.\n"
115"> True if `A` is a blind via.\n"
121"> True if `A` is a buried via.\n"
127"> True if `A` has a hole which is plated.\n"
131" A.memberOfGroup('<group_name>')\n"
133"> True if `A` is a member of the given group\n"
134"The name can contain wildcards.\n"
135"Includes nested membership.\n"
139" A.memberOfFootprint('<footprint_identifier>')\n"
141"> True if `A` is a member of a given footprint\n"
142"(for example, a pad or graphic shape defined inside that footprint).\n"
143"The various ways of specifying `footprint_identifier` are described above.\n"
147" A.memberOfSheet('<sheet_path>')\n"
149"> True if `A` is a member of the given schematic sheet.\n"
150"The sheet path can contain wildcards.\n"
154" A.memberOfSheetOrChildren('<sheet_path>')\n"
156"> True if `A` is a member of the given schematic sheet, or any of its child hierarchical sheets.\n"
157"The sheet path can contain wildcards.\n"