If you are building an add in for Inventor and want to setup your window to be modeless and always on top of Inventor itself, like a toolbar, you need to set the Owner property of the window itself and you can use the value stored in the “MainFrameHWND” property of the Inventor application object passed to your addin.
The not so straight forward part is that the Owner property expects a reference to a Window object and all we have is the handle to the Inventor window.
public partial class MyAddinWindow : Window
public MyAddinWindow(int inventorWindowHandle)
// setup loaded event
Loaded += (s, e) =>
WindowInteropHelper wih = new WindowInteropHandler(this);
wih.Owner = (IntPtr) inventorWindowHandle;
Well, it has been a while since I have written anything here. It is time to get back at it a bit. One of the highlights of my year last year was being able to present at the Autodesk Forge DevCon in Las Vegas in November of 2018. That was definitely stepping outside of my comfort zone to speak in front of so many people. I was fortunate to be able to co-present with Michael Beale of Autodesk and he lead me through the whole process.
My idea was using progressive web app technology to use some of the Autodesk Forge Cloud platforms while temporarily offline. Specifically how you could use the fetch and cache api’s to pull down the files required for the viewer to function and then view the data while offline.
If this sounds interesting, feel free to check out the video below.
Creating Flexible Offline Workflows Using Autodesk Forge