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
Click Add Blank Part in the canvas toolbar or the Parts Bin header.
Select the new part and give it a Nickname.
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
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.)
Edit the JSON in the Edit Template dialog. Keys and values are case-sensitive.
Save. Closing with unsaved edits asks Discard your changes?.


Before you change interfaces, read Interfaces and Harnesses for protocol and role names.
Other template actions
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
Related pages
Request or fix a part: get your fix into the library
Last updated

