ENTER in scripts

Discussion in 'AutoCAD' started by Kirk_P, Jul 22, 2003.

  1. Kirk_P

    Kirk_P Guest

    I am converting some scripts from R14 and I need the script to contain an ENTER so that the default is accepted when stepping through the detailed plot configuration. How do I include an ENTER in a script? Thanks
     
    Kirk_P, Jul 22, 2003
    #1
  2. Kirk_P

    Kirk_P Guest

    Although I have my scripts working again, I am finding that is is pretty obnoxious having to code everything to a seperate line, for example having "plot", "y", "n" all on seperate lines, where "plot y n" would be much neater. The problem comes back to handling the time when I need the default (ENTER) and the only way I can find to get it to work is breaking the script into individual lines. Is there some way to get the ENTER into an inline command?
     
    Kirk_P, Jul 22, 2003
    #2
  3. Kirk_P

    Method_One Guest

    use a semicolon for "enter" just as you would for a menu or toolbar macro.
     
    Method_One, Jul 22, 2003
    #3
  4. Kirk_P

    PF Guest

    Ah- I ran into that, too - just a while back... and didn't remember the
    unknown source of frustration....

    Some of the coding for scripts/ Lisp/ menus/ macros.... change over time...
    and sometimes the documentation gets truly crappy in the migration... like,
    htey "forgot" to make any!

    I find a bit of Lisp to be useful in this occasion... (yes, you can inject
    Lisp into a macro, if you haven't tried yet)

    Qsave
    Zoom e
    (setq marker "start-Plot-Command")
    Plot
    y
    n
    (setq marker "End-Plot-Command")


    It also allows you to troubleshoot....
    Command: !marker
    start-Plot-Command
     
    PF, Jul 24, 2003
    #4
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.