Add BOM info
This commit is contained in:
parent
38cfaaf333
commit
93a00cf1a1
56
syntax.md
56
syntax.md
@ -4,16 +4,16 @@
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
connectors: # dictionary of all used connectors
|
connectors: # dictionary of all used connectors
|
||||||
X1: # unique connector designator/name
|
<string>: # unique connector designator/name
|
||||||
... # connector attributes (see below)
|
... # connector attributes (see below)
|
||||||
X2:
|
<string>:
|
||||||
...
|
...
|
||||||
...
|
...
|
||||||
|
|
||||||
cables: # dictionary of all used cables and wires
|
cables: # dictionary of all used cables and wires
|
||||||
W1: # unique cable designator/name
|
<string>: # unique cable designator/name
|
||||||
... # cable attributes (see below)
|
... # cable attributes (see below)
|
||||||
W2:
|
<string>:
|
||||||
...
|
...
|
||||||
...
|
...
|
||||||
|
|
||||||
@ -23,6 +23,12 @@ connections: # list of all connections to be made
|
|||||||
... # connection set (see below)
|
... # connection set (see below)
|
||||||
-
|
-
|
||||||
...
|
...
|
||||||
|
...
|
||||||
|
|
||||||
|
additional_bom_items: # custom items to add to BOM
|
||||||
|
- <bom-item> # BOM item (see below)
|
||||||
|
...
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Connector attributes
|
## Connector attributes
|
||||||
@ -58,6 +64,12 @@ connections: # list of all connections to be made
|
|||||||
# loops and shorts (#48)
|
# loops and shorts (#48)
|
||||||
loops: <List> # TODO
|
loops: <List> # TODO
|
||||||
|
|
||||||
|
# BOM options (all optional)
|
||||||
|
ignore_in_bom: <bool> # defaults to false TODO
|
||||||
|
bom_items: # list of additional BOM entries for this cable/bundle TODO
|
||||||
|
- <bom-item> # BOM item (see below)
|
||||||
|
...
|
||||||
|
|
||||||
# auto-generation
|
# auto-generation
|
||||||
autogenerate: <bool> # optional; defaults to false; see below
|
autogenerate: <bool> # optional; defaults to false; see below
|
||||||
|
|
||||||
@ -107,6 +119,12 @@ connections: # list of all connections to be made
|
|||||||
colors: <List> # list of colors (see below)
|
colors: <List> # list of colors (see below)
|
||||||
color_code: <str> # one of the supported cable color codes (see below)
|
color_code: <str> # one of the supported cable color codes (see below)
|
||||||
|
|
||||||
|
# BOM options (all optional)
|
||||||
|
ignore_in_bom: <bool> # defaults to false TODO
|
||||||
|
bom_items: # list of additional BOM entries for this cable/bundle TODO
|
||||||
|
- <bom-item> # BOM item (see below)
|
||||||
|
...
|
||||||
|
|
||||||
# rendering information (all optional)
|
# rendering information (all optional)
|
||||||
show_name: <bool> # defaults to true
|
show_name: <bool> # defaults to true
|
||||||
show_wirecount: <bool> # defaults to true
|
show_wirecount: <bool> # defaults to true
|
||||||
@ -117,6 +135,34 @@ connections: # list of all connections to be made
|
|||||||
|
|
||||||
<!-- TODO -->
|
<!-- TODO -->
|
||||||
|
|
||||||
|
## BOM items
|
||||||
|
|
||||||
|
Connectors (both regular, and auto-generated), cables, and wires of a bundle are automatically added to the BOM,
|
||||||
|
unless the `ignore_in_bom` attribute is set to `true`.
|
||||||
|
|
||||||
|
Additional BOM entries can be generated in the sections marked `<bom-item>` above.
|
||||||
|
|
||||||
|
<!-- TODO -->
|
||||||
|
:warning: BOM items inside connectors/cables are not implemented yet, but should be soon (#50)
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
-
|
||||||
|
description: <string>
|
||||||
|
qty: <int/string> # when used in the additional_bom_items section:
|
||||||
|
# <int> manually specify qty.
|
||||||
|
# when used within a component:
|
||||||
|
# <int> manually specify qty.
|
||||||
|
# pincount match number of pins of connector
|
||||||
|
# wirecount match number of wires of cable/bundle
|
||||||
|
# connectioncount match number of connected pins
|
||||||
|
# all the following are optional:
|
||||||
|
unit: <string>
|
||||||
|
designators: <List>
|
||||||
|
manufacturer: <string>
|
||||||
|
manufacturer_part_number: <string>
|
||||||
|
internal_part_number: <string>
|
||||||
|
```
|
||||||
|
|
||||||
## Colors
|
## Colors
|
||||||
|
|
||||||
Colors are defined via uppercase, two character strings.
|
Colors are defined via uppercase, two character strings.
|
||||||
@ -202,7 +248,7 @@ attribute: |
|
|||||||
This is line 2.
|
This is line 2.
|
||||||
```
|
```
|
||||||
|
|
||||||
## Method 2
|
### Method 2
|
||||||
|
|
||||||
By using double quoted strings, `\n` within the string is converted to a new line.
|
By using double quoted strings, `\n` within the string is converted to a new line.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user