TAPDIE, a generalized macro written for the APT numerical control system, cuts threads in stock too big for conventional machines or for which conventional methods are unsuitable. TAPDIE computes the machine tool path necessary and the information is passed on to a post-processor which produces a control tape