Set option in acad.lsp

Discussion in 'AutoCAD' started by Adam, Jun 4, 2004.

  1. Adam

    Adam Guest

    I've been working with AutoCAD for years, and I finally have a desire to
    learn something about LISP.

    For now, I'd like to place code in acad.lsp to select the options setting
    for "Retain changes to xref layers." Does anyone have any suggestions?
    (While I'm at it, what is your favorite book for learning to lisp?)

    Thank you in advance,
    Lost In Stupid Parenthesis
     
    Adam, Jun 4, 2004
    #1
  2. You are talking about a system variable, so the first step is to identify
    the variable in question. See if you can find the answer in the help files.

    --
    R. Robert Bell


    I've been working with AutoCAD for years, and I finally have a desire to
    learn something about LISP.

    For now, I'd like to place code in acad.lsp to select the options setting
    for "Retain changes to xref layers." Does anyone have any suggestions?
    (While I'm at it, what is your favorite book for learning to lisp?)

    Thank you in advance,
    Lost In Stupid Parenthesis
     
    R. Robert Bell, Jun 4, 2004
    #2
  3. VISRETAIN is the system variable name you want. It's pretty simple to set
    it to a particular value, if you just want it to be one of them without
    regard for what it is when you open a drawing.

    (setvar "VISRETAIN" <whichever-value-you-want>)

    Kent Cooper, AIA
     
    Kent Cooper, AIA, Jun 4, 2004
    #3
  4. Adam

    Adam Guest

    splendid. thanks for your help.

     
    Adam, Jun 5, 2004
    #4
  5. Adam

    Chip Harper Guest

    I'm using AutoLSIP Programming Principals and Techniques to learn it, 1 of
    my favorite sites is
    www.afralisp.com

    Of course I've learned alot just following threads here. It's like having
    free access to some of the best minds from around the world.
     
    Chip Harper, Jun 5, 2004
    #5
  6. Adam

    devitg Guest

    as it seem to be you are in kindergarden LISP degrre

    I sugest you to visit this place

    http://courses.home.att.net/autolisp/

    AFRALISP is like the a Holy Book , but you need to learn the very LISP basic before you can get all the amazing tips of AFRALISP.
     
    devitg, Jun 6, 2004
    #6
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.