Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Edit part templates

Create blank parts, edit a part template's ProtoPart JSON, swap a part's template and attach datasheets, images and other artifacts

Goal

Model a part the library doesn't have, or correct a template on your board.

A template is a board's copy of a part definition, written in the open ProtoPart format. Every part that uses it on the board picks up your edits. Edits stay on this board; they don't change the library.

Start from a blank part

  1. Click Add Blank Part in the canvas toolbar or the Parts Bin header.

  2. Select the new part and give it a Nickname.

  3. Define its interfaces and resources by editing the template JSON (below), or ask ProtoBot: "Model this as a Pololu QTR-MD-05A from its datasheet".

A blank part shows the Blank badge until it has interfaces or resources, then Unvalidated. See Part status.

Edit the template JSON

  1. Select a part and open the template's ⋮ menu in the Inspector, then Edit Part. (In the Parts Bin's In Project tab, use Edit Template.)

  2. Edit the JSON in the Edit Template dialog. Keys and values are case-sensitive.

  3. Save. Closing with unsaved edits asks Discard your changes?.

The Edit Template dialog showing a part template's ProtoPart JSON in a code editor
The Edit Template dialog.

Before you change interfaces, read Interfaces and Harnesses for protocol and role names.

Other template actions

Action
Where
What it does

Duplicate Template

Inspector ⋮, In Project ⋮

Make an independent copy to change without affecting other parts

Export Part / Download Template

Inspector ⋮, Parts Bin ⋮

Save the definition as a file

Import Part

Parts Bin header

Load a definition file

Swap template

Inspector, Template Status

Replace this part's template with another, keeping its position, nickname and the wiring that still fits. An Interface remap step maps old interfaces to new ones

Delete Template

In Project ⋮

Remove the template; the dialog lists parts that use it

Artifacts

The Artifacts tab on a part holds links and files for its template: Image, Code / Repository, CAD, Datasheet or Generic Link. Add one with Add Artifact. In a row's menu, Set as preview uses an image as the part's thumbnail.

Custom fields

Add Custom Field on a part adds your own property (Field Key, Display Label, a String, Number or Boolean Type, and an Initial Value).

Common failures

My edit made a harness red

You changed an interface's protocol or role, or removed a function the harness used. Check the DRC reason and fix the template or the harness.

"Template out of sync"

The part's template changed since the copy you're working from. Choose Keep my version or Add a fresh copy.

Last updated