• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Visual LISP, AutoLISP and General Customization

    Reply
    *ian

    start autocad with no drawing open ??

    461 Views, 2 Replies
    11-13-2001 09:26 AM
    can you start autocad with no drawing open ??
    i would think that some type of script would work or could you change your
    target on a shortcut?
    thanks
    *Doane, David

    Re: start autocad with no drawing open ??

    11-13-2001 10:23 AM in reply to: *ian
    Well, yes you can end up with no drawing if you wish, but why one would want
    to I don't know. However you may open AutoCAD with an untitled drawing
    (drawing1.dwg), and close it with a script. Here's one way, and without
    Today:

    **Shortcut**
    D:\Acad\R16\acad.exe /b D:\Acad\R16\LmsFiles\CloseAll.scr /nologo

    **CloseAll.scr**
    (setq todayVar (getvar "STARTUPTODAY"))
    (if (= todayVar 1) (setvar "STARTUPTODAY" 0) "")
    close

    Perhaps the above will give you some ideas.
    --
    Dave D

    "ian" wrote in message
    news:4852280F12CC2DA66E15AAE49006CE89@in.WebX.maYIadrTaRb...
    > can you start autocad with no drawing open ??
    > i would think that some type of script would work or could you change your
    > target on a shortcut?
    > thanks
    >
    >
    *Saadallah, Dean

    Re: start autocad with no drawing open ??

    11-14-2001 06:07 AM in reply to: *ian
    From DOTSOFT.COM:

    Starting AutoCAD 2000 with no starting drawing!

    If you would like to start AutoCAD 2000, but don't want a blank empty
    drawing, and you are not using the 'Startup Dialog' you can put this in your
    ACAD.LSP and it'll create this effect.

    (defun-q mystartup ()
    (while (eq 1 (logand 1 (getvar "CMDACTIVE"))))
    (command "_CLOSE")
    )
    (setq S::smileyfrustrated:TARTUP (append S::smileyfrustrated:TARTUP mystartup))


    --
    Dean Saadallah
    www.pendean.com
    --


    "ian" wrote in message
    news:4852280F12CC2DA66E15AAE49006CE89@in.WebX.maYIadrTaRb...
    > can you start autocad with no drawing open ??
    > i would think that some type of script would work or could you change your
    > target on a shortcut?
    > thanks
    >
    >