Skip to content

DRAW-46 Leader into a small part off its centre, not diagonal, or clipped by the outline

Severity Status Implementation
suggestion runs in better_erc mid, depends on NET-26

Data it needs: drawing geometry, part classes.

Looks at. The schematic drawing (geometry), graphic lines.

Rule: a note about a part points at it. For a leader ending at a small part (within drawing.leader.reach; R, C, diode, TVS, up to DRAW-46.max_pins pins): the last segment must be a 45° diagonal within drawing.leader.angle_slack, its line must pass within drawing.leader.aim of the centre of the body, and the tip must stop drawing.leader.clear from the outline, not on or inside it. The gap is measured along the leader's line, not straight to the box: a tip 0.449 mm off on both axes is 0.635 mm. Leaders to a block's rectangle and to larger parts are out of scope.

Settings

Set them in the project file under [checks."DRAW-46"], or for one run with --set DRAW-46.NAME=VALUE. A name that starts with drawing. is shared by several checks and is set under that name alone.

Setting Default Meaning
drawing.leader.clear 0.635 mm gap from a leader's tip to the part's outline
drawing.leader.aim 2.54 mm how far from the body's centre the line of a leader's last segment may pass
drawing.leader.angle_slack 3 degrees how far a leader's last segment may be off 45 degrees
drawing.leader.reach 5.08 mm how far from a leader's tip a part counts as what it points at
DRAW-46.max_pins 4 pins of the largest part a leader goes into on a diagonal
drawing.note.colour_slack 8 counts difference per colour channel a note box's or leader's stroke may have from its colour

Test schematics

Each schematic below is in test_schematics/sources. The block under it is what berc check --only DRAW-46 reports on it.

draw-46_leader_aim

The test schematic draw-46_leader_aim The test schematic draw-46_leader_aim

  suggestion DRAW-46 #t1v   Leader from x 96.52 y 25.4 into R2 body: its last segment is 45 degrees off a diagonal
                            sheet /, item R2 body
                            fix: end the leader on a 45 degree segment aimed at the body's centre, clear of the outline
  suggestion DRAW-46 #794   Leader from x 121.5 y 25.4 into R3 body: its line passes 3.14 mm from the body's centre
                            sheet /, item R3 body
                            fix: end the leader on a 45 degree segment aimed at the body's centre, clear of the outline
  suggestion DRAW-46 #7yj   Leader from x 142.66 y 25.4 into R4 body: its tip is on or inside the outline
                            sheet /, item R4 body
                            fix: end the leader on a 45 degree segment aimed at the body's centre, clear of the outline