How to run script or macro

Discussion in 'AutoCAD' started by Xolo, Mar 3, 2004.

  1. Xolo

    Xolo Guest

    Help,

    I'm trying to run either a script or a macro via a toolbar button but have
    no idea how to go about getting it to work properly. Here's the keystrokes
    that I am trying to reproduce.

    (ENTER)
    ALT+D
    AUTOORTHO.spp
    ALT+O

    Could someone help me with this? I just want to try to save some time.

    Thanks a lot,

    Xolo
     
    Xolo, Mar 3, 2004
    #1
  2. Xolo

    Rudy Tovar Guest

    ^c^c^p(command "script" "l" <file_name>)
     
    Rudy Tovar, Mar 3, 2004
    #2
  3. Xolo

    Rudy Tovar Guest

    Sorry about that, too used to lisp...

    ^c^c^p(command "script" "file_name")
     
    Rudy Tovar, Mar 3, 2004
    #3
  4. Xolo

    Xolo Guest

    Rudy,

    Thanks for the info, but I wasn't clear about what I was asking. What I want
    to know is, what do I need typed in my script file to allow these commands
    to run like I want.

    For and ENTER, what do I type?
    For and ALT plus another key what do I type?
    For a file name, then another alt plus another key (without an enter in
    between them) what do I type?

    Sorry about the mix up.

    Can someone help me with this problem?

    Thanks in advance,

    Xolo
     
    Xolo, Mar 3, 2004
    #4
  5. Xolo

    Rudy Tovar Guest

    I think you're going about it the wrong way then.
     
    Rudy Tovar, Mar 3, 2004
    #5
  6. What are you attempting to accomplish with these commands?
    Once we know your intent, we might be able to assist better.
     
    Allen Johnson, Mar 3, 2004
    #6
  7. Xolo

    ECCAD Guest

    Xolo,
    Just a suggestion. Produce a lisp file, and load it from the Toolbar macro. In the Lisp, you can do anything you need.
    [toolbar]^c^c(load "mylisp.lsp");
    In Lisp:
    (command ""); produce a Enter key
    (command "_line" pause pause "")
    or whatever.

    What do you need the sequence to do ? Exactly:

    Bob
     
    ECCAD, Mar 3, 2004
    #7
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.