Custom Menu to load pdf guides

Discussion in 'AutoCAD' started by Keith White, Apr 16, 2004.

  1. Keith White

    Keith White Guest

    I have tried numerous ways to add to my menu the ability to open the pdf
    guides that come with Autocad/ADT. What I want is to have a menu item
    within my custom menu that will automatically load Adobe Acrobat and then
    load the pdf document in question. I am at a loss. I have tried to modify
    a copied line from the help portion of the menu which loads a web page, but
    this does not work.

    ID_AUGI [&Autodesk User Group International]^C^C^P(progn(command
    "_browser" (findfile "augi.htm"))(princ)) ^P

    The above line is from the help portion of the menu that I have tried to use
    as a starting point.


    Thank you for any help.

    Keith White
     
    Keith White, Apr 16, 2004
    #1
  2. Keith White

    zeha Guest

    (startapp (vl-registry-read "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\AcroRd32.exe" "")(findfile"Myfile.pdf"))
     
    zeha, Apr 19, 2004
    #2
  3. Keith White

    Keith White Guest

    Thank you for your reply. I will work on this later tonight when I am less
    busy.

    Thanks again,

    Keith White


    "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App
    Paths\\AcroRd32.exe" "")(findfile"Myfile.pdf"))
     
    Keith White, Apr 20, 2004
    #3
  4. Keith White

    bob.at Guest

    Keith,

    if the pdf extension is correctly assigned to acrobat reader you must not go the way with the registry key. You can use:

    (command "start" (findfile "myfile.pdf"))

    bob.at
     
    bob.at, Apr 20, 2004
    #4
  5. Keith White

    Keith White Guest

    Very nice. That is exactly what I needed (along with some other things :)).
    Some of our computers have the full version of Acrobat, and others only have
    the reader. Now there is no problems loading a pdf regardless of the
    version of Acrobat. I also needed to change the name of my custom support
    directory so that it did not include any spaces in the name. Windows
    (command prompt window) could not find the file if my support directory had
    spaces in the name.

    Thanks again. This works great.

    Keith White

    go the way with the registry key. You can use:
     
    Keith White, Apr 20, 2004
    #5
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.