SCRIPT HELP

Discussion in 'AutoCAD' started by MR.DEE, Mar 7, 2005.

  1. MR.DEE

    MR.DEE Guest

    I want to run the script I created on start up. I am under the impression that you need to do this with the properties of the shortcut icon. this is what I typed in but doesn't work can someone tell me what I'm doing wrong.
    ""C:\Program Files\Autodesk\MDT 2005\UserDataCache\ /B H:\DOCUMENTATION\USERS\SCRA\STARTUP"

    Thanks
     
    MR.DEE, Mar 7, 2005
    #1
  2. MR.DEE

    Josh Guest

    For one, there's no reference to the acad.exe (you'll have to figure that
    out)...and maybe add the extenstion of the script (don't know if that's
    really necessary)....and I believe you use quotes like so in the TARGET box
    of the properties for the shortcut:

    "C:\Program Files\Autodesk\MDT 2005\acad.exe" /B
    "H:\DOCUMENTATION\USERS\SCRA\STARTUP.scr"


    that you need to do this with the properties of the shortcut icon. this is
    what I typed in but doesn't work can someone tell me what I'm doing wrong.
     
    Josh, Mar 7, 2005
    #2
  3. MR.DEE

    mr.dee Guest

    ok what I put in the shortcut looks right according to what yu have said, also according to the help menu. So why doesn't it seem to do anything. What I want to have happen is have this script run every time I open a existing dwg or start a new dwg. Maybe this isn't the best way to do that. Any other suggestions would be appreicated
     
    mr.dee, Mar 8, 2005
    #3
  4. MR.DEE

    Mikel Martin Guest

    You stated; "What I want to have happen is have this script run every time I
    open a existing dwg or start a new dwg".

    I beleive (Not Possitive) the startup you are using (in the short cut) only
    runs when you start AutoCAD. If AutoCAD is already running and you are
    opening a file what you are attempting to run will not work.

    If you want this to run every time you open a file you should add it to the
    Startup function in the Acaddoc.lsp

    --
    Mikel Martin
    INCAT

    www.incat.com



    also according to the help menu. So why doesn't it seem to do anything. What
    I want to have happen is have this script run every time I open a existing
    dwg or start a new dwg. Maybe this isn't the best way to do that. Any other
    suggestions would be appreicated
     
    Mikel Martin, Mar 8, 2005
    #4
  5. MR.DEE

    MR.DEE Guest

    That makes sense, but how do ?I add it to that. I have no idea how to write a lisp function. can I just add the script to the bottom of the acaddoc.lsp page? I would think I would need to tell it to load and run it every time, that's what I don't know how to do.
     
    MR.DEE, Mar 8, 2005
    #5
  6. rather than use the shortcut acad provides, make a new one by hand.
    then do the command line switches as mentioned.
    the acad provided shortcut is special or something.
    It rides the short bus to work.

    "MR.DEE" <>
    |>I want to run the script I created on start up. I am under the impression that you need to do this with the properties of the shortcut icon. this is what I typed in but doesn't work can someone tell me what I'm doing wrong.
    |> ""C:\Program Files\Autodesk\MDT 2005\UserDataCache\ /B H:\DOCUMENTATION\USERS\SCRA\STARTUP"
    |>
    |>Thanks

    James Maeding
    jmaeding at hunsaker dot com
    Civil Engineer/Programmer
     
    James Maeding, Mar 9, 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.