Variant Renamer

This filter implements the VARIANT:FIELD=VALUE renamer to get FIELD=VALUE when VARIANT is in use.
As an example: a field named V1:MPN with value 1N4001 will change the field MPN to be 1N4001 when the variant in use is V1.
Note that this mechanism can be used to change a footprint, i.e. VARIANT:Footprint assigned with Diode_SMD:D_0805_2012Metric will change the footprint when VARIANT is in use. Of course the footprints should be similar, or your PCB will become invalid.

  • comment : [string] (default: '') A comment for documentation purposes.

  • name : [string] (default: '') Used to identify this particular filter definition.

  • force_variant : [string] (default: '') Use this variant instead of the current variant. Useful for IBoM variants.

  • separator : [string] (default: ':') Separator used between the variant and the field name.

  • variant_to_value : [boolean] (default: false) Rename fields matching the variant to the value of the component.