See the top rated post in this thread. Click here

Results 1 to 6 of 6

Thread: Button Macro Help

  1. #1
    100 Club
    Join Date
    2007-05
    Location
    Fort Worth, Texas Cowtown USA
    Posts
    139
    Login to Give a bone
    0

    Default Button Macro Help

    I'm trying to use the following line in my button macro and it hangs after "E:" any suggestions?

    Code:
    -INSERT;"E:\2007.000.000\2007.012.xxx\_Elec Auto\BHB-LOGO.dwg";0,0;;;
    From command promt after running
    Command: -INSERT
    Enter block name or [?]: "E:*Cancel*

  2. #2
    100 Club
    Join Date
    2006-11
    Location
    UTAH
    Posts
    135
    Login to Give a bone
    1

    Default Re: Button Macro Help

    Quote Originally Posted by ahefner
    I'm trying to use the following line in my button macro and it hangs after "E:" any suggestions?

    Code:
    -INSERT;"E:\2007.000.000\2007.012.xxx\_Elec Auto\BHB-LOGO.dwg";0,0;;;
    From command promt after running
    Command: -INSERT
    Enter block name or [?]: "E:*Cancel*
    Autocad interprets the "\" character as a "pause for user input". In other words, after that E: it's waiting for you to tell it what to do next. If you change the "\" into "/" throughout the whole string, it should help.

  3. #3
    AUGI Addict .T.'s Avatar
    Join Date
    2000-12
    Location
    Lost
    Posts
    1,473
    Login to Give a bone
    0

    Default Re: Button Macro Help

    Quote Originally Posted by ahefner
    I'm trying to use the following line in my button macro and it hangs after "E:" any suggestions?

    Code:
    -INSERT;"E:\2007.000.000\2007.012.xxx\_Elec Auto\BHB-LOGO.dwg";0,0;;;
    From command promt after running
    Command: -INSERT
    Enter block name or [?]: "E:*Cancel*
    In macros the backslash works as a pause, so use forward slashes instead of backslashes in file names. And you need to watch how many arguments that are needed (I think you are missing a semicolon at the end).

    HTH

  4. #4
    AUGI Addict .T.'s Avatar
    Join Date
    2000-12
    Location
    Lost
    Posts
    1,473
    Login to Give a bone
    1

    Default Re: Button Macro Help

    Quote Originally Posted by mike.127154
    Autocad interprets the "\" character as a "pause for user input". In other words, after that E: it's waiting for you to tell it what to do next. If you change the "\" into "/" throughout the whole string, it should help.
    Dang, you beat me to it.

  5. #5
    100 Club
    Join Date
    2007-05
    Location
    Fort Worth, Texas Cowtown USA
    Posts
    139
    Login to Give a bone
    0

    Default Re: Button Macro Help

    Thanks fellas, I knew it had to be something easy.

  6. #6
    100 Club
    Join Date
    2006-11
    Location
    UTAH
    Posts
    135
    Login to Give a bone
    0

    Default Re: Button Macro Help

    Quote Originally Posted by timcreary
    Dang, you beat me to it.
    Early bird catches the worms?

    Quote Originally Posted by ahefner
    Thanks fellas, I knew it had to be something easy.
    Anytime Hef.

Similar Threads

  1. Display from button macro
    By Liamnacuac in forum AutoCAD CUI Menus
    Replies: 2
    Last Post: 2011-05-23, 09:27 PM
  2. Button macro
    By thomas.stright in forum AutoLISP
    Replies: 1
    Last Post: 2009-09-23, 01:45 PM
  3. Inventor macro button
    By gerrard.hickson in forum VBA/COM Interop
    Replies: 7
    Last Post: 2009-03-22, 11:00 PM
  4. Macro in button is failing
    By JeremiahM in forum AutoLISP
    Replies: 4
    Last Post: 2009-01-29, 12:53 AM
  5. VBA button macro won't run
    By CADKitty in forum VBA/COM Interop
    Replies: 10
    Last Post: 2006-05-25, 07:47 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
  •