Load lisp from a script?

Discussion in 'AutoCAD' started by Big 'D', May 26, 2004.

  1. Big 'D'

    Big 'D' Guest

    I have a lisp routine that highlights objects (called find_data). I want to set an icon for this. What is the most effecient way to load this lisp from a lisp? I will select previous for another function after running the above lisp so will I need to store the results? Below is what I have so far:

    (DEFUN C:zc()
    ; RUN LISP routine "C:find_SYMDATA" and store the result in RSLT.
    (setq RSLT (C:SYMDATA))
    (command "copy" "p")

    Thanks for the help.
    D
     
    Big 'D', May 26, 2004
    #1
  2. Big 'D'

    ECCAD Guest

    (if (not C:ZC)
    (progn
    (if (findfile "C:/find_symdata.lsp")
    (load "c:/find_symdata.lsp")
    ); end if
    ); end progn
    ); end if
    (c:zc)
     
    ECCAD, May 26, 2004
    #2
  3. Big 'D'

    ECCAD Guest

    And,
    Call from 'icon' button..
    ID_GETSELECTION [_Button("Select Obj", xxxx.bmp, xxxx.bmp)]^c^c(load "c:/find_data.lsp")(C:zc)
     
    ECCAD, May 26, 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.