[Position][Added] Option to remove KiKit auxiliary footprints
- Enabled by default - KiKit is failing to mark them properly Solves #516
This commit is contained in:
parent
05ca6f72bd
commit
37f8a7067c
|
|
@ -53,6 +53,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
- Basic support for regular list items (#480)
|
- Basic support for regular list items (#480)
|
||||||
- Position:
|
- Position:
|
||||||
- Experimental support for gerber position files (#500)
|
- Experimental support for gerber position files (#500)
|
||||||
|
- KiKit auxiliary footprints used for panels excluded (#516)
|
||||||
- Help for the error levels
|
- Help for the error levels
|
||||||
- Warnings:
|
- Warnings:
|
||||||
- Explain about wrong dir/output separation (#493)
|
- Explain about wrong dir/output separation (#493)
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,7 @@ Parameters:
|
||||||
- ``dnf_filter`` :index:`: <pair: output - position - options; dnf_filter>` [string|list(string)='_none'] Name of the filter to mark components as not fitted.
|
- ``dnf_filter`` :index:`: <pair: output - position - options; dnf_filter>` [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.
|
A short-cut to use for simple cases where a variant is an overkill.
|
||||||
|
|
||||||
|
- ``exclude_strange_footprints`` :index:`: <pair: output - position - options; exclude_strange_footprints>` [boolean=true] Removes suspicious footprints. Currently removes footprints generated by KiKit to create the panel.
|
||||||
- ``gerber_board_edge`` :index:`: <pair: output - position - options; gerber_board_edge>` [boolean=false] Include the board edge in the gerber output.
|
- ``gerber_board_edge`` :index:`: <pair: output - position - options; gerber_board_edge>` [boolean=false] Include the board edge in the gerber output.
|
||||||
- ``include_virtual`` :index:`: <pair: output - position - options; include_virtual>` [boolean=false] Include virtual components. For special purposes, not pick & place.
|
- ``include_virtual`` :index:`: <pair: output - position - options; include_virtual>` [boolean=false] Include virtual components. For special purposes, not pick & place.
|
||||||
Note that virtual components is a KiCad 5 concept.
|
Note that virtual components is a KiCad 5 concept.
|
||||||
|
|
|
||||||
|
|
@ -91,6 +91,8 @@ class PositionOptions(VariantOptions):
|
||||||
""" When generating the CSV quote all values, even numbers """
|
""" When generating the CSV quote all values, even numbers """
|
||||||
self.gerber_board_edge = False
|
self.gerber_board_edge = False
|
||||||
""" Include the board edge in the gerber output """
|
""" Include the board edge in the gerber output """
|
||||||
|
self.exclude_strange_footprints = True
|
||||||
|
""" Removes suspicious footprints. Currently removes footprints generated by KiKit to create the panel """
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self._expand_id = 'position'
|
self._expand_id = 'position'
|
||||||
|
|
||||||
|
|
@ -272,6 +274,9 @@ class PositionOptions(VariantOptions):
|
||||||
for m in sorted(GS.get_modules(), key=lambda c: _ref_key(c.GetReference())):
|
for m in sorted(GS.get_modules(), key=lambda c: _ref_key(c.GetReference())):
|
||||||
ref = m.GetReference()
|
ref = m.GetReference()
|
||||||
logger.debug('P&P ref: {}'.format(ref))
|
logger.debug('P&P ref: {}'.format(ref))
|
||||||
|
if self.exclude_strange_footprints and ref.startswith('KiKit_'):
|
||||||
|
logger.debug('- KiKit auxiliary, excluded')
|
||||||
|
continue
|
||||||
value = None
|
value = None
|
||||||
# Apply any filter or variant data
|
# Apply any filter or variant data
|
||||||
if comps_hash:
|
if comps_hash:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue