Results 1 to 4 of 4

Thread: Open PDF from Autocad in specified application

  1. #1
    Active Member
    Join Date
    2015-08
    Posts
    98
    Login to Give a bone
    0

    Default Open PDF from Autocad in specified application

    i have a macro to open a specified pdf file. The macro works and opens the file in my default pdf application (bluebeam). what i am worried about is that not everyone may have bluebeam as their default. can i specify that i want the file to open in bluebeam instead of adobe?

  2. #2
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,803
    Login to Give a bone
    0

    Default Re: Open PDF from Autocad in specified application

    Quote Originally Posted by mitchellvoss View Post
    i have a macro to open a specified pdf file. The macro works and opens the file in my default pdf application (bluebeam). what i am worried about is that not everyone may have bluebeam as their default. can i specify that i want the file to open in bluebeam instead of adobe?
    I would think you could specify the application or just specify to open the file and whatever the default app is on that machine, it will be used.

    Here is an example of the latter.
    R.K. McSwain | CAD Panacea |

  3. #3
    Active Member
    Join Date
    2015-08
    Posts
    98
    Login to Give a bone
    0

    Default Re: Open PDF from Autocad in specified application

    that is what i am currently doing. i am looking to be able to have it open in bluebeam if the default app happens to be adobe.

  4. #4
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,803
    Login to Give a bone
    0

    Default Re: Open PDF from Autocad in specified application

    I suppose you'd have to write some code to search for the bluebeam .exe file and launch it if found, along with the file.

    Code:
    ;;; rough example - only testing for one known app location
    
    (defun c:opdf ( / filename x)
      (setq filename "Q:\\PDF\\08160.pdf")
      (if (setq x (findfile "C:\\Program Files (x86)\\Adobe\\Acrobat Reader DC\\Reader\\AcroRd32.exe"))
        (startapp x filename)
      )
    )
    R.K. McSwain | CAD Panacea |

Similar Threads

  1. How to open a drawing from Windows Application?
    By CornDawgPower in forum VBA/COM Interop
    Replies: 6
    Last Post: 2011-07-08, 08:00 PM
  2. External application - open Document
    By kv in forum Revit - API
    Replies: 1
    Last Post: 2010-11-02, 08:05 PM
  3. Replies: 15
    Last Post: 2010-09-23, 01:57 PM
  4. TrueView problem open application
    By AMD2800 in forum DWG TrueView - General
    Replies: 1
    Last Post: 2009-10-12, 03:53 PM
  5. Open application windows in certain positions on dual monitors
    By robert.1.hall72202 in forum Software
    Replies: 5
    Last Post: 2007-06-19, 01:53 PM

Tags for this Thread

Posting Permissions

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