Results 1 to 5 of 5

Thread: AcadDoc.lsp

  1. #1
    Active Member
    Join Date
    2004-12
    Posts
    80
    Login to Give a bone
    0

    Default AcadDoc.lsp

    I want to set the command "-scalelistedit" to run every time a file is opened. This is the set of commands I want CAD to execute upon opening:

    -scalelistedit
    r
    y
    e

    That will run scalelistedit from the command line, R for RESET, Y for YES, E for EXIT. I tried creating a acaddoc.lsp file to do it that way but I can't seem to get it to work. Can someone explain what is my best option for accomplishing this?

    Thanks

  2. #2
    I could stop if I wanted to
    Join Date
    2003-12
    Location
    Pittsburgh, PA
    Posts
    355
    Login to Give a bone
    0

    Default Re: AcadDoc.lsp

    Put this line in your acaddoc.lsp file
    Code:
    (command "-scalelistedit" "r" "y" "e")
    not tested

  3. #3
    Wish List Manager BrenBren's Avatar
    Join Date
    2000-11
    Location
    150700
    Posts
    3,439
    Login to Give a bone
    0

    Default Re: AcadDoc.lsp

    Quote Originally Posted by Shizzjr View Post
    I want to set the command "-scalelistedit" to run every time a file is opened. This is the set of commands I want CAD to execute upon opening:

    -scalelistedit
    r
    y
    e

    That will run scalelistedit from the command line, R for RESET, Y for YES, E for EXIT. I tried creating a acaddoc.lsp file to do it that way but I can't seem to get it to work. Can someone explain what is my best option for accomplishing this?

    Thanks
    A quick way to test what you were given by lpseifert is to copy (command "-scalelistedit .... ) to your command line and see if does what you want it to do

  4. #4
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,803
    Login to Give a bone
    0

    Exclamation Re: AcadDoc.lsp

    Quote Originally Posted by lpseifert View Post
    Put this line in your acaddoc.lsp file
    Code:
    (command "-scalelistedit" "r" "y" "e")
    not tested
    Or better yet...
    Code:
    
    (command "._-scalelistedit" "_r" "_y" "_e")
    

    While were are here, use this for a Menu Macro: ^c^c._-scalelistedit;_R;_Y;_E;
    R.K. McSwain | CAD Panacea |

  5. #5
    Certified AUGI Addict jaberwok's Avatar
    Join Date
    2000-12
    Location
    0,0,0 The Origin
    Posts
    8,570
    Login to Give a bone
    0

    Default Re: AcadDoc.lsp

    Just for completeness - your original format is correct for a script.

Similar Threads

  1. where did acaddoc.lsp go?
    By cwjean76 in forum AutoLISP
    Replies: 7
    Last Post: 2010-09-22, 08:28 PM
  2. acaddoc.lsp
    By ted.evans in forum AutoCAD General
    Replies: 4
    Last Post: 2010-01-22, 07:10 PM
  3. ACADDOC.LSP
    By dbrownson in forum AutoLISP
    Replies: 20
    Last Post: 2008-02-06, 04:52 AM
  4. acaddoc.lsp?
    By Spanky in forum AutoLISP
    Replies: 24
    Last Post: 2008-01-27, 01:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •