WireViz icon indicating copy to clipboard operation
WireViz copied to clipboard

[Feature[ Per connector or wire BOM replacement

Open JarrettR opened this issue 1 year ago • 1 comments

It would be useful to allow connectors or wires to describe their own BOM entry.

For example, I have an overview sheet that describes a system at a very high level. One of the parts is a PCB subassembly, displayed as a connector with the format:

  JB:
    type: 'JB'
    pinlabels: [AC, DATA, TRANSFER]
    show_pincount: false
    show_name: false

Visually, this is perfectly acceptable for my purposes: image

Ideally I'd be able to choose what is displayed on the BOM, however. Connector, JB doesn't accurately describe what is going on.

An easy (I think?) fix for this could just be another parameter added to the connector and cable types. ignore_in_bom already exists, but something like bom_description could be added, too. With both cable and connector types.

In this case, I'd likely add bom_description: PCB Subassembly to my connector.

As it is, I'll be setting ignore_in_bom and adding an additional BOM item, so much appreciated that a workaround already exists!

This could solve people wanting to use WireViz with other languages, as well, but that's out of scope of my particular issue.

JarrettR avatar Nov 06 '24 19:11 JarrettR

Thank you for describing your use case, and suggesting such a new feature. I think your use case is a bit similar to what is described in #142, and that your suggestion (or some variation of it) should be consider for both issues.

kvid avatar Nov 07 '24 08:11 kvid