list all setq's?

Discussion in 'AutoCAD' started by C Witt, May 6, 2004.

  1. C Witt

    C Witt Guest

    I know I have seen a command like this before, but can't remember where.

    I need a command that will give me a complete lisp of all the setq's
    used in a lisp command.. (for the rare occasion where i don't have the
    actual code to look at).

    Could someone point me in the right direction ... or post the code??

    TIA
     
    C Witt, May 6, 2004
    #1
  2. C Witt

    Tom Smith Guest

    Look into atoms_family in help.
     
    Tom Smith, May 6, 2004
    #2
  3. C Witt

    C Witt Guest

    "no topics found" for anything like that...
     
    C Witt, May 6, 2004
    #3
  4. C Witt

    R.K. McSwain Guest


    Look here:

    \LDD_Install_Dir\Help\acad_vlr.chm

    Then open the "A" category, scroll down to (atoms-family)
     
    R.K. McSwain, May 6, 2004
    #4
  5. C Witt

    C Witt Guest

    I don't have LDD... vanil 2K5

     
    C Witt, May 6, 2004
    #5
  6. C Witt

    C Witt Guest

    and i don't have that file in my 2K5 help folder..
     
    C Witt, May 6, 2004
    #6
  7. C Witt

    PG. Guest

    Open VLIDE
    Click on Help-> Visual LISP Help Topics
    AutoLISP Reference
    Expand 'A' and look for 'atoms-family'
     
    PG., May 7, 2004
    #7
  8. C Witt

    C Witt Guest

    either I am using it wrong, or that is not what i want.

    when i use that command.. it returns the lisp "commands"..

    ie:
    (defun c:sd ().....)

    it returns ("c:sd")

    it's this I want..

    (defun c:sd (/ test1 test2 test3 test4)....)
    it should return ("test1" "test2"...) and any other "setq" that is
    created in any of my lisp commands.

    follow?
     
    C Witt, May 7, 2004
    #8
  9. C Witt

    ECCAD Guest

    (atoms-family 0)
    a-put-ToleranceSuppressLeadingZeros + vla-put-ExtLine2EndPoint *
    acViewport2Vertical vla-AngleFromXAxis :VLR-endInsert FITSTR2LEN
    vla-get-ModelType vla-get-ObjectName vla-AddLeader vla-get-Enable SLIDE_IMAGE ....

    Try it at command line:
    (atoms-family 0)

    :)

    Bob
     
    ECCAD, May 7, 2004
    #9
  10. C Witt

    Tom Smith Guest

    That's called a variable. If a variable is declared local to a function, as
    in your example, then no, you can't find its name from outside the function.
    Because it doesn't exist except during the execution of the function. That's
    why it's called a local variable. If you don't have the source code, you
    can't look at the inner workings of a compiled function. The only way you're
    going to know what names are used for local variables is to look at the
    code.
     
    Tom Smith, May 7, 2004
    #10
  11. C Witt

    R.K. McSwain Guest

    That is the first mention of your ACAD version.

    Try:
    \Install_Dir\Help\acad_dev.chm
     
    R.K. McSwain, May 7, 2004
    #11
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.