Skip to content

script to check/adjust rectangular pads to rounded rectangles

This script checks rectangular and rounded rectangular pads in footprints and adjusts them to specified radius and ratio.

usage: change_pads_to_roundrect.py [-h] [--check-only] [--no-backup] [--no-color] [--no-adjust] [--verbose] [--radius RADIUS] [--ratio RATIO] footprint [footprint ...]

Check or adjust pad shapes to roundrect with certain radius

positional arguments:
  footprint        file name(s) of footprint(s) to be checked and/or adjusted

options:
  -h, --help       show this help message and exit
  --check-only     perform only a check, do not perform any change
  --no-backup      do not create backup files
  --no-color       do not color output
  --no-adjust      do not adjust existing roundrect pads
  --verbose, -v    create verbose output
  --radius RADIUS  define the maximum radius for the roundrect pad changes
  --ratio RATIO    define the radius ratio for the pad changes

Merge request reports