The selftest's hand calculations: every value it expects, and why.
Lengths are mm, volumes mm³. The block is sketched on the Top Plane, so in
model axes it spans x -20..20, y 0..10 (the extrude) and z -10..10.
Attributes
BLOCK_BOTTOM_POINT
module-attribute
BLOCK_BOTTOM_POINT = [-15.0, 0.0, 0.0]
BLOCK_BOX_MM
module-attribute
BLOCK_BOX_MM = [BLOCK_X_MM, BLOCK_HEIGHT_MM, BLOCK_Z_MM]
BLOCK_VOLUME_MM3
module-attribute
BLOCK_VOLUME_MM3 = BLOCK_X_MM * BLOCK_Z_MM * BLOCK_HEIGHT_MM
COMPONENT_COUNT
module-attribute
DRAWING_VIEW_COUNT
module-attribute
FILLET_EDGE
module-attribute
FILLET_EDGE = '0,0.01,0.01'
FILLET_RADIUS_MM
module-attribute
FILLET_VOLUME_MM3
module-attribute
FILLET_VOLUME_MM3 = HOLE_VOLUME_MM3 - (1 - math.pi / 4) * FILLET_RADIUS_MM ** 2 * BLOCK_X_MM
HOLE_RADIUS_MM
module-attribute
HOLE_VOLUME_MM3
module-attribute
HOLE_VOLUME_MM3 = BLOCK_VOLUME_MM3 - math.pi * HOLE_RADIUS_MM ** 2 * BLOCK_HEIGHT_MM
HOLE_WALL_POINT
module-attribute
HOLE_WALL_POINT = [HOLE_RADIUS_MM, BLOCK_HEIGHT_MM / 2, 0.0]
LENGTH_TOLERANCE_MM
module-attribute
LENGTH_TOLERANCE_MM = 0.01
MATE_COUNT
module-attribute
PIN_BOTTOM_POINT
module-attribute
PIN_BOTTOM_POINT = [0.0, 0.0, 0.0]
PIN_BOX_MM
module-attribute
PIN_BOX_MM = [2 * PIN_RADIUS_MM, PIN_LENGTH_MM, 2 * PIN_RADIUS_MM]
PIN_LENGTH_MM
module-attribute
PIN_RADIUS_MM
module-attribute
PIN_SIDE_POINT
module-attribute
PIN_SIDE_POINT = [PIN_RADIUS_MM, PIN_LENGTH_MM / 2, 0.0]
PIN_VOLUME_MM3
module-attribute
PIN_VOLUME_MM3 = math.pi * PIN_RADIUS_MM ** 2 * PIN_LENGTH_MM
VOLUME_TOLERANCE
module-attribute
VOLUME_TOLERANCE = 0.0001