From 7bbf9439ff707371a2ebaaba0ee0bd218680b36e Mon Sep 17 00:00:00 2001 From: Jason Patterson Date: Sat, 21 Nov 2026 15:16:34 +0000 Subject: [PATCH 1/4] Add the APC AR7710 cable containment bracket One bracket, 80 x 112 x 45 mm, rack-side, drawn on all six sides from APC's data sheet and installation sheet. One screw shank and one pin stand from the rear in a 15 mm well; both are estimated. Adds the parts apc/nsx-vcm-ar7710-base and apc/nsx-vcm-ar7710-screws. Refs #1097 Refs #1091 Co-Authored-By: Claude Sonnet 5.5 Signed-off-by: Jason Patterson --- changelog.d/apc-netshelter-ar7710.md | 8 + .../apc/nsx-vcm-ar7710-base/v1/contract.yaml | 31 ++ .../nsx-vcm-ar7710-base/v1/skins/default.svg | 4 + .../nsx-vcm-ar7710-screws/v1/contract.yaml | 51 ++ .../v1/skins/default.svg | 5 + library/devices/apc/ar7710/device.lock.json | 38 ++ library/devices/apc/ar7710/device.yaml | 498 ++++++++++++++++++ spec/tests/test_apc_ar7710.py | 111 ++++ 8 files changed, 746 insertions(+) create mode 100644 changelog.d/apc-netshelter-ar7710.md create mode 100644 library/components/apc/nsx-vcm-ar7710-base/v1/contract.yaml create mode 100644 library/components/apc/nsx-vcm-ar7710-base/v1/skins/default.svg create mode 100644 library/components/apc/nsx-vcm-ar7710-screws/v1/contract.yaml create mode 100644 library/components/apc/nsx-vcm-ar7710-screws/v1/skins/default.svg create mode 100644 library/devices/apc/ar7710/device.lock.json create mode 100644 library/devices/apc/ar7710/device.yaml create mode 100644 spec/tests/test_apc_ar7710.py diff --git a/changelog.d/apc-netshelter-ar7710.md b/changelog.d/apc-netshelter-ar7710.md new file mode 100644 index 000000000..987dd74db --- /dev/null +++ b/changelog.d/apc-netshelter-ar7710.md @@ -0,0 +1,8 @@ +### Added +- The APC AR7710 cable containment bracket for NetShelter SX, SV and VX racks (#1097, part of #1091). It is modelled from + APC's own data sheet and installation sheet. `apc/ar7710` is one bracket, 80 x 112 x 45 mm, a black sheet-steel cup open at both ends. + It is `chassis.mount: rack-side` and is drawn on all six sides. The long face shows two keyholes, the slot between its + two pieces and the hook in that slot. The rear shows the plate with its two screws and small stud. Each end face shows + one keyhole. One screw shank and one small pin stand from the rear in a well 15 mm deep, estimated from the data + sheet photograph. The bracket adds two parts, `apc/nsx-vcm-ar7710-base` and `apc/nsx-vcm-ar7710-screws`. + It has no connector, and APC states no cable capacity. It closes no row of the conformance records. diff --git a/library/components/apc/nsx-vcm-ar7710-base/v1/contract.yaml b/library/components/apc/nsx-vcm-ar7710-base/v1/contract.yaml new file mode 100644 index 000000000..68cea949c --- /dev/null +++ b/library/components/apc/nsx-vcm-ar7710-base/v1/contract.yaml @@ -0,0 +1,31 @@ +format: 1 +kind: component +name: nsx-vcm-ar7710-base +version: 1.0.0 +class: mechanical +description: This is the well of the APC NetShelter containment bracket AR7710, seen from the rear. The screw shank and the + small pin stand in it. It is the full 80 mm width and 112 mm height of the bracket and 15 mm deep, the reach of the shank. + It draws nothing. +provenance: + size: 'datasheet - the AR7710 data sheet: 80 mm wide and 112 mm tall as stood on a rack.' + depth: 'estimated - 15 mm, the length of the screw shank read off the data sheet page 1 photograph. The photograph is a + perspective view and no page gives a length, so the reading holds within about 10 to 35 mm.' +size: + w: 80 + h: 112 + d: 15 +size-confidence: + w: datasheet + h: datasheet + d: estimated +elements: + well: + at: + - 0.0 + - 0.0 + size: + - 80 + - 112 + class: mechanical +skins: +- default diff --git a/library/components/apc/nsx-vcm-ar7710-base/v1/skins/default.svg b/library/components/apc/nsx-vcm-ar7710-base/v1/skins/default.svg new file mode 100644 index 000000000..7f80f2b4e --- /dev/null +++ b/library/components/apc/nsx-vcm-ar7710-base/v1/skins/default.svg @@ -0,0 +1,4 @@ + + + + diff --git a/library/components/apc/nsx-vcm-ar7710-screws/v1/contract.yaml b/library/components/apc/nsx-vcm-ar7710-screws/v1/contract.yaml new file mode 100644 index 000000000..7f51fed97 --- /dev/null +++ b/library/components/apc/nsx-vcm-ar7710-screws/v1/contract.yaml @@ -0,0 +1,51 @@ +format: 1 +kind: component +name: nsx-vcm-ar7710-screws +version: 1.0.0 +class: mechanical +description: This is the screw shank and the small pin of the APC NetShelter containment bracket AR7710, seen from the rear. The + shank stands at the right-hand piece and the pin at the left-hand piece. The data sheet photograph shows more screws than these two. +provenance: + size: 'datasheet - the AR7710 data sheet: 80 mm wide and 112 mm tall as stood on a rack.' + relief: 'estimated - the data sheet page 1 photograph shows a threaded shank at the right-hand piece of three brackets. + It shows a small pin at each piece of the other three. The shank is 2.8 mm thick and 15 mm long, the pin 3 mm thick and 4 mm long. + The photograph is a perspective view, so the shank length holds within about 10 to 35 mm and the pin length is a guess.' + color: 'estimated - the pale metal of the screws in the photograph.' +size: + w: 80 + h: 112 +size-confidence: + w: datasheet + h: datasheet +elements: + shank: + at: + - 51.4 + - 32.2 + size: + - 2.8 + - 2.8 + class: bezel + peg: + at: + - 51.3 + - 82.5 + size: + - 3.0 + - 3.0 + class: bezel +relief: + features: + - node: shank + out: 15 + color: '#c9cacd' + confidence: estimated + source: 'data sheet page 1 photograph, the lower row of brackets. The across place, thickness and length are read off + the photograph against the cup''s 112 and 80 mm' + - node: peg + out: 4 + color: '#c9cacd' + confidence: estimated + source: 'data sheet page 1 photograph, the upper row of brackets: the pin is seen nearly end on, so its length is a guess' +skins: +- default diff --git a/library/components/apc/nsx-vcm-ar7710-screws/v1/skins/default.svg b/library/components/apc/nsx-vcm-ar7710-screws/v1/skins/default.svg new file mode 100644 index 000000000..8f849eb79 --- /dev/null +++ b/library/components/apc/nsx-vcm-ar7710-screws/v1/skins/default.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/library/devices/apc/ar7710/device.lock.json b/library/devices/apc/ar7710/device.lock.json new file mode 100644 index 000000000..a6c3cff27 --- /dev/null +++ b/library/devices/apc/ar7710/device.lock.json @@ -0,0 +1,38 @@ +{ + "bay-accepts": {}, + "composed": "acd94275380102d9", + "composed-refs": { + "apc/nsx-vcm-ar7710-base@1": "1.0.0+be67b35520bb9f48", + "apc/nsx-vcm-ar7710-screws@1": "1.0.0+b6a53013e3453426" + }, + "configs": [ + "base" + ], + "format": 1, + "gaps": "cb1e6da68a1c4731", + "groups": [ + "body", + "screws" + ], + "ids": [ + "rear/placements/base", + "rear/placements/screws" + ], + "names": "f3d0eaac98035fae", + "placement-addressing": { + "rel-pos": { + "rear/placements/base": 1, + "rear/placements/screws": 1 + } + }, + "placement-attrs": "44136fa355b3678a", + "placement-geometry": "55a7d20c2163c43a", + "placement-groups": { + "rear/placements/base": "body", + "rear/placements/screws": "screws" + }, + "placement-surface": "44136fa355b3678a", + "shape": "c4a2c4b72472ba71", + "surface": "73bc3d17dcd59dd9", + "version": "1.0.0" +} diff --git a/library/devices/apc/ar7710/device.yaml b/library/devices/apc/ar7710/device.yaml new file mode 100644 index 000000000..c39f9a2da --- /dev/null +++ b/library/devices/apc/ar7710/device.yaml @@ -0,0 +1,498 @@ +format: 1 +kind: device +name: ar7710 +version: 1.0.0 +maturity: modelled +manufacturer: APC +model: AR7710 +description: Cable containment bracket for NetShelter SX, SV and VX racks, APC AR7710. It is a black sheet-steel cup, 80 mm + wide, 112 mm tall and 45 mm deep, open at both ends. A keyhole opens in each of its three faces. It takes no rack unit. +profile: passive +provenance: + mount: + confidence: datasheet + note: 'datasheet - `rack-side`: "Number of rack unit 0U", "Mounting Location Side" and "Mounting Mode Rack-mounted". The + installation sheet 990-3113A hangs it on a plate screwed to the rack frame.' + method: + confidence: datasheet + note: FIGURES FROM THE MAKER'S OWN DOCUMENTS, read as data. They are the AR7710 data sheet and the installation sheet + 990-3113A. Width, height, depth and weight are `datasheet`. Every drawn feature is read off the sheets' pictures and + estimated. No drawing or photograph is copied. + chassis: + confidence: datasheet + note: 'datasheet - 80 x 112 x 45 mm: "Width 3.1 in (80 mm)", "Height 4.4 in (112 mm)", "Depth 1.8 in (45 mm)". Every held + picture shows the part lying with its 112 mm side across. It is drawn standing, 112 mm tall, as the data sheet labels it + and as a rack-side part is drawn (see the `installed-orientation` gap).' + ru: + confidence: estimated + note: estimated - 112 mm is 2.52 rack units of 44.45 mm, so the part runs beside three. The data sheet prints "0U". + depth: + confidence: datasheet + note: datasheet - "Depth 1.8 in (45 mm)". + shell: + confidence: estimated + note: estimated - a solid box in 3D. The part is a hollow cup open at both ends. Its open ends are drawn on the left and + right faces only. + weight: + confidence: datasheet + note: 'datasheet - "Net Weight 0.99 lb(US) (0.45 kg)". The sheet does not say whether this is one bracket or the six in the + pack. The packed weight is 2.27 kg, and six brackets of 0.45 kg would weigh more than that.' + front: + confidence: estimated + note: estimated - the long face of the cup as the installation sheet draws it, turned a quarter turn to stand 112 mm tall. + It has two keyholes, one in each piece, and the open slot between the pieces with the hook of one piece in it. + Positions are read off the figure at 800 dpi, fitting the face to the printed 112 x 80 mm. + rear: + confidence: estimated + note: estimated - the plate the data sheet shows on page 4, six times. It has two screws and one small pale stud. It is turned + the same quarter turn. No page says how the plate joins the cup (see the `plate-joint` gap). One screw shank and one + small pin are raised from it, read off the page 1 photograph (see the `screw-shanks` and `shank-length` gaps). + top: + confidence: estimated + note: estimated - the end face the installation sheet draws at the right of the cup, with one keyhole, turned the same + quarter turn. + bottom: + confidence: estimated + note: built as the documented side, as no document shows this one. It is the top face seen from below, with its keyhole + mirrored left to right. The installation sheet's cable figure shows cables leaving the cup at this end. + left: + confidence: estimated + note: estimated - the open end of the cup. The wall is 1.5 mm, which no page states. The tab of the left piece closes the + joint slot at this end. + right: + confidence: estimated + note: estimated - the other open end of the cup. The joint slot cuts the front wall here, 1.5 mm deep. x = 0 is the front. + capacity: + confidence: datasheet + note: datasheet - no cable capacity is stated (see `gaps`). + attrs: + confidence: datasheet + note: 'datasheet - "Color: Black" and the provided equipment (installation guide).' + color: + confidence: estimated + note: 'estimated - "Color: Black". The shade is the library''s render of black steel. The photographs are lit and read + lighter, from #15161a in place to #383a47 on the white page.' +attrs: + physical: + weight-kg: 0.45 + color: Black +chassis: + width: 80.0 + height: 112.0 + depth: 45.0 + ru: 3 + mount: rack-side + weight-kg: 0.45 + color: '#232527' +gaps: +- what: set-or-single + scope: + - front + reason: vendor-silent + note: The installation sheet is titled "Wire Management Bracket (6)" and the data sheet's photograph shows six. The data + sheet prints one size and one weight and counts one piece in the package. One bracket is drawn. + wanted: the maker's statement of what the pack holds and what the weight covers +- what: installed-orientation + scope: + - front + - rear + - top + - bottom + reason: needs-photo + note: Every held picture shows the cup with its 112 mm side across and its keyholes upright. The part is drawn standing + 112 mm tall, as the data sheet labels it, so each keyhole lies on its side. L152 asks a rack-side front to be taller + than wide. + wanted: a photograph or drawing that shows how the bracket stands on the rack frame +- what: plate-joint + scope: + - rear + reason: needs-drawing + note: The data sheet shows six plates, each with two screws and a small pale stud. The installation sheet shows a plate with + two screws on the rack frame. No page says how a plate joins a cup, or whether the plate is sold with the bracket. + wanted: a dimensioned drawing of the plate and of the bracket fitted to it +- what: screw-shanks + scope: + - rear + reason: needs-photo + note: The data sheet photograph shows one threaded shank at the right-hand piece of each of three brackets. It shows a small + pin at each piece of the other three. One shank and one pin are drawn. The left-hand piece of the lower three shows no shank. + wanted: a photograph of the open end of one bracket that shows every screw +- what: shank-length + scope: + - rear + reason: needs-photo + note: The photograph is a perspective view and no page gives a shank length. The drawn 15 mm is read off it within a range + of about 10 to 35 mm. + wanted: the maker's drawing of the plate and its screws +- what: keyhole-function + scope: + - front + - top + - bottom + reason: vendor-silent + note: The sheets draw a keyhole in each face. No page says what lands in a keyhole or gives its size. The keyholes are drawn + as openings and carry no connector. + wanted: the maker's statement of what the keyholes take, with their sizes +- what: perforation-shapes + scope: + - front + - rear + - top + - bottom + - left + - right + reason: needs-drawing + note: No page dimensions the cup, its keyholes, the joint slot, the hook, the plate or the wall. Sizes and places are read off + the figures and estimated. The corners are drawn rounded 3 mm all round. The figure rounds only the end corners. + wanted: a dimensioned drawing of the bracket and the plate +- what: hollow-body + scope: + - top + - bottom + reason: needs-drawing + note: The cup is hollow and open at both ends. The body is a solid box in 3D, and the open ends are drawn on the left and + right faces only. + wanted: a section drawing of the bracket +- what: cable-capacity + scope: + - front + reason: vendor-silent + note: The data sheet states no cable capacity, so none is recorded and none is estimated. + wanted: a capacity figure and the cable it is stated for +- what: cabinet-fit + scope: + - rear + reason: vendor-silent + note: The data sheet is titled for NetShelter SX, SV and VX racks and the installation sheet shows an SX frame. No page + lists a cabinet model number. + wanted: the maker's compatibility list +groups: + body: + term: Well + role: furniture + index-origin: 1 + description: the well the screw shank and the small pin stand in + screws: + term: Screw + role: furniture + index-origin: 1 + description: the screw shank at the right-hand piece and the small pin at the left-hand piece +views: + front: + size: + w: 80.0 + h: 112.0 + panel: + decor: + - id: plate + at: + - 0.0 + - 0.0 + size: + - 80.0 + - 112.0 + fill: '#232527' + kind: base + rx: 3 + - id: joint-1 + at: + - 14.0 + - 41.6 + size: + - 66.0 + - 23.7 + fill: '#0d0e0f' + kind: slot + confidence: estimated + - id: hook-1 + at: + - 60.0 + - 41.6 + size: + - 20.0 + - 13.7 + fill: '#2e3033' + kind: tongue + confidence: estimated + - id: keyhole-1 + at: + - 23.2 + - 71.1 + size: + - 21.0 + - 22.0 + fill: '#0d0e0f' + kind: slot + confidence: estimated + rx: 10.5 + - id: kstem-1 + at: + - 42.5 + - 76.6 + size: + - 15.5 + - 11.0 + fill: '#0d0e0f' + kind: slot + confidence: estimated + rx: 5.5 + - id: keyhole-2 + at: + - 24.0 + - 16.3 + size: + - 21.0 + - 22.0 + fill: '#0d0e0f' + kind: slot + confidence: estimated + rx: 10.5 + - id: kstem-2 + at: + - 43.3 + - 21.8 + size: + - 15.5 + - 11.0 + fill: '#0d0e0f' + kind: slot + confidence: estimated + rx: 5.5 + rear: + size: + w: 80.0 + h: 112.0 + panel: + decor: + - id: plate + at: + - 0.0 + - 0.0 + size: + - 80.0 + - 112.0 + fill: '#232527' + kind: base + rx: 3 + - id: screw-1 + at: + - 44.8 + - 76.0 + size: + - 16.0 + - 16.0 + fill: '#3a3d40' + kind: screw-head + rx: 8.0 + confidence: estimated + - id: core-1 + at: + - 49.8 + - 81.0 + size: + - 6.0 + - 6.0 + fill: '#d4d5d8' + kind: screw-core + rx: 3.0 + confidence: estimated + - id: screw-2 + at: + - 44.8 + - 25.6 + size: + - 16.0 + - 16.0 + fill: '#3a3d40' + kind: screw-head + rx: 8.0 + confidence: estimated + - id: core-2 + at: + - 49.8 + - 30.6 + size: + - 6.0 + - 6.0 + fill: '#d4d5d8' + kind: screw-core + rx: 3.0 + confidence: estimated + - id: pin-1 + at: + - 24.2 + - 86.6 + size: + - 6.0 + - 6.0 + fill: '#c9cacd' + kind: rivet + confidence: estimated + rx: 3.0 + components: + placements: + - ref: apc/nsx-vcm-ar7710-base@1 + id: base + at: + - 0.0 + - 0.0 + group: body + rel-pos: 1 + - ref: apc/nsx-vcm-ar7710-screws@1 + id: screws + at: + - 0.0 + - 0.0 + group: screws + rel-pos: 1 + in: base + top: + size: + w: 80.0 + h: 45.0 + panel: + decor: + - id: plate + at: + - 0.0 + - 0.0 + size: + - 80.0 + - 45.0 + fill: '#232527' + kind: base + rx: 3 + - id: keyhole-1 + at: + - 23.5 + - 11.5 + size: + - 21.0 + - 22.0 + fill: '#0d0e0f' + kind: slot + confidence: estimated + rx: 10.5 + - id: kstem-1 + at: + - 42.8 + - 17.0 + size: + - 15.5 + - 11.0 + fill: '#0d0e0f' + kind: slot + confidence: estimated + rx: 5.5 + bottom: + size: + w: 80.0 + h: 45.0 + panel: + decor: + - id: plate + at: + - 0.0 + - 0.0 + size: + - 80.0 + - 45.0 + fill: '#232527' + kind: base + rx: 3 + - id: keyhole-1 + at: + - 35.5 + - 11.5 + size: + - 21.0 + - 22.0 + fill: '#0d0e0f' + kind: slot + confidence: estimated + rx: 10.5 + - id: kstem-1 + at: + - 21.7 + - 17.0 + size: + - 15.5 + - 11.0 + fill: '#0d0e0f' + kind: slot + confidence: estimated + rx: 5.5 + left: + size: + w: 45.0 + h: 112.0 + panel: + decor: + - id: plate + at: + - 0.0 + - 0.0 + size: + - 45.0 + - 112.0 + fill: '#232527' + kind: base + - id: mouth + at: + - 1.5 + - 1.5 + size: + - 42.0 + - 109.0 + fill: '#0d0e0f' + kind: opening + confidence: estimated + right: + size: + w: 45.0 + h: 112.0 + panel: + decor: + - id: plate + at: + - 0.0 + - 0.0 + size: + - 45.0 + - 112.0 + fill: '#232527' + kind: base + - id: mouth + at: + - 1.5 + - 1.5 + size: + - 42.0 + - 109.0 + fill: '#0d0e0f' + kind: opening + confidence: estimated + - id: notch + at: + - 0.0 + - 41.6 + size: + - 1.5 + - 23.7 + fill: '#0d0e0f' + kind: slot + confidence: estimated +configurations: + base: + kind: base + default: true + description: The bracket as APC ships AR7710. +datasheet: + title: APC NetShelter Cable Management, Vertical Cable Manager, Containment Brackets, for NetShelter SX, SV, and VX Racks, + 80 x 112 x 45 mm (AR7710) + url: https://www.se.com/us/en/product/download-pdf/AR7710?filename=Schneider+Electric_APC-NetShelter-Cable-Management_AR7710.pdf + sha256: ab59f24fca67b0e50518f0fa9fd8dc6222a1401a3426714617e7a14b6c5e5fb1 +references: +- title: Cable Containment Bracket for Rack Power Distribution Unit (AR7710), instruction sheet 990-3113A, 4/2016 + url: https://download.se.com/files?p_enDocType=Instruction+sheet&p_File_Name=ASTE-6Z6KB6_R1_EN.pdf&p_Doc_Ref=SPD_ASTE-6Z6KB6_EN + sha256: 6569db347a00e43590e6a4f4b2ee726f9b64f602f71a722554287872673df16b diff --git a/spec/tests/test_apc_ar7710.py b/spec/tests/test_apc_ar7710.py new file mode 100644 index 000000000..f5f6ad6f9 --- /dev/null +++ b/spec/tests/test_apc_ar7710.py @@ -0,0 +1,111 @@ +"""APC NetShelter AR7710 cable containment bracket (roc-ops/Portrayal#1097, part of #1091). + +The AR7710 is a cable containment bracket for the NetShelter SX, SV and VX racks. APC's data sheet prints its +envelope and weight; the installation sheet draws one bracket and the data sheet's photographs show it and its +plate. What no page dimensions is estimated in the device and held here only to what the device itself declares. +Every test reads the device file; none reads `library/dist`. +""" +import pathlib + +import yaml + +ROOT = pathlib.Path(__file__).resolve().parents[2] +DEVICE = ROOT / "library" / "devices" / "apc" / "ar7710" / "device.yaml" + + +def device(): + return yaml.safe_load(DEVICE.read_text()) + + +def decor(doc, view): + return doc["views"][view]["panel"]["decor"] + + +def with_prefix(items, prefix): + return [d for d in items if d["id"].startswith(prefix)] + + +def close(a, b, tol=0.06): + return abs(a - b) <= tol + + +def test_the_envelope_and_weight_are_the_data_sheets(): + doc = device() + c = doc["chassis"] + assert doc["manufacturer"] == "APC" and doc["model"] == "AR7710" + assert close(c["width"], 80.0) and close(c["height"], 112.0) and close(c["depth"], 45.0) + assert close(c["weight-kg"], 0.45, 0.0005) + assert doc["attrs"]["physical"]["color"] == "Black" + + +def test_it_is_a_rack_side_part_and_its_front_is_taller_than_wide(): + doc = device() + assert doc["chassis"]["mount"] == "rack-side" and doc["chassis"]["ru"] == 3 + front = doc["views"]["front"]["size"] + assert front["h"] > front["w"], "L152: a rack-side part is drawn as it stands" + assert close(front["w"], 80.0) and close(front["h"], 112.0) + + +def test_it_has_every_side_at_the_envelope_size(): + doc = device() + assert set(doc["views"]) == {"front", "rear", "top", "bottom", "left", "right"} + sizes = {k: (v["size"]["w"], v["size"]["h"]) for k, v in doc["views"].items()} + assert sizes["front"] == sizes["rear"] == (80.0, 112.0) + assert sizes["top"] == sizes["bottom"] == (80.0, 45.0) + assert sizes["left"] == sizes["right"] == (45.0, 112.0) + + +def test_the_front_shows_two_keyholes_the_joint_slot_and_the_hook(): + front = decor(device(), "front") + assert len(with_prefix(front, "keyhole-")) == 2, "a keyhole in each of the two pieces of the long face" + assert len(with_prefix(front, "kstem-")) == 2, "each keyhole has its stem" + assert len(with_prefix(front, "joint-")) == 1, "the open slot between the two pieces" + assert len(with_prefix(front, "hook-")) == 1, "the hook of the right-hand piece in that slot" + + +def test_the_rear_shows_the_plate_with_two_screws_and_a_small_stud(): + rear = decor(device(), "rear") + assert len(with_prefix(rear, "screw-")) == 2 + assert len(with_prefix(rear, "core-")) == 2, "a pale centre in each screw" + assert len(with_prefix(rear, "pin-")) == 1, "one small pale stud" + + +def component(ref): + name, major = ref.split("@") + path = ROOT / "library" / "components" / name / f"v{major}" / "contract.yaml" + return yaml.safe_load(path.read_text()) + + +def test_the_rear_stands_one_shank_and_one_pin_in_a_well_as_deep_as_the_shank(): + doc = device() + placed = {p["id"]: p for p in doc["views"]["rear"]["components"]["placements"]} + assert set(placed) == {"base", "screws"} + assert placed["screws"]["in"] == "base", "the screws stand in the well, so the depth tests judge them inside the part" + well, screws = component(placed["base"]["ref"]), component(placed["screws"]["ref"]) + features = {f["node"]: f for f in screws["relief"]["features"]} + assert set(features) == {"shank", "peg"}, "the one shank the photograph shows most plainly and the small pin" + for feature in features.values(): + assert feature["out"] > 0 and feature["confidence"] == "estimated" and feature["source"] + assert features["shank"]["out"] > features["peg"]["out"], "the pin is the short one" + assert well["size"]["d"] >= features["shank"]["out"], "the well is as deep as the shank's reach" + assert well["size"]["d"] <= doc["chassis"]["depth"], "and no deeper than the part" + assert not with_prefix(decor(doc, "rear"), "shank-"), "a shank is not flat decor" + assert {"screw-shanks", "shank-length"} <= {g["what"] for g in doc["gaps"]} + + +def test_each_end_face_has_one_keyhole_and_the_open_ends_show_the_wall(): + doc = device() + for view in ("top", "bottom"): + assert len(with_prefix(decor(doc, view), "keyhole-")) == 1 + assert len(with_prefix(decor(doc, view), "kstem-")) == 1 + for view in ("left", "right"): + assert len(with_prefix(decor(doc, view), "mouth")) == 1, "the open end of the bracket" + assert len(with_prefix(decor(doc, "right"), "notch")) == 1, "the joint slot cuts the front wall at this end" + assert not with_prefix(decor(doc, "left"), "notch"), "the other end is closed by the tab" + + +def test_it_has_no_connector_and_names_what_the_pages_leave_open(): + doc = device() + assert not doc.get("ports") and "capacity" in doc["provenance"] + gaps = {g["what"] for g in doc["gaps"]} + assert {"set-or-single", "cabinet-fit", "cable-capacity", "plate-joint", "installed-orientation"} <= gaps From dd4f0cb7e7d7dd40b3b54084b0bcc69dfe359c47 Mon Sep 17 00:00:00 2001 From: Jason Patterson Date: Sat, 21 Nov 2026 15:16:41 +0000 Subject: [PATCH 2/4] Export the APC AR7710 to the DCIM libraries The NetBox and Nautobot device types, written by the exporter. Co-Authored-By: Claude Sonnet 5.5 Signed-off-by: Jason Patterson --- .../nautobot/device-types/APC/AR7710.yaml | 21 +++++++++++++++++++ .../netbox/device-types/APC/AR7710.yaml | 21 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 library/exports/nautobot/device-types/APC/AR7710.yaml create mode 100644 library/exports/netbox/device-types/APC/AR7710.yaml diff --git a/library/exports/nautobot/device-types/APC/AR7710.yaml b/library/exports/nautobot/device-types/APC/AR7710.yaml new file mode 100644 index 000000000..8ede120ee --- /dev/null +++ b/library/exports/nautobot/device-types/APC/AR7710.yaml @@ -0,0 +1,21 @@ +--- +manufacturer: APC +model: AR7710 +slug: apc-ar7710 +u_height: 0.0 +is_full_depth: false +weight: 0.45 +weight_unit: kg +description: Cable containment bracket for NetShelter SX, SV and VX racks, APC AR7710 +front_image: true +rear_image: true +comments: "Cable containment bracket for NetShelter SX, SV and VX racks, APC AR7710. It is a black sheet-steel\ + \ cup, 80 mm wide, 112 mm tall and 45 mm deep, open at both ends. A keyhole opens in each of its three\ + \ faces. It takes no rack unit.\n\nConfiguration `base`: The bracket as APC ships AR7710.\n\nMounts\ + \ on the side of a rack's upright, beside the rack; occupies no rack unit.\n\nDatasheet: APC NetShelter\ + \ Cable Management, Vertical Cable Manager, Containment Brackets, for NetShelter SX, SV, and VX Racks,\ + \ 80 x 112 x 45 mm (AR7710)\n https://www.se.com/us/en/product/download-pdf/AR7710?filename=Schneider+Electric_APC-NetShelter-Cable-Management_AR7710.pdf\n\ + \nFacts carried in the model that this schema has no field for:\n- physical.color: Black\n- physical.weight-kg:\ + \ 0.45\n\nDrawing version 1.0.0. A major bump means a slot moved or an id was renamed, so anything cached\ + \ from an earlier export may no longer line up.\nModel maturity: modelled. Every dimension in the source\ + \ records where it came from." diff --git a/library/exports/netbox/device-types/APC/AR7710.yaml b/library/exports/netbox/device-types/APC/AR7710.yaml new file mode 100644 index 000000000..8ede120ee --- /dev/null +++ b/library/exports/netbox/device-types/APC/AR7710.yaml @@ -0,0 +1,21 @@ +--- +manufacturer: APC +model: AR7710 +slug: apc-ar7710 +u_height: 0.0 +is_full_depth: false +weight: 0.45 +weight_unit: kg +description: Cable containment bracket for NetShelter SX, SV and VX racks, APC AR7710 +front_image: true +rear_image: true +comments: "Cable containment bracket for NetShelter SX, SV and VX racks, APC AR7710. It is a black sheet-steel\ + \ cup, 80 mm wide, 112 mm tall and 45 mm deep, open at both ends. A keyhole opens in each of its three\ + \ faces. It takes no rack unit.\n\nConfiguration `base`: The bracket as APC ships AR7710.\n\nMounts\ + \ on the side of a rack's upright, beside the rack; occupies no rack unit.\n\nDatasheet: APC NetShelter\ + \ Cable Management, Vertical Cable Manager, Containment Brackets, for NetShelter SX, SV, and VX Racks,\ + \ 80 x 112 x 45 mm (AR7710)\n https://www.se.com/us/en/product/download-pdf/AR7710?filename=Schneider+Electric_APC-NetShelter-Cable-Management_AR7710.pdf\n\ + \nFacts carried in the model that this schema has no field for:\n- physical.color: Black\n- physical.weight-kg:\ + \ 0.45\n\nDrawing version 1.0.0. A major bump means a slot moved or an id was renamed, so anything cached\ + \ from an earlier export may no longer line up.\nModel maturity: modelled. Every dimension in the source\ + \ records where it came from." From 7ee6308f060659802e9f5ab357c238d5c5ab6fa2 Mon Sep 17 00:00:00 2001 From: Jason Patterson Date: Sat, 21 Nov 2026 17:36:01 +0000 Subject: [PATCH 3/4] Mirror the AR7710 rear plate and draw its folds and screw recesses The plate is placed from its photograph with the rear mapping x = 80 - v * 80. The screws are 56 mm apart, the stud stands above the left screw, and the shank and pin stand on the screw centres. Two lighter side folds and a dark recess in each screw are drawn. The notes say what the pages show: three documented keyholes and a fourth by the bottom's mirror, the bracket's own two screws entering rack-frame keyholes, and a screw head seated in the left keyhole that is not drawn. Co-Authored-By: Claude Sonnet 5.5 Signed-off-by: Jason Patterson --- .../nsx-vcm-ar7710-screws/v1/contract.yaml | 8 +- .../v1/skins/default.svg | 4 +- library/devices/apc/ar7710/device.lock.json | 8 +- library/devices/apc/ar7710/device.yaml | 105 +++++++++++++----- .../nautobot/device-types/APC/AR7710.yaml | 11 +- .../netbox/device-types/APC/AR7710.yaml | 11 +- spec/tests/test_apc_ar7710.py | 103 +++++++++++++++++ 7 files changed, 200 insertions(+), 50 deletions(-) diff --git a/library/components/apc/nsx-vcm-ar7710-screws/v1/contract.yaml b/library/components/apc/nsx-vcm-ar7710-screws/v1/contract.yaml index 7f51fed97..5f07ca9c3 100644 --- a/library/components/apc/nsx-vcm-ar7710-screws/v1/contract.yaml +++ b/library/components/apc/nsx-vcm-ar7710-screws/v1/contract.yaml @@ -20,16 +20,16 @@ size-confidence: elements: shank: at: - - 51.4 - - 32.2 + - 29.2 + - 27.4 size: - 2.8 - 2.8 class: bezel peg: at: - - 51.3 - - 82.5 + - 29.1 + - 83.5 size: - 3.0 - 3.0 diff --git a/library/components/apc/nsx-vcm-ar7710-screws/v1/skins/default.svg b/library/components/apc/nsx-vcm-ar7710-screws/v1/skins/default.svg index 8f849eb79..0286b5b0a 100644 --- a/library/components/apc/nsx-vcm-ar7710-screws/v1/skins/default.svg +++ b/library/components/apc/nsx-vcm-ar7710-screws/v1/skins/default.svg @@ -1,5 +1,5 @@ - - + + diff --git a/library/devices/apc/ar7710/device.lock.json b/library/devices/apc/ar7710/device.lock.json index a6c3cff27..ef911e5da 100644 --- a/library/devices/apc/ar7710/device.lock.json +++ b/library/devices/apc/ar7710/device.lock.json @@ -1,15 +1,15 @@ { "bay-accepts": {}, - "composed": "acd94275380102d9", + "composed": "cc64a991febb4e8f", "composed-refs": { "apc/nsx-vcm-ar7710-base@1": "1.0.0+be67b35520bb9f48", - "apc/nsx-vcm-ar7710-screws@1": "1.0.0+b6a53013e3453426" + "apc/nsx-vcm-ar7710-screws@1": "1.0.0+d093c782d6d50472" }, "configs": [ "base" ], "format": 1, - "gaps": "cb1e6da68a1c4731", + "gaps": "f3f79ada2e59886d", "groups": [ "body", "screws" @@ -33,6 +33,6 @@ }, "placement-surface": "44136fa355b3678a", "shape": "c4a2c4b72472ba71", - "surface": "73bc3d17dcd59dd9", + "surface": "51014a892185ebab", "version": "1.0.0" } diff --git a/library/devices/apc/ar7710/device.yaml b/library/devices/apc/ar7710/device.yaml index c39f9a2da..99c4eeb00 100644 --- a/library/devices/apc/ar7710/device.yaml +++ b/library/devices/apc/ar7710/device.yaml @@ -6,13 +6,14 @@ maturity: modelled manufacturer: APC model: AR7710 description: Cable containment bracket for NetShelter SX, SV and VX racks, APC AR7710. It is a black sheet-steel cup, 80 mm - wide, 112 mm tall and 45 mm deep, open at both ends. A keyhole opens in each of its three faces. It takes no rack unit. + wide, 112 mm tall and 45 mm deep, open at both ends. The documents draw three keyholes, two in the long face and one in an end face. + The bottom face has a fourth keyhole, the top one mirrored. It takes no rack unit. profile: passive provenance: mount: confidence: datasheet note: 'datasheet - `rack-side`: "Number of rack unit 0U", "Mounting Location Side" and "Mounting Mode Rack-mounted". The - installation sheet 990-3113A hangs it on a plate screwed to the rack frame.' + installation sheet 990-3113A shows the bracket''s own two screws entering rack-frame keyholes (insets ns1141a and ns1149a).' method: confidence: datasheet note: FIGURES FROM THE MAKER'S OWN DOCUMENTS, read as data. They are the AR7710 data sheet and the installation sheet @@ -44,8 +45,9 @@ provenance: Positions are read off the figure at 800 dpi, fitting the face to the printed 112 x 80 mm. rear: confidence: estimated - note: estimated - the plate the data sheet shows on page 4, six times. It has two screws and one small pale stud. It is turned - the same quarter turn. No page says how the plate joins the cup (see the `plate-joint` gap). One screw shank and one + note: estimated - the plate the data sheet shows on page 4, six times. It has two screws, each with a dark recess, one small pale stud above the + left screw, and a lighter fold down each end. It is turned the same quarter turn, and its 80 mm side runs mirrored, + x = 80 - v * 80. Positions are fractions of the photographed plate, measured against its own 112 and 80 mm. No page says how the plate joins the cup (see the `plate-joint` gap). One screw shank and one small pin are raised from it, read off the page 1 photograph (see the `screw-shanks` and `shank-length` gaps). top: confidence: estimated @@ -107,8 +109,8 @@ gaps: scope: - rear reason: needs-drawing - note: The data sheet shows six plates, each with two screws and a small pale stud. The installation sheet shows a plate with - two screws on the rack frame. No page says how a plate joins a cup, or whether the plate is sold with the bracket. + note: The data sheet shows six plates, each with two screws and a small pale stud. The installation sheet shows the bracket's own + two screws entering rack-frame keyholes. No page says how a plate joins a cup, or whether the plate is sold with the bracket. wanted: a dimensioned drawing of the plate and of the bracket fitted to it - what: screw-shanks scope: @@ -130,8 +132,9 @@ gaps: - top - bottom reason: vendor-silent - note: The sheets draw a keyhole in each face. No page says what lands in a keyhole or gives its size. The keyholes are drawn - as openings and carry no connector. + note: The sheets draw three keyholes, and the bottom face has a fourth, the top one mirrored. The keyholes are openings with no + connector and no mate in this device. The installation sheet (p.2, ns1151a) and the data sheet (p.3) show a screw head seated in the left keyhole. + It belongs to the part the bracket hangs on, and it is not drawn. No page gives a keyhole's size. wanted: the maker's statement of what the keyholes take, with their sizes - what: perforation-shapes scope: @@ -143,7 +146,7 @@ gaps: - right reason: needs-drawing note: No page dimensions the cup, its keyholes, the joint slot, the hook, the plate or the wall. Sizes and places are read off - the figures and estimated. The corners are drawn rounded 3 mm all round. The figure rounds only the end corners. + the figures and estimated. The corners are drawn rounded 3 mm all round. The figure rounds only the end corners. The small notches at the corners of the plate's folds are not drawn. wanted: a dimensioned drawing of the bracket and the plate - what: hollow-body scope: @@ -163,7 +166,7 @@ gaps: scope: - rear reason: vendor-silent - note: The data sheet is titled for NetShelter SX, SV and VX racks and the installation sheet shows an SX frame. No page + note: The data sheet is titled for NetShelter SX, SV and VX racks and the installation sheet shows a rack frame. No page lists a cabinet model number. wanted: the maker's compatibility list groups: @@ -274,54 +277,96 @@ views: fill: '#232527' kind: base rx: 3 + - id: fold-1 + at: + - 3.0 + - 1.0 + size: + - 74.0 + - 2.0 + fill: '#4b4e52' + kind: fold + confidence: estimated + - id: fold-2 + at: + - 3.0 + - 109.0 + size: + - 74.0 + - 2.0 + fill: '#4b4e52' + kind: fold + confidence: estimated - id: screw-1 at: - - 44.8 - - 76.0 + - 18.6 + - 73.0 + size: + - 24.0 + - 24.0 + fill: '#2b2d30' + kind: screw-head + rx: 12.0 + confidence: estimated + - id: recess-1 + at: + - 22.6 + - 77.0 size: - 16.0 - 16.0 - fill: '#3a3d40' - kind: screw-head + fill: '#0d0e0f' + kind: recess rx: 8.0 confidence: estimated - id: core-1 at: - - 49.8 - - 81.0 + - 27.1 + - 81.5 size: - - 6.0 - - 6.0 + - 7.0 + - 7.0 fill: '#d4d5d8' kind: screw-core - rx: 3.0 + rx: 3.5 confidence: estimated - id: screw-2 at: - - 44.8 - - 25.6 + - 18.6 + - 16.8 + size: + - 24.0 + - 24.0 + fill: '#2b2d30' + kind: screw-head + rx: 12.0 + confidence: estimated + - id: recess-2 + at: + - 22.6 + - 20.8 size: - 16.0 - 16.0 - fill: '#3a3d40' - kind: screw-head + fill: '#0d0e0f' + kind: recess rx: 8.0 confidence: estimated - id: core-2 at: - - 49.8 - - 30.6 + - 27.1 + - 25.3 size: - - 6.0 - - 6.0 + - 7.0 + - 7.0 fill: '#d4d5d8' kind: screw-core - rx: 3.0 + rx: 3.5 confidence: estimated - id: pin-1 at: - - 24.2 - - 86.6 + - 50.9 + - 82.0 size: - 6.0 - 6.0 diff --git a/library/exports/nautobot/device-types/APC/AR7710.yaml b/library/exports/nautobot/device-types/APC/AR7710.yaml index 8ede120ee..cf4c4c0c1 100644 --- a/library/exports/nautobot/device-types/APC/AR7710.yaml +++ b/library/exports/nautobot/device-types/APC/AR7710.yaml @@ -10,11 +10,12 @@ description: Cable containment bracket for NetShelter SX, SV and VX racks, APC A front_image: true rear_image: true comments: "Cable containment bracket for NetShelter SX, SV and VX racks, APC AR7710. It is a black sheet-steel\ - \ cup, 80 mm wide, 112 mm tall and 45 mm deep, open at both ends. A keyhole opens in each of its three\ - \ faces. It takes no rack unit.\n\nConfiguration `base`: The bracket as APC ships AR7710.\n\nMounts\ - \ on the side of a rack's upright, beside the rack; occupies no rack unit.\n\nDatasheet: APC NetShelter\ - \ Cable Management, Vertical Cable Manager, Containment Brackets, for NetShelter SX, SV, and VX Racks,\ - \ 80 x 112 x 45 mm (AR7710)\n https://www.se.com/us/en/product/download-pdf/AR7710?filename=Schneider+Electric_APC-NetShelter-Cable-Management_AR7710.pdf\n\ + \ cup, 80 mm wide, 112 mm tall and 45 mm deep, open at both ends. The documents draw three keyholes,\ + \ two in the long face and one in an end face. The bottom face has a fourth keyhole, the top one mirrored.\ + \ It takes no rack unit.\n\nConfiguration `base`: The bracket as APC ships AR7710.\n\nMounts on the\ + \ side of a rack's upright, beside the rack; occupies no rack unit.\n\nDatasheet: APC NetShelter Cable\ + \ Management, Vertical Cable Manager, Containment Brackets, for NetShelter SX, SV, and VX Racks, 80\ + \ x 112 x 45 mm (AR7710)\n https://www.se.com/us/en/product/download-pdf/AR7710?filename=Schneider+Electric_APC-NetShelter-Cable-Management_AR7710.pdf\n\ \nFacts carried in the model that this schema has no field for:\n- physical.color: Black\n- physical.weight-kg:\ \ 0.45\n\nDrawing version 1.0.0. A major bump means a slot moved or an id was renamed, so anything cached\ \ from an earlier export may no longer line up.\nModel maturity: modelled. Every dimension in the source\ diff --git a/library/exports/netbox/device-types/APC/AR7710.yaml b/library/exports/netbox/device-types/APC/AR7710.yaml index 8ede120ee..cf4c4c0c1 100644 --- a/library/exports/netbox/device-types/APC/AR7710.yaml +++ b/library/exports/netbox/device-types/APC/AR7710.yaml @@ -10,11 +10,12 @@ description: Cable containment bracket for NetShelter SX, SV and VX racks, APC A front_image: true rear_image: true comments: "Cable containment bracket for NetShelter SX, SV and VX racks, APC AR7710. It is a black sheet-steel\ - \ cup, 80 mm wide, 112 mm tall and 45 mm deep, open at both ends. A keyhole opens in each of its three\ - \ faces. It takes no rack unit.\n\nConfiguration `base`: The bracket as APC ships AR7710.\n\nMounts\ - \ on the side of a rack's upright, beside the rack; occupies no rack unit.\n\nDatasheet: APC NetShelter\ - \ Cable Management, Vertical Cable Manager, Containment Brackets, for NetShelter SX, SV, and VX Racks,\ - \ 80 x 112 x 45 mm (AR7710)\n https://www.se.com/us/en/product/download-pdf/AR7710?filename=Schneider+Electric_APC-NetShelter-Cable-Management_AR7710.pdf\n\ + \ cup, 80 mm wide, 112 mm tall and 45 mm deep, open at both ends. The documents draw three keyholes,\ + \ two in the long face and one in an end face. The bottom face has a fourth keyhole, the top one mirrored.\ + \ It takes no rack unit.\n\nConfiguration `base`: The bracket as APC ships AR7710.\n\nMounts on the\ + \ side of a rack's upright, beside the rack; occupies no rack unit.\n\nDatasheet: APC NetShelter Cable\ + \ Management, Vertical Cable Manager, Containment Brackets, for NetShelter SX, SV, and VX Racks, 80\ + \ x 112 x 45 mm (AR7710)\n https://www.se.com/us/en/product/download-pdf/AR7710?filename=Schneider+Electric_APC-NetShelter-Cable-Management_AR7710.pdf\n\ \nFacts carried in the model that this schema has no field for:\n- physical.color: Black\n- physical.weight-kg:\ \ 0.45\n\nDrawing version 1.0.0. A major bump means a slot moved or an id was renamed, so anything cached\ \ from an earlier export may no longer line up.\nModel maturity: modelled. Every dimension in the source\ diff --git a/spec/tests/test_apc_ar7710.py b/spec/tests/test_apc_ar7710.py index f5f6ad6f9..61008bf42 100644 --- a/spec/tests/test_apc_ar7710.py +++ b/spec/tests/test_apc_ar7710.py @@ -104,6 +104,109 @@ def test_each_end_face_has_one_keyhole_and_the_open_ends_show_the_wall(): assert not with_prefix(decor(doc, "left"), "notch"), "the other end is closed by the tab" +def centre(item): + return (item["at"][0] + item["size"][0] / 2, item["at"][1] + item["size"][1] / 2) + + +def luminance(colour): + h = colour.lstrip("#") + r, g, b = (int(h[i:i + 2], 16) for i in (0, 2, 4)) + return 0.2126 * r + 0.7152 * g + 0.0722 * b + + +def by_id(items): + return {d["id"]: d for d in items} + + +# The plate photograph on data sheet page 4, as fractions of the plate. Here u runs along its 112 mm side as it lies. +# And v runs along its 80 mm side. The rear is drawn standing: x = 80 - v * 80 and y = 112 * (1 - u). +U_LEFT, U_RIGHT, V_SCREWS, V_STUD = 0.241, 0.743, 0.617, 0.326 + + +def rear_xy(u, v): + return 80.0 - v * 80.0, 112.0 * (1.0 - u) + + +def test_the_rear_plate_is_mirrored_across_the_80_side_as_the_photograph_lies(): + rear = by_id(decor(device(), "rear")) + for ident, u, v in (("screw-1", U_LEFT, V_SCREWS), ("screw-2", U_RIGHT, V_SCREWS), ("pin-1", U_LEFT, V_STUD)): + x, y = rear_xy(u, v) + cx, cy = centre(rear[ident]) + assert abs(cx - x) <= 0.8, f"{ident} stands at x {cx}, the photograph puts it at {x}" + assert abs(cy - y) <= 1.1, f"{ident} stands at y {cy}, the photograph puts it at {y}" + assert centre(rear["screw-1"])[0] < centre(rear["pin-1"])[0], "the stud is on the other side of the screws from x = 0" + + +def test_the_stud_is_directly_above_the_left_screw_and_the_screws_are_56_mm_apart(): + rear = by_id(decor(device(), "rear")) + assert abs(centre(rear["pin-1"])[1] - centre(rear["screw-1"])[1]) <= 0.5 + spacing = abs(centre(rear["screw-1"])[1] - centre(rear["screw-2"])[1]) + assert abs(spacing - 56.2) <= 1.5, f"the screws are {spacing} mm apart" + assert abs(centre(rear["screw-1"])[0] - centre(rear["screw-2"])[0]) <= 0.3 + + +def test_the_shank_and_the_pin_stand_on_the_screw_centres(): + doc = device() + rear = by_id(decor(doc, "rear")) + placed = {p["id"]: p for p in doc["views"]["rear"]["components"]["placements"]} + screws = component(placed["screws"]["ref"])["elements"] + shank, peg = centre(screws["shank"]), centre(screws["peg"]) + assert abs(shank[0] - centre(rear["screw-2"])[0]) <= 0.2 and abs(shank[1] - centre(rear["screw-2"])[1]) <= 0.2 + assert abs(peg[0] - centre(rear["screw-1"])[0]) <= 0.2 and abs(peg[1] - centre(rear["screw-1"])[1]) <= 0.2 + + +def test_the_plate_has_a_lighter_side_fold_down_each_end(): + rear = decor(device(), "rear") + plate = by_id(rear)["plate"] + folds = with_prefix(rear, "fold-") + assert len(folds) == 2, "one strip at each end of the plate" + ends = sorted(round(centre(f)[1]) for f in folds) + assert ends[0] < 10 and ends[1] > 102, "one at each end of the 112 mm side" + for f in folds: + assert f["size"][1] <= 3.0 and f["size"][0] >= 60.0, "a thin strip down the whole end" + assert luminance(f["fill"]) > luminance(plate["fill"]), "lighter than the plate" + assert f["confidence"] == "estimated" + + +def test_each_plate_screw_has_a_dark_recess_between_its_ring_and_its_pale_centre(): + rear = decor(device(), "rear") + plate = by_id(rear)["plate"] + recesses = by_id(with_prefix(rear, "recess-")) + assert len(recesses) == 2 + for n in (1, 2): + ring, recess, core = (by_id(rear)[f"{k}-{n}"] for k in ("screw", "recess", "core")) + assert recess["size"][0] < ring["size"][0] and recess["size"][0] > core["size"][0] + assert all(abs(a - b) <= 0.1 for a, b in zip(centre(recess), centre(ring))) + assert all(abs(a - b) <= 0.1 for a, b in zip(centre(core), centre(ring))) + assert luminance(recess["fill"]) < luminance(plate["fill"]), "dark against the plate" + assert luminance(core["fill"]) > luminance(ring["fill"]) + assert recess["confidence"] == "estimated" + + +def test_three_keyholes_are_documented_and_the_fourth_is_the_top_mirrored(): + doc = device() + documented = len(with_prefix(decor(doc, "front"), "keyhole-")) + len(with_prefix(decor(doc, "top"), "keyhole-")) + assert documented == 3, "two on the long face and one in the end face the sheets draw" + top, bottom = by_id(decor(doc, "top")), by_id(decor(doc, "bottom")) + for ident in ("keyhole-1", "kstem-1"): + mirrored_left_edge = 80.0 - (top[ident]["at"][0] + top[ident]["size"][0]) + assert close(bottom[ident]["at"][0], mirrored_left_edge) and close(bottom[ident]["at"][1], top[ident]["at"][1]) + assert "three" in doc["description"] and "fourth" in doc["description"] + assert "its three faces" not in doc["description"] + + +def test_the_notes_say_what_the_pages_show_and_no_more(): + doc = device() + mount = doc["provenance"]["mount"]["note"] + assert "own two screws" in mount and "rack-frame keyholes" in mount and "screwed to the rack frame" not in mount + gaps = {g["what"]: g for g in doc["gaps"]} + assert "SX frame" not in gaps["cabinet-fit"]["note"] and "rack frame" in gaps["cabinet-fit"]["note"] + keyhole = gaps["keyhole-function"]["note"] + assert "screw head" in keyhole and "not drawn" in keyhole and "No page says what lands" not in keyhole + shapes = gaps["perforation-shapes"]["note"] + assert "notches" in shapes, "the corner notches of the plate folds are named as not drawn" + + def test_it_has_no_connector_and_names_what_the_pages_leave_open(): doc = device() assert not doc.get("ports") and "capacity" in doc["provenance"] From 1e637e3c25e91f6240a82ce23093e9c42d17265e Mon Sep 17 00:00:00 2001 From: Jason Patterson Date: Sat, 21 Nov 2026 17:36:06 +0000 Subject: [PATCH 4/4] Say in the AR7710 changelog what the rear and keyholes show Co-Authored-By: Claude Sonnet 5.5 Signed-off-by: Jason Patterson --- changelog.d/apc-netshelter-ar7710.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/changelog.d/apc-netshelter-ar7710.md b/changelog.d/apc-netshelter-ar7710.md index 987dd74db..b92d51256 100644 --- a/changelog.d/apc-netshelter-ar7710.md +++ b/changelog.d/apc-netshelter-ar7710.md @@ -2,7 +2,8 @@ - The APC AR7710 cable containment bracket for NetShelter SX, SV and VX racks (#1097, part of #1091). It is modelled from APC's own data sheet and installation sheet. `apc/ar7710` is one bracket, 80 x 112 x 45 mm, a black sheet-steel cup open at both ends. It is `chassis.mount: rack-side` and is drawn on all six sides. The long face shows two keyholes, the slot between its - two pieces and the hook in that slot. The rear shows the plate with its two screws and small stud. Each end face shows - one keyhole. One screw shank and one small pin stand from the rear in a well 15 mm deep, estimated from the data - sheet photograph. The bracket adds two parts, `apc/nsx-vcm-ar7710-base` and `apc/nsx-vcm-ar7710-screws`. - It has no connector, and APC states no cable capacity. It closes no row of the conformance records. + two pieces and the hook in that slot. The rear shows the plate as the data sheet photographs it. It has two screws with a dark recess each, + a small stud above the left screw, and a lighter fold down each end. The documents draw three keyholes. Two are in the long face + and one is in an end face. The bottom face has a fourth, the top one mirrored. One screw shank and one small pin stand from the rear + in a well 15 mm deep, estimated from the data sheet photograph. The bracket adds two parts, `apc/nsx-vcm-ar7710-base` + and `apc/nsx-vcm-ar7710-screws`. It has no connector, and APC states no cable capacity. It closes no row of the conformance records.