• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    AutoCAD LT

    Reply
    Distinguished Contributor
    KateMorrical
    Posts: 125
    Registered: ‎11-07-2012
    Accepted Solution

    Launch PDF Reader with AutoCAD LT

    241 Views, 7 Replies
    01-03-2013 02:27 PM

    There *is* a command you can use to launch PDF documents from a button in AutoCAD LT, isn't there? (I do mean "open", in Acrobat Reader or equivalent.)

     

    I know there used to be one, because I have macros that used START to open a PDF file. However, they were built for AutoCAD LT 2007, and START is not a known command in AutoCAD LT 2010.

     

    (This is embarassing for two reasons. First, I wrote the darn thing! Why can't I remember how I did it? And second...this icon should launch the CAD manual....and no one but me has noticed that it's broken. :smileysad:)

    --
    Kate Morrical
    Digital Design Manager
    Washington, DC
    BIMmuse.com
    Please use plain text.
    Mentor
    Posts: 230
    Registered: ‎02-04-2009

    Re: Launch PDF Reader with AutoCAD LT

    01-03-2013 05:13 PM in reply to: KateMorrical

    Does the ai_STARTAPP Command work for you?

     

    For example

    ^C^Cai_startapp;"c:/users/John/Documents/AOSRE50300[1].PDF"

     

    Don't forget to use / (slash) instead of \ (backslash) when specifying the path because as you know backslash is used for wait for user input in macros.

    Please use plain text.
    *Expert Elite*
    pendean
    Posts: 15,039
    Registered: ‎11-06-2003

    Re: Launch PDF Reader with AutoCAD LT

    01-03-2013 05:22 PM in reply to: Johneng

    Missed it by 9-minutes :smileysad:

     

    _ai_startapp is what I use.


    Dean Saadallah Blog | Facebook | RSS | Twitter | PINS
    Please use plain text.
    Distinguished Contributor
    KateMorrical
    Posts: 125
    Registered: ‎11-07-2012

    Re: Launch PDF Reader with AutoCAD LT

    01-04-2013 06:35 AM in reply to: Johneng

    Bingo! But was START ever a valid option? I've been trying to find out, but "START AutoCAD LT command" doesn't exactly generate good search results. :-) I seem to remember some sort of switch, but so much has happened between now and when I first wrote the macro that it might as well have been done by somebody else.

    --
    Kate Morrical
    Digital Design Manager
    Washington, DC
    BIMmuse.com
    Please use plain text.
    *Expert Elite*
    Charles_Shade
    Posts: 6,985
    Registered: ‎04-10-2005

    Re: Launch PDF Reader with AutoCAD LT

    01-04-2013 08:11 AM in reply to: KateMorrical

    An LT Unlimited tip; I believe, from a couple years ago:

     

    "Macro revisioning to newer platforms may require that ^R be added to the beginning of the Macro."

    (Tough this has nothing to do wih the needed Command. :smileywink:)

    Regards, Charles Shade             Win8 FAQ
    CSHADEDESIGN|AUTOCAD LT|LT-KB|DYNAMIC BLOCKS
    Please mark Accept as Solution if your question is answered. Kudos gladly accepted.
    Please use plain text.
    Distinguished Contributor
    KateMorrical
    Posts: 125
    Registered: ‎11-07-2012

    Re: Launch PDF Reader with AutoCAD LT

    01-04-2013 10:16 AM in reply to: Charles_Shade

    Admittedly I didn't try that one. :-)

    --
    Kate Morrical
    Digital Design Manager
    Washington, DC
    BIMmuse.com
    Please use plain text.
    *Expert Elite*
    pendean
    Posts: 15,039
    Registered: ‎11-06-2003

    Re: Launch PDF Reader with AutoCAD LT

    01-04-2013 10:19 AM in reply to: KateMorrical
    Are you thinking of the START entry in the PGP file? LT OOTB has no entries for it but AutoCAD does.

    Dean Saadallah Blog | Facebook | RSS | Twitter | PINS
    Please use plain text.
    Distinguished Contributor
    KateMorrical
    Posts: 125
    Registered: ‎11-07-2012

    Re: Launch PDF Reader with AutoCAD LT

    01-04-2013 10:49 AM in reply to: pendean

    Ah yes, entirely possible. At any rate it's close enough to put it in the "solved" category...thanks.

    --
    Kate Morrical
    Digital Design Manager
    Washington, DC
    BIMmuse.com
    Please use plain text.