Open Webpage in Inventor

Open Webpage in Inventor

woodstylee3
Advocate Advocate
543 Views
2 Replies
Message 1 of 3

Open Webpage in Inventor

woodstylee3
Advocate
Advocate

Is there a way to open a webpage in Inventor (i.e. opens as a document embedded in the Inventor Window) via the api.

I appreciate this can be done via the team web settings, but am trying to create an Inventor addin that lists a collection of webpages from our sharepoint site in a custom browser pane, and selecting an item in the browser pane, will display the linked page in Inventor.

 

This is to represent our design best-practice guide in the cad system along the parts/assemblies being drawn.

 

0 Likes
544 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

Hope this is what you are looking for.

 

Sub TeamWeb()
Dim oApp As Application
    Set oApp = ThisApplication
Dim oTeamWeb As String
    oTeamWeb = oApp.FileOptions.TeamWebFullFilename
Dim oTeamWebNew As String
    oTeamWebNew = "https://www.google.com" 'You can change the Link based on the click here
    oApp.FileOptions.TeamWebFullFilename = oTeamWebNew
    ThisApplication.CommandManager.ControlDefinitions("AppTeamWebCmd").Execute
    oApp.FileOptions.TeamWebFullFilename = oTeamWeb
    Set oApp = Nothing
End Sub
0 Likes
Message 3 of 3

woodstylee3
Advocate
Advocate

Thanks,

I had considered this as an approach. I was hoping there was a way to directly open the remote page, without resetting the teamweb setting for each link I clicked on, if no other way will go this way.

 

Many thanks for the reply.

 

Ian

 

 

0 Likes