Documented the %X substitutions for SVG output in pcb_print

This commit is contained in:
Salvador E. Tropea 2022-04-11 17:37:03 -03:00
parent 4e659c3ddd
commit 267a38c32f
3 changed files with 3 additions and 3 deletions

View File

@ -1538,7 +1538,7 @@ Next time you need this list just use an alias, like this:
- `drill_marks`: [string='full'] What to use to indicate the drill places, can be none, small or full (for real scale). - `drill_marks`: [string='full'] What to use to indicate the drill places, can be none, small or full (for real scale).
- `format`: [string='PDF'] [PDF,SVG] Format for the output file/s. - `format`: [string='PDF'] [PDF,SVG] Format for the output file/s.
- `hide_excluded`: [boolean=false] Hide components in the Fab layer that are marked as excluded by a variant. - `hide_excluded`: [boolean=false] Hide components in the Fab layer that are marked as excluded by a variant.
- `output`: [string='%f-%i%I%v.%x'] Filename for the output PDF (%i=assembly, %x=pdf). Affected by global options. - `output`: [string='%f-%i%I%v.%x'] Filename for the output (%i=assembly, %x=pdf)/(%i=assembly_page_NN, %x=svg). Affected by global options.
- *output_name*: Alias for output. - *output_name*: Alias for output.
- `pages`: [list(dict)] List of pages to include in the output document. - `pages`: [list(dict)] List of pages to include in the output document.
Each page contains one or more layers of the PCB. Each page contains one or more layers of the PCB.

View File

@ -970,7 +970,7 @@ outputs:
format: 'PDF' format: 'PDF'
# [boolean=false] Hide components in the Fab layer that are marked as excluded by a variant # [boolean=false] Hide components in the Fab layer that are marked as excluded by a variant
hide_excluded: false hide_excluded: false
# [string='%f-%i%I%v.%x'] Filename for the output PDF (%i=assembly, %x=pdf). Affected by global options # [string='%f-%i%I%v.%x'] Filename for the output (%i=assembly, %x=pdf)/(%i=assembly_page_NN, %x=svg). Affected by global options
output: '%f-%i%I%v.%x' output: '%f-%i%I%v.%x'
# `output_name` is an alias for `output` # `output_name` is an alias for `output`
# [list(dict)] List of pages to include in the output document. # [list(dict)] List of pages to include in the output document.

View File

@ -219,7 +219,7 @@ class PCB_PrintOptions(VariantOptions):
self.output_name = None self.output_name = None
""" {output} """ """ {output} """
self.output = GS.def_global_output self.output = GS.def_global_output
""" Filename for the output PDF (%i=assembly, %x=pdf)""" """ Filename for the output (%i=assembly, %x=pdf)/(%i=assembly_page_NN, %x=svg)"""
self.hide_excluded = False self.hide_excluded = False
""" Hide components in the Fab layer that are marked as excluded by a variant """ """ Hide components in the Fab layer that are marked as excluded by a variant """
self._drill_marks = 'full' self._drill_marks = 'full'