- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Recently updated from Inventor 2023 to 2026.
Apparently one of the smaller changes was made to the ThisDoc.Launch method which does not allow it to work with OneNote shortcuts so now I have to find another method.
I don't need to do any editing or whatever to the OneNote pages. This is just to open Help Guide pages that document some of my more complex iLogic tools.
So far the most promising method I've found so far is to use System.Diagnostics.Process.Start to open a shortcut that I have saved in a folder in my iLogic folder path but when I try to start the process it complains about not being able to find a file in a working directory which is being pointed to the same folder as the Inventor executable:
AddReference "System.Diagnostics.Process.dll"
Imports System.IO
Imports System.Diagnostics
Dim siLogicPath As String = iLogicVb.Automation.FileOptions.ExternalRuleDirectories(0)
siLogicPath = Left(siLogicPath, InStrRev(siLogicPath, "\"))
Dim oInfo As New ProcessStartInfo
oInfo.FileName = siLogicPath + "Shortcuts\OneNote Shortcut.lnk"
Process.Start(oInfo)
What does the working directory need to be changed to for this to work?
Or is this the wrong direction and I need to do something else to open OneNote shortcuts from iLogic?
Thanks ahead of time.
Solved! Go to Solution.