If you cannot get the legacy tlen.lsp to work, don’t fight it. Use AutoCAD’s built-in or a modern LISP: