- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi @to_schroeder. We can run an iLogic rule with a VBA macro, but I have never heard of anyone wanting to show an iLogic form from a VBA macro. VBA has its own 'UserForms', which are more advanced than the iLogic forms, so when folks are using VBA, they usually just also use a VBA userform, instead of an iLogic form. VBA and iLogic are two separate entities, and the iLogic forms are defined within the iLogic add in. The VBA userforms can be more complicated to initially create, but offer a lot more options and flexibility in both design and function. And no, usually you can not get an iLogic form to stay open and update itself when you switch between multiple documents. We simply do not have that much control over those iLogic Forms from code. We do have more control over VBA userforms by code though. In fact the VBA userforms have their own code module in the VBA project tree, under the Forms folder.
Edit: If you wanted to, you could have the VBA macro run an iLogic rule. Then that iLogic rule that it runs could simply contain the needed code to show the iLogic Form if you wanted.
Wesley Crihfield
(Not an Autodesk Employee)