- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi @torben_schroederXDK86. After seeing your response this morning, and thinking about it, I thought I remembered there being an 'Event' related to this 'action' , so I looked around a bit and found it. There is an object called FileAccessEvents right under the main Application object, and it has an Event named OnFileResolution which seems to be what you are looking for. Its online help page actually contains quite a bit of useful information that you should review.
I would recommend that you avoid creating new automation content within VBA, and stick with iLogic rules. The folks at Autodesk stopped including VBA in their standard installations back around 2021, partially due to security issues (among others). This is partially because Microsoft stopped maintaining & developing that coding resource several years ago. It is also pretty outdated now. However, because it is 'free' to use, readily available to Inventor users, and its user interface is more advanced than the iLogic rule editor dialog, it can still be valuable resource to keep handy. Many people like its visual Object Browser dialog, and the information that its Locals window can provide, when researching new objects or new functionality. The iLogic add-in allows us to use the newer VB.NET coding system, and iLogic rules are much easier to 'trigger' to run when events happen. However, when it comes to Inventor API Events (as opposed to just using the iLogic Event Triggers dialog), these are usually best managed by an Inventor add-in than with iLogic rules.
Since you seem relatively new to coding with VBA (and possibly with iLogic too), then you may also be relatively new to 'handling events' by code, without relying on the iLogic Event Triggers dialog, so I will attach a PDF document that you can review, which may help familiarize you with this concept. It can be a bit advanced, and challenging to manage properly at first. That document is several years old now, and could likely use some updating, but it will at least get you started in that direction.
Wesley Crihfield
(Not an Autodesk Employee)