Skip to content
Ohmstead
Download

Create a part and its connectors

Step by step, add a new part to the Codex, group its pins into connectors, make an in-line connector, and place it in a project.

Every component in a project points at a Codex part, so a device that isn't in the Codex yet starts here. This page builds two parts from the example: an accelerator pedal sensor with a 3-pin plug, and a free-hanging 3-pin in-line connector. For what each field means, see Components & the Codex.

Open Codex in the top bar and search the Parts tab first (Search parts, mfg, part no.). If someone already added the part, use it. If a built-in or shared part is close, open it and press Fork to edit to get your own copy, which is faster than starting from nothing.

Check the Manufacturers tab too. A part must pick a manufacturer from the list, so add a missing one with New manufacturer first (name, a short code for the badge, a brand color).

  1. On the Parts tab, press New part.
  2. Fill in the header fields. All of them are required:
    • Name: what you'd call it on a drawing, e.g. APPS Hall sensor 0–5V.
    • Manufacturer: pick from the list.
    • Part / catalog number: the maker's number, e.g. SS-APPS-3.
    • Category: sensor here. The category picks the block's icon and which extra fields show up (plc adds Module slots, terminal adds block data, connector adds housing fields).
    • Description: one line, e.g. Pedal position sensor, 5V supply, ratiometric output.
  3. Set Function if the part has one (relay, input, power supply…). A sensor needs none, so leave it at None. If you do pick one, Roles opens in the terminal table; see Function and terminal roles.

Press Add terminal once per terminal. Each row needs:

Column Example Notes
Terminal / pin A The label printed on the device. Unique within its connector.
Connection type Other How a wire lands: Screw, Push-in, Spring, RJ45, DB9, M12, USB or Other (crimp pins, solder cups).
Default signal 5VDC (+) The signal a wire from this terminal gets when the row doesn't say. Missing one? Add it on the Signal types tab.
Wires 1 Leave at 1 unless the terminal really takes two. Extra wires go through a terminal strip.
Load (A) / Rated (A) 0.01 Optional. What the terminal draws, or the most it supplies. Wire and fuse sizing use them.

For the pedal sensor: A 5V reference, B signal, C sensor ground.

A part's terminals are loose until you give them a connector.

  1. Type the same name in the Connector column of each pin that belongs to the plug. Use the label printed on the device, or X1, X2… when there's none. For the sensor, put X1 on A, B and C.
  2. Add terminal after a pin continues the same connector with the next pin, so a long connector is quick to fill.
  3. A Connectors table appears under the terminals, one row per connector with its pin count. Set:
    • Gender: Male (pins) or Female (socket). The sensor's plug is male.
    • Keying: the coding, e.g. A or M12 A. The sensor is keyed A, to match the VCU's sensor ports.

A connector can also record where each cavity sits on its mating face, so harness drawings and the Harness view draw the real face instead of a grid in pin order. Press Set layout… in the connector's row and pick a pattern:

  • D-sub: 9, 15, 25, 37 or 50 contacts, with the standard pitch and numbering.
  • Grid: rows, columns and pitch, numbered row by row, column by column (pin headers: odd pins on one row, even on the other), or back along each next row (U).
  • Ring: contacts around a circle, numbered clockwise from the top, with an optional center contact.
  • Custom: type each cavity's position in millimetres. Edit these positions by hand starts from the pattern on screen.

Only D-sub is a fixed standard here. Makers number other housings their own way, so match the preview against the maker's drawing. The face is shown looking into it. Layouts are drawn for the male face; a female connector's face is mirrored, and changing the gender flips it. Pins named 1, 2, 3… go to their numbered position. Other names (A, B, C) take the positions in order.

A part can have several connectors and loose terminals side by side. The example's VCU has power and CAN on loose terminals, four 3-pin ports X1–X4, and an 8-pin rear harness X5.

In wires and cables, a pin is addressed TAG:CONNECTOR.PIN: B1:X1.2.

Press Add to Codex. If anything is missing, the bar at the bottom lists it (Still needed: …) and the fields turn red. Once saved, the button reads Save part for later edits.

On Pro and Student plans a new part is Private until you switch it to Public in the part's header. On the Free plan every part is public.

An in-line connector hangs on a harness instead of sitting on a device, like the plug that joins a sensor's pigtail to the main loom. It's a part of its own:

  1. New part, and set Category to connector.
  2. Under Contacts and accessories, set This part is to A housing (has pins).
  3. Add its pins as terminals, all with the same Connector name, e.g. X1 with pins 1, 2, 3.
  4. In the Connectors table, set the housing's Gender and Keying.
  5. Optional: pick the crimp contact and wire seal parts it uses, so they land in the BOM.
  6. Add to Codex.

Contacts and wire seals are parts too: a connector part whose This part is is set to Contact or Wire seal. They have no terminals.

In a project, open the Codex panel, search the part and press Add to project. It gets the next free tag (B1, X10…). Then:

Changes you save to the part later reach every project that uses it.

From an AI assistant, the same steps are search_codex, then save_part with each terminal's connector, gender, keying and, optionally, a layout pattern: see MCP.