tolstack

1D Tolerance Stack
Name: tolstack

Category: Tool

Description:
    A column-based, plain-text language for 1D tolerance-stack analysis. One line per part/dimension; blank lines are ignored.

Note:
    Available only in the script editor (the tolstack language mode).

Syntax:
    OP  DIM  NUM1  NUM2  NUM3  [comment…]

Operators:
    ADD  Contribute the dimension positively to the stack.
    SUB  Contribute the dimension negatively to the stack.

Dimensions:
    SYM (nom ±tol)           Symmetric tolerance — nominal ± tolerance.
    DEV (nom ±upper ±lower)  Deviation tolerance — nominal ±upper ±lower.
    LIM (lim1 lim2)          Limit dimensions — upper and lower limits, any order.

Examples:
    SUB  DEV  0.7500 +0.0100  -0.0150 Part A
    ADD  SYM  3.2500  0.0025          Part B
    ADD  SYM  0.0000  0.0725          Part C
    SUB  SYM  1.7500  0.0150          Part D
    ADD  SYM  0.7500  0.0050          Part E
    ADD  LIM  0.1350  0.1200          Part F
    SUB  SYM  1.2500  0.0050          Part G

        ┌────────────────────────────────────────────────────────────────────────────────────┐
        │                              Tolerance Stack Analysis                              │
        ├─────┬───────────────────────────────┬─────────┬────────┬────────┬───────┬──────────┤
        │ OP  │ DIM                           │     LSL │    MID │    USL │     % │ Comments │
        ├─────┼───────────────────────────────┼─────────┼────────┼────────┼───────┼──────────┤
        │ Sub │ DEV  0.7500  +0.0100  -0.0150 │  0.7350 │ 0.7475 │ 0.7600 │ 10.41 │ Part A   │
        │ Add │ SYM  3.2500  ±0.0025          │  3.2475 │ 3.2500 │ 3.2525 │  2.09 │ Part B   │
        │ Add │ SYM  0.0000  ±0.0725          │ -0.0725 │ 0.0000 │ 0.0725 │ 60.41 │ Part C   │
        │ Sub │ SYM  1.7500  ±0.0150          │  1.7350 │ 1.7500 │ 1.7650 │ 12.50 │ Part D   │
        │ Add │ SYM  0.7500  ±0.0050          │  0.7450 │ 0.7500 │ 0.7550 │  4.17 │ Part E   │
        │ Add │ LIM  0.1350   0.1200          │  0.1200 │ 0.1275 │ 0.1350 │  6.24 │ Part F   │
        │ Sub │ SYM  1.2500  ±0.0050          │  1.2450 │ 1.2500 │ 1.2550 │  4.17 │ Part G   │
        │     │                               │         │        │        │       │          │
        │     │ Worst Case                    │  0.2600 │ 0.3800 │ 0.5000 │       │          │
        │     │ RSS                           │  0.3042 │ 0.3800 │ 0.4558 │       │          │
        │     │ Bender Method (1.5 * RSS)     │  0.2663 │ 0.3800 │ 0.4937 │       │          │
        └─────┴───────────────────────────────┴─────────┴────────┴────────┴───────┴──────────┘