AutoCAD/Open URL Customise

Advertisement


Question
Hi,

In AutoCAD 2004 when opening hyperlinks you need

select the item > Right Click > select Hyperlink > Open

In AutoCAD 2005 to open a hyperlink you can

Select the item > Ctrl Right Click and it opens the hyperlink

Is it possible to emulate this in AutoCAD 2004 via AutoLISP or a macro?

Thanks,

Sanjay


Answer
you can start a browser with the BROWSER command. you should also be able to do something like:
(command "shell" (strcat "iexplore " "urltoopen"))

you might need to play with it a bit (put on the .exe, or provide the path to the file). be sure to leave the space in there.

AutoCAD

All Answers


Answers by Expert:


Ask Experts

Volunteer


Scott Cook

Expertise

I`ve been using AutoCAD since 1987 and programming AutoLISP nearly as long. I can answer questions about programming AutoCAD (except ARX) and production enhancement techniques. I cannot answer questions about AutoCAD crashes or DWG corruption. AutoCAD PROGRAMMING (menus, lisp) related questions only!

Experience

Since 1987. Author of Plot2000 software for for AutoCAD, http://www.plot2000.com. PROGRAMMING QUESTIONS ONLY PLEASE. Questions that are NOT related to programming or AutoCAD customization (menus and lisp only please) are outside the scope of my volunteer services and will NOT BE ANSWERED.

©2012 About.com, a part of The New York Times Company. All rights reserved.