Results 1 to 9 of 9

Thread: Macro Repeats Last Command

  1. #1
    Member
    Join Date
    2015-05
    Posts
    20
    Login to Give a bone
    0

    Default Macro Repeats Last Command

    I have a macro that is supposed to simply plot previous. Sometimes it repeats the previous or continues the previous command. Any ideas how I can stop the last command from continuing?

    ^c^c-plot;n;Model;Previous plot;00_THQ_Xerox6279.pc3;N;N;Y

  2. #2
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,420
    Login to Give a bone
    0

    Default Re: Macro Repeats Last Command

    What can cause the last command to repeat? {Enter} or in a macro, space or semicolon. My guess is that sometimes the space in 'Previous plot' is getting executed as a {Enter}. Try enclosing 'Previous plot' in double quotes.
    ^c^c-plot;n;Model;"Previous plot";00_THQ_Xerox6279.pc3;N;N;Y
    C:> ED WORKING....


    LinkedIn

  3. #3
    Member
    Join Date
    2015-05
    Posts
    20
    Login to Give a bone
    0

    Default Re: Macro Repeats Last Command

    I tried "Previous plot", 'Previous plot', and <Previous plot>. Those did not work. I am thinking the same thing, that it has to do with "Previous".

  4. #4
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,420
    Login to Give a bone
    0

    Default Re: Macro Repeats Last Command

    I didn't catch it the first time. It's been a while since I visited this subject. The prompt is asking for the name of a layout. You can't enter Previous Plot. The only way to access the previous plot is via code ( lisp, vba, .Net) or the plot dialog.
    C:> ED WORKING....


    LinkedIn

  5. #5
    Member
    Join Date
    2015-05
    Posts
    20
    Login to Give a bone
    0

    Default Re: Macro Repeats Last Command

    The macro does seem to be working. If I press CTRL+S and then run it, it works.

  6. #6
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,420
    Login to Give a bone
    0

    Default Re: Macro Repeats Last Command

    Oops disregard my last post. I was reading the prompts in the text window and misread. How are you running the macro? You sure you aren't getting an extra space at the end?
    C:> ED WORKING....


    LinkedIn

  7. #7
    Member
    Join Date
    2015-05
    Posts
    20
    Login to Give a bone
    0

    Default Re: Macro Repeats Last Command

    No, there's no space.

  8. #8
    Member
    Join Date
    2015-05
    Posts
    20
    Login to Give a bone
    0

    Default Re: Macro Repeats Last Command

    I am running it from a button in a custom toolbar. After opening and running the script, it typically opens the help menu.

  9. #9
    Member
    Join Date
    2013-12
    Posts
    5
    Login to Give a bone
    0

    Default Re: Macro Repeats Last Command

    Not sure why you are entering in printer information when all you are doing is using the previous settings?

    I've got a macro to print previous and this is what it looks like:

    Code:
    ^C^C-Plot;No;;Previous Plot;;No;No;Yes

Similar Threads

  1. Space bar repeats previous command
    By revit.wishlist1942 in forum Revit Architecture - Wish List
    Replies: 2
    Last Post: 2013-02-26, 12:13 PM
  2. 2012: Command and Macro
    By fat_max88477597 in forum AutoCAD General
    Replies: 4
    Last Post: 2012-12-06, 11:49 PM
  3. Loading a script from a command macro
    By ewhite in forum AutoCAD Customization
    Replies: 7
    Last Post: 2007-04-08, 04:44 AM
  4. Replies: 1
    Last Post: 2006-11-16, 03:09 PM
  5. Toolbar button macro repeats last command first
    By SRBalliet in forum AutoCAD Customization
    Replies: 6
    Last Post: 2006-04-03, 11:04 AM

Posting Permissions

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