macro problem

Discussion in 'AutoCAD' started by tnguyen1005, Mar 25, 2005.

  1. tnguyen1005

    tnguyen1005 Guest

    this macro:
    ^C^C-insert;RS-R1;\$M=$(*, $(getvar,USERR1),1);;;\\;-insert;RS-R3;CEN;\$M=$(*, $(getvar,USERR1),1);;\
    When I put it in Mymenu.mnu file, it will work in 2005Lt but not in full 2005.
    When I take out semicolon infront of -insert, It will work both Lt and Full in menu Button. (^C^C-insert;RS-R1;\$M=$(*, $(getvar,USERR1),1);;;\\-insert;RS-R3;CEN;\$M=$(*, $(getvar,USERR1),1);;\)
    What is it about this semicolon that make Full version does not work in Mymenu.mnu or in Button ?
     
    tnguyen1005, Mar 25, 2005
    #1
  2. tnguyen1005

    ECCAD Guest

    In Full Version, the semicolon acts like you pushed the
    Enter key (at that point) in the expanded command.
    Either a (space) or a ";" can be used. Spaces are much
    harder to 'see' when you are looking for errors.
    In your particular 'insert' ..you have already finished the
    'command'...and when you supply another ";" (after) that,
    Acad would attempt to execute the 'last' command..the 'insert', again, and feed in the rest of the macro
    as (input) ... which makes it fail.
    Once you get the macro to work in both menus, just leave it
    that way.

    Bob
     
    ECCAD, Mar 25, 2005
    #2
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.