Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
benjamin_nicholas46UJL
130 Views, 2 Replies

WebBrowserDialog Crashes Inventor

I have tried using the sample program and another version suggested by another user in an old post, however neither are working and as soon as the macro runs it crashes?

Private oWebBrowserDialog As WebBrowserDialog

Sub DismissWebBrowser()
    Set oWebBrowserDialog = Nothing
End Sub

Sub WebBrowserDialogSample()
    ' Create a WebBrowserDialog
    Set oWebBrowserDialog = ThisApplication.WebBrowserDialogs.Add("MyBrowser", False)
    oWebBrowserDialog.WindowState = kNormalWindow
    
    ' Nagigate to a web site
    Call oWebBrowserDialog.Navigate("http://www.autodesk.com")

    ' Play a tutorial video if you have the Interactive Tutorial installed
    ' Call oWebBrowserDialog.Navigate("C:\Users\Public\Documents\Autodesk\Inventor 2017\Interactive Tutorial\en-US\Fundamentals\Video\Drawings.webm")

    ' Delete it - commenteted
    ' oWebBrowserDialog.Delete
End Sub

 

Labels (2)