-
I'd like to set a text variable named I have a KiBot config similar to the following: preflight:
set_text_variables:
- name: VARIANT
text: '%V'
variants:
- name: my_variant
comment: "a comment"
type: kibom
file_id: _my_variant
variant: my_variant
pre_transform: _var_rename
- name: another_variant
comment: "another comment"
type: kibom
file_id: _another_variant
variant: another_variant
pre_transform: _var_rename
outputs:
- name: schematic_pdf
comment: Export the schematic to PDF
type: pdf_sch_print
dir: +/Schematic
options:
# [string|list(string)='_none'] Name of the filter to mark components as not fitted.
# A short-cut to use for simple cases where a variant is an overkill
dnf_filter: _kibom_dnf_BOM
# [boolean=true] Include the frame and title block
frame: true
# [boolean=false] Generate a monochromatic PDF
monochrome: false
# [string='%f-%i%I%v.%x'] Filename for the output PDF (%i=schematic, %x=pdf). Affected by global options
output: '%f-%i%I%v.%x' However, when I output the schematic PDF with the CLI option Is it possible to pass the variant into KiCad as a text variable? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
FYI, here's what I see in the KiBot debug output:
It seems like |
Beta Was this translation helpful? Give feedback.
-
Hi @cdwilson ! |
Beta Was this translation helpful? Give feedback.
-
@set-soft I just had a thought about having the With variants, it seems that there are two approaches to generating customized outputs for each variant:
I'm currently doing the 1st option (specify variant via CLI), so it's OK that the variant is set once in the preflight at the beginning. However, if somebody wanted to define a config that generates outputs for multiple variants (2nd option), then having the variant set in the preflight might be problematic (since Right now, I'm OK with |
Beta Was this translation helpful? Give feedback.
-
As @set-soft mentioned in #233 (reply in thread), support for this was added in 1f1a56e
|
Beta Was this translation helpful? Give feedback.
As @set-soft mentioned in #233 (reply in thread), support for this was added in 1f1a56e