[iBoM][Added] `hide_excluded` to hide excluded *.Fab drawings.
This commit is contained in:
parent
fafd5d2f6d
commit
d4047b78c9
|
|
@ -5,9 +5,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [1.5.2] - Unreleased
|
## [1.5.2] - Unreleased
|
||||||
### Fixed
|
### Added
|
||||||
- New output:
|
- New output:
|
||||||
- `vrml` export the 3D model in Virtual Reality Modeling Language (#349)
|
- `vrml` export the 3D model in Virtual Reality Modeling Language (#349)
|
||||||
|
- iBoM:
|
||||||
|
- `hide_excluded` to hide excluded *.Fab drawings.
|
||||||
|
### Fixed
|
||||||
- PCB_Print:
|
- PCB_Print:
|
||||||
- Images not showing in custom frames. (#352)
|
- Images not showing in custom frames. (#352)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2199,6 +2199,8 @@ Notes:
|
||||||
Leave it blank for most uses, data will be extracted from the PCB.
|
Leave it blank for most uses, data will be extracted from the PCB.
|
||||||
- `group_fields`: [string=''] Comma separated list of fields that components will be grouped by.
|
- `group_fields`: [string=''] Comma separated list of fields that components will be grouped by.
|
||||||
Value and Footprint are used when nothing is specified.
|
Value and Footprint are used when nothing is specified.
|
||||||
|
- `hide_excluded`: [boolean=false] Hide components in the Fab layer that are marked as excluded by a variant.
|
||||||
|
Affected by global options.
|
||||||
- `hide_pads`: [boolean=false] Hide footprint pads by default.
|
- `hide_pads`: [boolean=false] Hide footprint pads by default.
|
||||||
- `hide_silkscreen`: [boolean=false] Hide silkscreen by default.
|
- `hide_silkscreen`: [boolean=false] Hide silkscreen by default.
|
||||||
- `highlight_pin1`: [boolean=false] Highlight pin1 by default.
|
- `highlight_pin1`: [boolean=false] Highlight pin1 by default.
|
||||||
|
|
|
||||||
|
|
@ -933,6 +933,9 @@ outputs:
|
||||||
# [string=''] Comma separated list of fields that components will be grouped by.
|
# [string=''] Comma separated list of fields that components will be grouped by.
|
||||||
# Value and Footprint are used when nothing is specified
|
# Value and Footprint are used when nothing is specified
|
||||||
group_fields: ''
|
group_fields: ''
|
||||||
|
# [boolean=false] Hide components in the Fab layer that are marked as excluded by a variant.
|
||||||
|
# Affected by global options
|
||||||
|
hide_excluded: false
|
||||||
# [boolean=false] Hide footprint pads by default
|
# [boolean=false] Hide footprint pads by default
|
||||||
hide_pads: false
|
hide_pads: false
|
||||||
# [boolean=false] Hide silkscreen by default
|
# [boolean=false] Hide silkscreen by default
|
||||||
|
|
|
||||||
|
|
@ -117,6 +117,9 @@ class IBoMOptions(VariantOptions):
|
||||||
""" Name of the extra field that indicates do not populate status.
|
""" Name of the extra field that indicates do not populate status.
|
||||||
Components with this field not empty will be blacklisted.
|
Components with this field not empty will be blacklisted.
|
||||||
IBoM option, avoid using in conjunction with KiBot variants/filters """
|
IBoM option, avoid using in conjunction with KiBot variants/filters """
|
||||||
|
self.hide_excluded = False
|
||||||
|
""" Hide components in the Fab layer that are marked as excluded by a variant.
|
||||||
|
Affected by global options """
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.add_to_doc('variant', WARNING_MIX)
|
self.add_to_doc('variant', WARNING_MIX)
|
||||||
self.add_to_doc('dnf_filter', WARNING_MIX)
|
self.add_to_doc('dnf_filter', WARNING_MIX)
|
||||||
|
|
@ -204,7 +207,7 @@ class IBoMOptions(VariantOptions):
|
||||||
self.blacklist += to_remove
|
self.blacklist += to_remove
|
||||||
# Convert attributes into options
|
# Convert attributes into options
|
||||||
for k, v in self.get_attrs_gen():
|
for k, v in self.get_attrs_gen():
|
||||||
if not v or k in ['output', 'variant', 'dnf_filter', 'pre_transform']:
|
if not v or k in ['output', 'variant', 'dnf_filter', 'pre_transform', 'hide_excluded']:
|
||||||
continue
|
continue
|
||||||
if k == 'offset_back_rotation' and version < (2, 5, 0, 2):
|
if k == 'offset_back_rotation' and version < (2, 5, 0, 2):
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue