skidl.tools.kicad7.bboxes module¶
Calculate bounding boxes for part symbols and hierarchical sheets.
- skidl.tools.kicad7.bboxes.calc_hier_label_bbox(label, dir)[source]¶
Calculate the bounding box for a hierarchical label.
- skidl.tools.kicad7.bboxes.calc_symbol_bbox(part, **options)[source]¶
Return the bounding box of the part symbol.
Calculates bounding box from the symbol’s draw_cmds including pins, graphical objects (polyline, circle, rectangle, arc), and text. Coordinates are converted from library mm to placement-engine mils.
- Parameters:
part – Part object for which a bounding box will be created.
options (dict) – Various options to control bounding box calculation.
- Returns:
[overall_bbox, unit1_bbox, unit2_bbox, …] in mils.
- Return type:
List of BBoxes
