by adom
Let an AI (Claude, ChatGPT, Codex or any agent) run Altium Designer for you: create symbols and footprints, place parts (also from Altium 365), wire and annotate schematics, Update PCB, set the stack-up and rules, route, pour copper, add mounting holes and stitching vias, run ERC and DRC, and make Gerbers, BOMs and STEP. Free in Hydrogen; bring your own AI and Altium licence.
Feature: configurable layer map for footprint creation (org default layers, incl. Altium typed component layers)
altium-bridge 0.2.111 · adom/core 4.15.3 · Windows 11 (Hydrogen local workspace)
Request
Let a user or an organization define the layer map every footprint verb writes to, so footprints Adom creates land on the org's standard layers instead of fixed mechanical layer numbers.
Today
The layer each graphic goes on is fixed in the bridge and in altium-kicad2altium:
| Logical layer | Written to today |
|---|---|
| silkscreen (F.SilkS) | Top Overlay |
| fab / assembly (F.Fab) | Mechanical 13 "Fab" |
| courtyard (F.CrtYd) | Mechanical 15 "Courtyard" |
| comments (Cmts.User) | Mechanical 1 |
| solder balls (User.9) | Mechanical 9 "Adom.SolderBalls" |
| 3D body | Mechanical 1 |
This affects altium_build_footprint, altium_footprint_from_land_pattern, altium_import_part, the wiki import and altium_add_body. An org whose standard differs has to move every graphic afterwards with altium_edit_footprint.
Our standard (attached: Default Footprint.PcbLib)
The attached library holds one footprint, "Default Footprint" ("Base Footprint with standard layers defined, Designator string, and Centroid placed at the origin"). It uses Altium's typed component layers (MECHKIND), not numbered mechanical layers:
| Logical layer | Our layer (Altium layer type) |
|---|---|
| silkscreen | Top Overlay |
| fab / assembly outline | Top Assembly (AssemblyTop) |
| courtyard | Top Courtyard (CourtyardTop) |
| component / body outline | Top Component Outline (ComponentOutlineTop) |
| centroid | Top Component Center (ComponentCenterTop), at the origin |
| designator string | Top Designator (DesignatorTop) |
| dimensions | Top Dimensions (DimensionsTop) |
| 3D body | Top 3D Body (3DBodyTop) |
The bottom pairs (Bottom Assembly, Bottom Courtyard, Bottom 3D Body, ...) and Route Tool Path are also defined.
Proposed shape
- A layer map from Adom's logical layers (
overlay,fab,courtyard,outline,centroid,designator,dimensions,body3d,comment,balls) to an Altium layer. Address the layer by layer type (MECHKIND) first, then by name, then by number, so it works on AD 24+ typed layers and on older numbered mechanical layers. - Scope: a per-user default, an org-level default (Carbon KV or a file next to the org's library), and a per-call
layerMapoverride. - Seed from a template: e.g.
altium_layer_map_from_template {libraryPath, footprint}reads a reference footprint like the attached one and proposes the map from the layers its primitives use. - Start from the template's primitives: optionally copy the template's fixed primitives (the designator string on its layer, the centroid marker) into each new footprint, so every footprint carries them.
- Report it: put the layer map used in each footprint verb's reply, so a caller can check it.
Footprints built with the current defaults should not change when no map is set.