running lsp's inside an lsp

Discussion in 'AutoCAD' started by latour, Nov 30, 2004.

  1. latour

    latour Guest

    I have never had this problem before. But on a new computer (to me) AutoCAD 2005 was just installed on it and I am having trouble with my shortcut .lsp's. I set up a lisp file that would purge everything, audit the drawing, delete all the layer filters, flattens the drawing, saves it and closes the drawing. The problem is, when I run the program, it says that my layer filter delete file (LFD.lsp is in my startup suite) is an invalid command and errors out. However, if I manually type LFD, it works fine.
    How can I get a lisp file to recognize another lisp file?

    Thanks for the help.
     
    latour, Nov 30, 2004
    #1
    1. Advertisements

  2. latour

    Tom Smith Guest

    How can I get a lisp file to recognize another lisp file?

    Probably you're trying to use (command "lfd"). It's not a command. Assuming
    the function is named c:lfd, you call it via (c:lfd). The file must already
    be loaded, as you said it was.
     
    Tom Smith, Nov 30, 2004
    #2
    1. Advertisements

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.