Skip to content

Harnesses

A physical assembly that contains a set of electrical circuits that satisfies a channel map. Can also contain other parts and instructions about how to be built.


How to define a new harness

  1. Make a folder for the part number of your harness somewhere on your computer. Click Build in Harnice, which will generate an example harness that you can then edit.

    Building a project
    1. In Harnice, click New project…. You do not need a rev folder yet.

    2. Fill in part number, revision (1 is fine), project type, and a description, then click OK. Harnice creates the folders and an example you can edit.

    3. Click Build to generate the rest of the project files.

  2. Edit the attributes of your new harness.

    Editing the Attributes of a Project
    1. Navigate to the device folder, find the new rev folder you just made, open *-attributes.json.
    2. Change the default reference designator here, as well as any other attributes you may want to record.
    3. Click Build again.

If the harness was created from a system position, build instructions already import that harness. Connector and M85049 backshell policy belong on the system as connector_chooser and m85049_chooser; the harness default build rules call them after the import.

File Structure

Reference the files in your project by calling fileio.path("file key") from your script. They'll automatically use this structure:

fileio.dirpath("part_directory")           |-- yourpn/
                                               |-- earlier revs/
fileio.path("revision history")                |-- revhistory.csv
fileio.dirpath("rev_directory")                L-- your rev/
fileio.dirpath("networks")                         |-- networks/
fileio.path("flattened network")                   |   |-- yourpn-revX-flattened_network.csv
fileio.path("chosen network")                      |   |-- yourpn-revX-chosen_network.json
fileio.path("available network")                   |   |-- yourpn-revX-available_network.json
fileio.path("chosen entity list")                  |   L-- yourpn-revX-chosen_entity_list.json
fileio.dirpath("generated_svgs")                   |-- generated_svgs/
fileio.path("flattened network svg")               |   |-- yourpn-revX-flattened_network.svg
fileio.path("circuits overlay")                    |   |-- yourpn-revX-circuits_overlay.svg
fileio.path("cable overlay")                       |   L-- yourpn-revX-cable_overlay.svg
fileio.path("build instructions")                  |-- yourpn-revX-build_instructions.py
fileio.path("instances list")                      |-- yourpn-revX-instances_list.tsv
fileio.path("library history")                     |-- yourpn-revX-library_import_history.tsv
fileio.dirpath("instance_data")                    L-- instance_data/