aboutsummaryrefslogtreecommitdiff
path: root/knowledge/topics/3d-models.md
diff options
context:
space:
mode:
authorLouis <louis@dnge.de>2026-11-11 10:08:41 +0100
committerLouis <louis@dnge.de>2026-11-11 10:08:41 +0100
commit2e433fcd0d1afadd8ab786dd30d7d4546bdee43d (patch)
treef2a5603703d56b08c1eaa672eaf529ec4b2cc3fa /knowledge/topics/3d-models.md
downloadhw-toolchain-2e433fcd0d1afadd8ab786dd30d7d4546bdee43d.tar.gz
hw-toolchain: placer, routers and KiCad helpers for agent-driven hardware work
Rust placer (simulated annealing) and negotiated-congestion router for 2-layer KiCad boards, pnr.sh to place, route, DRC-check and install candidates, Python KiCad helpers, repo conventions (AGENTS.md) and the tool documentation under knowledge/. Konnect (KiCad MCP, AGPL) as a submodule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'knowledge/topics/3d-models.md')
-rw-r--r--knowledge/topics/3d-models.md30
1 files changed, 30 insertions, 0 deletions
diff --git a/knowledge/topics/3d-models.md b/knowledge/topics/3d-models.md
new file mode 100644
index 0000000..095b96e
--- /dev/null
+++ b/knowledge/topics/3d-models.md
@@ -0,0 +1,30 @@
+# 3D models: where to get them
+
+Use manufacturer models first. They are usually exact and coloured, and they come with dimensions you can check against the datasheet. Draw your own only when there is none. Always check the placement with [Model check](../tooling/model-check.md) and a `kicad-cli pcb render`.
+
+## Phoenix Contact
+
+No account is needed. Product URLs look like `https://www.phoenixcontact.com/en-us/products/printed-circuit-board-terminal-mkds-1-8-35-1751303` (`…-mkds-1-<n>-35-<PN>`).
+
+1. On the product page, under the product pictures, click **3D view and CAD download**. This opens Phoenix's embedded TraceParts viewer.
+2. Set **File format** to **STEP AP214** and click **Download**. A Friendly Captcha runs automatically (proof of work, no puzzle). The browser gets a ZIP with `pxc_<PN>_<rev>_<name>_3D.stp` and `<PN>.txt` (TraceParts metadata).
+3. The same format list also offers KiCad footprints and symbols (SamacSys, SnapMagic) and many other formats.
+
+Some product pages have a direct button named after the .stp file. It requests a signed `product-download.phoenixcontact.com` link that `curl` can fetch, with no ZIP or captcha.
+
+Scripted access:
+
+- phoenixcontact.com answers `curl` and plain HTTP fetchers with 403 (bot protection). A real browser (e.g. Playwright) works.
+- A cookie banner covers the page. Driving the Downloads controls through the DOM avoids clicking it: select the `<select>` option, then `button.click()`.
+- The download is a signed S3 link (`traceparts-cache.s3.eu-west-1.amazonaws.com/...`, valid for 6 h) that `curl` can fetch.
+
+Model frame (MKDS 1, probably the same for Phoenix terminal blocks in general):
+
+- Origin at a body corner: x 0…length, y 0…depth (3D, y up), board surface at z = 0, pins below.
+- The wire entry is the y = 0 face, pin 1 at x = 2.0 mm, pin row at y = 3.6 mm.
+- For a KiCad-generator-style footprint (pin 1 at the origin, wire entry at +Y), the model needs offset (−first pin x, −pin row y, 0) and no rotation, e.g. `(xyz -2 -3.6 0)`.
+- The file is an assembly (about 25 solids with colours, about 3 MB), which `tools/model_check.py` refuses. Check a flattened copy instead (see [Model check](../tooling/model-check.md)), and keep the original in the library for its colours.
+
+## easyeda2kicad conversions
+
+Their offsets and rotations are often wrong. Check every converted model with [Model check](../tooling/model-check.md).