×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Acad 2005 - Open a browser from Autocad

Acad 2005 - Open a browser from Autocad

Acad 2005 - Open a browser from Autocad

(OP)
I want to be able to open a web browser direct to a certain website from autocad and preferably from toolpaletts. This can be useful for product catalogues and with the toolpaletts being shared by all the users its a better way than direct to favourites etc.

Any ideas?

RE: Acad 2005 - Open a browser from Autocad

On the command line typr "browser".

RE: Acad 2005 - Open a browser from Autocad



(command "BROWSER" "http://www.autodesk.com")


and from the ACADX site...
---------------------------------------------------------------
ShellExecute can be used to launch the application associated with any registered file type but I'll concentrate specifically on launching the default browser or email client. Add the following code to a standard module or class module in your project:

Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _
    (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, _
     ByVal lpParameters As String, ByVal lpDirectory As String, _
     ByVal nShowCmd As Long) As Long
Private Const SW_SHOW = 5
Private Const SW_SHOWDEFAULT = 10
Private Const SW_SHOWMAXIMIZED = 3
Private Const SW_SHOWMINIMIZED = 2
Private Const SW_SHOWMINNOACTIVE = 7
Private Const SW_SHOWNA = 8
Private Const SW_SHOWNOACTIVATE = 4
Private Const SW_SHOWNORMAL = 1

Public Sub LaunchBrowser(sURL As String, Optional State as Long = SW_SHOW)

    ShellExecute 0&, "Open", sURL, 0&, 0&, State

End Sub

 

Now when you want to launch the browser, just call LaunchBrowser with the address you wish to visit. To launch the default email client, pass a mailto: URL.

"Everybody is ignorant, only on different subjects." — Will Rogers

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources