error: no function definition: DTR

Discussion in 'AutoCAD' started by ghiggins457, Mar 2, 2004.

  1. ghiggins457

    ghiggins457 Guest

    I am running a lisp routine on a laptop that uses AutoCAD 2000 and when I transfer it over to another computer that is running AutoCAD 2004, I get the following error message when trying to run the program:
    error: no function definition: DTR
    Somebody else wrote this program and I am trying to fix it up so our company can use it. Any help would be greatly appreciated. Thanks again.
     
    ghiggins457, Mar 2, 2004
    #1
  2. ghiggins457

    BillZ Guest

    Add: (load "dtr-rtd")
    to your acaddoc.lsp file for the R2004 machine so the function loads on startup.

    Bill
     
    BillZ, Mar 2, 2004
    #2
  3. These are usually the DTR and RTD functions:

    (defun DTR (a) ;Degrees to radians conversion
    (* pi (/ a 180.0)))

    (defun RTD (a) ;Radians to degrees conversion
    (* 180.0 (/ a pi)))
     
    Allen Johnson, Mar 2, 2004
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.