github is weird
This commit is contained in:
parent
892d2b0f29
commit
5ac2688d2a
@ -419,35 +419,37 @@ additional_bom_items:
|
|||||||
|
|
||||||
## 09 - Hidden wire information and using a template for nice display as a DIN6771 document
|
## 09 - Hidden wire information and using a template for nice display as a DIN6771 document
|
||||||
|
|
||||||
|
What will this 'tutorial' show you?
|
||||||
|
|
||||||
|
##Hidden wire information
|
||||||
* Sometimes the box around the wire will be distrating
|
* Sometimes the box around the wire will be distrating
|
||||||
* unfurtionaly some fields can not (yet) be suppressed:
|
* unfurtionaly some fields can not (yet) be suppressed:
|
||||||
# length
|
length
|
||||||
# gauge
|
gauge
|
||||||
# color_code
|
color_code
|
||||||
# manufacturer
|
manufacturer
|
||||||
# mpn
|
mpn
|
||||||
# supplier
|
supplier
|
||||||
# spn
|
spn
|
||||||
# pn
|
pn
|
||||||
|
##Nice uniform template
|
||||||
* Formatting the end result in a DIN-6771 template makes for a very nice result.
|
* Formatting the end result in a DIN-6771 template makes for a very nice result.
|
||||||
* using a template ensures all your wiring diagrams will have a uniform look
|
* using a template ensures all your wiring diagrams will have a uniform look
|
||||||
* the template can be found at: /home/[USER]/.local/lib/python3.10/site-packages/wireviz/templates/din-6771.html
|
* the template can be found at: /home/[USER]/.local/lib/python3.10/site-packages/wireviz/templates/din-6771.html
|
||||||
|
##Adding images to your components
|
||||||
|
* Add an image to your connector (or wire)
|
||||||
|
|
||||||
|
|
||||||
* Ad an image to your connector (or wire)
|
|
||||||
|
|
||||||
{{tutorial09.yml}}
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
connectors:
|
connectors:
|
||||||
X1: &template1 # define a template for later use
|
X1: &template1 # define a template for later use
|
||||||
type: Molex KK 254
|
type: Molex KK 254
|
||||||
pincount: 4
|
pincount: 4
|
||||||
subtype: female
|
subtype: female
|
||||||
# manufacturer: '<a href="https://www.molex.com/">Molex</a>' # set manufacter name
|
manufacturer: '<a href="https://www.molex.com/">Molex</a>' # set manufacter name
|
||||||
# mpn: '<a href="https://www.molex.com/molex/products/part-detail/crimp_housings/0022013047">22013047</a>' # set manufacturer part number
|
mpn: '<a href="https://www.molex.com/molex/products/part-detail/crimp_housings/0022013047">22013047</a>' # set manufacturer part number
|
||||||
# supplier: Digimouse
|
supplier: Digimouse
|
||||||
# spn: 1234
|
spn: 1234
|
||||||
image:
|
image:
|
||||||
src: MolexKK254.jpg
|
src: MolexKK254.jpg
|
||||||
# add a list of additional components to a part (shown in graph)
|
# add a list of additional components to a part (shown in graph)
|
||||||
@ -467,20 +469,26 @@ connectors:
|
|||||||
X2:
|
X2:
|
||||||
<<: *template1 # reuse template
|
<<: *template1 # reuse template
|
||||||
pn: CON4 # set an internal part number for just this connector
|
pn: CON4 # set an internal part number for just this connector
|
||||||
|
subtype: male
|
||||||
|
image:
|
||||||
|
src: MolexKK254MALE.jpg
|
||||||
|
|
||||||
X3:
|
X3:
|
||||||
<<: *template1 # reuse template
|
<<: *template1 # reuse template
|
||||||
|
subtype: male
|
||||||
|
image:
|
||||||
|
src: MolexKK254MALE.jpg
|
||||||
cables:
|
cables:
|
||||||
W1:
|
W1:
|
||||||
wirecount: 4
|
wirecount: 4
|
||||||
length: 1
|
# length: 1
|
||||||
gauge: 0.25 mm2
|
# gauge: 0.25 mm2
|
||||||
color_code: IEC
|
# color_code: IEC
|
||||||
manufacturer: CablesCo
|
# manufacturer: CablesCo
|
||||||
mpn: ABC123
|
# mpn: ABC123
|
||||||
supplier: Cables R Us
|
# supplier: Cables R Us
|
||||||
spn: 999-888-777
|
# spn: 999-888-777
|
||||||
pn: CAB1
|
# pn: CAB1
|
||||||
#############
|
#############
|
||||||
show_name: false
|
show_name: false
|
||||||
show_wirecount: false
|
show_wirecount: false
|
||||||
@ -520,13 +528,15 @@ tweak:
|
|||||||
shape: none # Hide the surrounding frame
|
shape: none # Hide the surrounding frame
|
||||||
fontsize: "12" # Reduce the space needed for text
|
fontsize: "12" # Reduce the space needed for text
|
||||||
fontcolor: white # Same as background to hide the text
|
fontcolor: white # Same as background to hide the text
|
||||||
|
X1:
|
||||||
|
<<: *wireTweak
|
||||||
|
## W1 uses the gauge and length field, they can not be suppressed at the moment. There was an issue #221
|
||||||
W1:
|
W1:
|
||||||
<<: *wireTweak
|
<<: *wireTweak
|
||||||
###############
|
###############
|
||||||
|
|
||||||
###### the din template, A4 format
|
###### the din template, A4 format
|
||||||
metadata: &metadata
|
metadata:
|
||||||
title: Power supplies
|
title: Power supplies
|
||||||
pn: PSU
|
pn: PSU
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user