SETVAR Equivalent... Scot-65

Discussion in 'AutoCAD' started by Scot-65, Mar 2, 2005.

  1. Scot-65

    Scot-65 Guest

    ..

    ..

    I am looking for the SETVAR equivalent for the following item:

    Tools pulldown > Options... > System tab > "Load ACAD.lsp with every drawing".

    Thanks,

    Scot-65

    ..
     
    Scot-65, Mar 2, 2005
    #1
  2. Scot-65

    Paul Turvill Guest

    ACADLSPASDOC = 1
    ___
     
    Paul Turvill, Mar 2, 2005
    #2
  3. Scot-65

    Josh Guest

    FYI, you can click the "?" button at the top right of the Options dialog
    (actually, most any dialog), pick any item on the Option dialog and get an
    info tip which often includes the equivalent system variable.

    Josh
     
    Josh, Mar 2, 2005
    #3
  4. Scot-65

    Tom Smith Guest

    ACADLSPASDOC

    I keep this at the default value, 0, because I've found it useful to
    distintinguish between things that only need to be loaded once, like doslib
    and (vl-load-com), and things that need to happen in each drawing. Having
    separate acad.lsp vs acaddoc.lsp files can be an asset.
     
    Tom Smith, Mar 2, 2005
    #4
  5. Scot-65

    Scot-65 Guest

    ..

    ..

    Tom,

    Thanks for the hint.

    1) I need this switch on so S::STARTUP can run each time.

    2) Also, I have assigned USERS1 as the personell's initials.

    3) By not loading ACAD.lsp, utilities and tools specific to this
    environment will not load in this new drawing.

    --------------
    When settings are out of alignment, the User can reset to the
    custom settings they filled out when assigned to the workstation,
    by entering thier initials at the command prompt.

    Examples include blipmode, osnap, and the commandecho
    sometomes gets out of alignment (usually the result of undoing
    a LISP routine). Additionally, OSNAP is different for each user.
    This file declares the preferences for this variable and is
    inclusive to thier station. The next station that opens a file
    that was edited by this station, new custom settings will be
    applied (I got tired of "Per" covering up "Cen", and most
    personell does not have "Nea" turned on, while the rest of
    us does).

    No, I need this switch on.

    Now, can acaddoc.lsp be used in lieu of S::STARTUP?

    Thanks for the hint.

    Scot-65

    ..
     
    Scot-65, Mar 2, 2005
    #5
  6. Scot-65

    Tom Smith Guest

    Now, can acaddoc.lsp be used in lieu of S::STARTUP?

    You're confusing a function with a file. You can locate one or more s::startup functions in any lisp file whatsoever. Obviously, by its nature, you would want it/them in a file that loads on startup. And you always want an s::startup, if found, to append itself onto any previously defined s::startup function, as shown in the help docs.

    If you want it to run in every drawing, depending on how your startup sequence works, you might put your s:startup in an mnl file that loads with the menu, or you could put it in an acaddoc.lsp file, which by default loads in every drawing. By default, acad.lsp only loads in the first drawing opened in an Acad session, unless you set ACADLSPASDOC to force non-default behavior.

    In other words, rather than forcing acad.lsp to behave like acaddoc.lsp, you could accomplish exactly the same thing by simply changing its name to acaddoc.lsp. Setting ACADLSPASDOC=1 has the effect of defeating a potentially useful disctinction between the two files.

    Some of the items you mentioned might only need to be set once, when the first drawing opens (normal acad.lsp behavior) while others might need to be set drawing by drawing (normal acaddoc.lsp behavior). Osmode, for instance, is kept in the registry rather than in individual drawings, so there's no reason to reset it more than once.
    That's a flaw in the lisp routine, which needs an error handler. With the programming flaws fixed, it's likely that most of the perceived need for this lisp routine would go away.
     
    Tom Smith, Mar 3, 2005
    #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.