Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Launch Adobe from Autocad Menu

8 REPLIES 8
Reply
Message 1 of 9
DustyC
298 Views, 8 Replies

Launch Adobe from Autocad Menu

I have looked at previous solutions on this topic but none of them work in my environment. I have a pulldown menu choice that will launch Adobe 8.0 reader.
The macro code is : start acrord32 ^m
This sequence works, but I can't put in any file path to our server or the local drives to open a target pdf file.
For example: start acrord32 O:\cty_files\rules.pdf ^m
Autocad stops at O:, entering a return opens the reader program but generates an error "file doesn't exist. error opening file.
If I manually type the sequence in at the command line
start acrord32 O:\cty_files\rules.pdf
it works just fine.
What am I missing?
Thanks for any replies.
8 REPLIES 8
Message 2 of 9
jsowinski
in reply to: DustyC

Hi-
I use the startapp function. Here is what I use to launch a windows application in AutoCAD.
(startapp "C:/Program Files/Adobe/Acrobat 7.0/Reader/AcroRd32.exe" "C:/MyFile.pdf")
If you do use this you'll have to write out the path of the executable file. You can use Excel and Word with this routine as well. Look in AutoCAD help for more information on startapp. Good luck.

Jim
Message 3 of 9
Anonymous
in reply to: DustyC

You need to put the path to the app

Something like this:

(startapp "C:\\Program Files\\Adobe\\Acrobat 7.0\\Reader\\AcroRd32.exe"
"O:\\cty_files\\rules.pdf")
Message 4 of 9
DustyC
in reply to: DustyC

Thanks. I typed this into the macro section on the CUI pull down entry and it didn't work. I guess it is a 2 step process. Load the defined function and then call up the command only with the macro.
Message 5 of 9
DustyC
in reply to: DustyC

Thanks, I tried that sequence also. It doesn't work on my system. I guess it requires some background configuration.
Message 6 of 9
Anonymous
in reply to: DustyC

DustyC said the following on 8/24/2007 1:54 PM:
> I have looked at previous solutions on this topic but none of them
> work in my environment. I have a pulldown menu choice that will
> launch Adobe 8.0 reader.

Try this method, which makes no assumptions regarding which application
to use, where it's located, or the presence of a properly defined .PGP file.

http://rkmcswain.blogspot.com/2005/11/launch-pdf-from-autocad.html



--
R.K. McSwain
http://rkmcswain.blogspot.com
Message 7 of 9
Anonymous
in reply to: DustyC

Here are some tips:
http://jtbworld.blogspot.com/2007/08/start-windows-application-within.html

--
Jimmy Bergmark
JTB World - Software development and consulting
Owner/Developer
http://www.jtbworld.com
http://jtbworld.blogspot.com

JTB World offers you software's, custom software development, consulting...
http://www.jtbworld.com/about.htm

JTB FlexReport (FLEXnet / FLEXlm license report tool) -
www.jtbworld.com/jtbflexreport

AutoCAD 2008
http://www.jtbworld.com/autocad2008.htm

"DustyC" wrote in message news:5700433@discussion.autodesk.com...
I have looked at previous solutions on this topic but none of them work in
my environment. I have a pulldown menu choice that will launch Adobe 8.0
reader.
The macro code is : start acrord32 ^m
This sequence works, but I can't put in any file path to our server or the
local drives to open a target pdf file.
For example: start acrord32 O:\cty_files\rules.pdf ^m
Autocad stops at O:, entering a return opens the reader program but
generates an error "file doesn't exist. error opening file.
If I manually type the sequence in at the command line
start acrord32 O:\cty_files\rules.pdf
it works just fine.
What am I missing?
Thanks for any replies.
Message 8 of 9
DustyC
in reply to: DustyC

Thanks R.K.
That Lisp routine works. Nice idea too, it works with any file that is associated in windows.
Message 9 of 9
vipinm
in reply to: DustyC

Hi,

Forget everything, try this ...

(defun c:acrord32()
(command "start" "acrord32")
(princ)
)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost