- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a lisp routine which enables me to pick a text entity on a drawing upon which the routine then finds a corresponding record, which is either a pdf or tiff file, then opens the file in an appropriate programme. The actual purpose is to open manhole card iinformation when I click on a manhole number within a sewer network.
This used to work fine with pdf's opening in Adobe Reader and tiffs opening in MS Picture Manager but since installing Office 2013 Picture Manager is no more. I am trying to open the tiffs in Photo Viewer but I realise this is run using rundll. I have copied a section of the routine below where you can see the pdf example line (which works OK) but I am struggling with the tiff line. I cant get this bit to run.
Any help would be greatly appreciated.
Many thanks
mh_path and mh_path1 are the text entities returned from picking on a text item in ACAD.)
;;;;;;__________sub to look for pdf and displays file_________________________________
(defun do_pdf ()
(findfile mh_path1) (startapp "C:\\Program Files\\Adobe\\Reader 11.0\\Reader\\AcroRd32.exe" mh_path1)
);defun do_pdf
;______sub to look for tif and displays file__________________________________
(defun do_tif ()
(findfile mh_path)(startapp "C:\\Windows\\System32\\rundll32.exe C:\\ProgramFiles\\Windows Photo Viewer\\PhotoViewer.dll", ImageView_Fullscreen mh_path)
);defun do_tif
Solved! Go to Solution.