- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
There is a ilogic form in my drawing and every time I run my VBA program in the drawing, the program stops and waits for the form to be closed manually. Need VBA code to close/ignore the ilogic form which triggers in the drawing while running my VBA program.
Regards,
Mohammed Shuaib K
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
So, your VBA code is not launching the iLogic form, right? The form is most likely being launched due to an iLogic rule that has been set-up in the Event Triggers dialog. Your VBA code must be causing an event that is triggering that rule to run, which launches the form. You may need to either temporarily suppress that iLogic rule that is launching the form, or temporarily turn off all Event Triggers functionality, while you are running your VBA code. This can be done by code if that sounds like a solution to you.
Wesley Crihfield
(Not an Autodesk Employee)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Write everything in VBA.
Or start programming your own add in which makes this a lot easier to handle!
Regards,
Arthur Knoors
Autodesk Affiliations:
Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!
! For administrative reasons, please mark a "Solution as solved" when the issue is solved !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
you can try this:
Set iLogicVb = ThisApplication.ApplicationAddIns.ItemById("{3BDD8D79-2179-4B11-8A5A-257B1C0263AC}")
Set a = iLogicVb.Automation
a.RulesOnEventsEnabled = False
' your original code here
a.RulesOnEventsEnabled = True
Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Blog: hjalte.nl - github.com