Author Topic: running a script on startup  (Read 2242 times)

0 Members and 1 Guest are viewing this topic.

ELOQUINTET

  • Guest
running a script on startup
« on: October 20, 2004, 08:52:35 AM »
hey i wanna a script to run on startup but the help info isn't clear to me. what do i need to do for this to happen?

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
running a script on startup
« Reply #1 on: October 20, 2004, 08:58:55 AM »
(command "script" "scriptfile.scr")

Put it in the Acad.lsp, acaddoc.lsp or acad200xdoc.lsp. alternatively, you can write it to it's own file, name it a lisp, then add that lisp to the startup suite.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

hendie

  • Guest
running a script on startup
« Reply #2 on: October 20, 2004, 09:00:30 AM »
or
Quote
The /b switch designates a script to run after AutoCAD starts. To invoke a script when you start AutoCAD, use the following syntax:

acad [drawing file] /b script

The script file must be listed after the /b switch on the command line; an SCR file type is assumed. If AutoCAD can't find the script file, it reports that it can't open the file.
Scripts can be used to set up drawing parameters in a new drawing file. For example, the following command creates a new drawing called widget and runs the script called setup.scr:

acad widget /b setup

When the script has finished, the Command prompt is displayed.

ELOQUINTET

  • Guest
running a script on startup
« Reply #3 on: October 20, 2004, 09:08:15 AM »
ok that works fine for me but is there anyway to have it run on everyone's machine without sitting down at each station and setting it up? that's what i really wonder?

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
running a script on startup
« Reply #4 on: October 20, 2004, 09:10:30 AM »
NOPE
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

hendie

  • Guest
running a script on startup
« Reply #5 on: October 20, 2004, 09:10:38 AM »
ehmn.. isn't that a different question from the one you first asked ?

ELOQUINTET

  • Guest
running a script on startup
« Reply #6 on: October 20, 2004, 09:17:43 AM »
so are you saying i can't ask two?  :lol:  that's the thing i'd like to give everyone the tools i have but really i'm not a cad manager and don't have time to do that and draft too. and update everyone's machines as i get new stuff. was just wondering sorry  :P

hendie

  • Guest
running a script on startup
« Reply #7 on: October 20, 2004, 09:26:36 AM »
No, what I was getting at was that you asked one question (which was answered) then immediately followed that by another, completely diferent question, but connected to the first (?)

Had you asked
Quote
i wanna a script to run on startup and I would like to be able to to have it run on everyone's machine without sitting down at each station and setting it up

it would have
1) saved you having to ask another question
2) allowed us to answer your question more completely in the first place

ELOQUINTET

  • Guest
running a script on startup
« Reply #8 on: October 20, 2004, 10:11:57 AM »
ha yeah right   :oops: