Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

start autocad with no drawing open ??

4 REPLIES 4
Reply
Message 1 of 5
Anonymous
1049 Views, 4 Replies

start autocad with no drawing open ??

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
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: Anonymous

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
>
>
Message 3 of 5
Anonymous
in reply to: Anonymous

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::STARTUP (append S::STARTUP 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
>
>
Message 4 of 5
kylei7449
in reply to: Anonymous

I know this is an old post, but it's helpful notheless. Try setting your STARTUP to 2. CAD will open with no default drawing. However, I am unable to run ScriptPro with this setting.

 

If anyone has a solution to use ScriptPro and have it ONLY open your target drawing(s) and not open the default "drawing1" would be helpful. (it halts the process awaiting user input to close) Thx

Message 5 of 5
scot-65
in reply to: kylei7449

Suggest setvar SDI to 1.
(I know this is not the answer you are looking for...)

Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.


Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost