Need VBA code to close/ignore the ilogic form which triggers in the drawing

Need VBA code to close/ignore the ilogic form which triggers in the drawing

shuaib_cad
Advocate Advocate
697 Views
3 Replies
Message 1 of 4

Need VBA code to close/ignore the ilogic form which triggers in the drawing

shuaib_cad
Advocate
Advocate

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

0 Likes
Accepted solutions (1)
698 Views
3 Replies
Replies (3)
Message 2 of 4

WCrihfield
Mentor
Mentor

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

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 4

bradeneuropeArthur
Mentor
Mentor

Write everything in VBA.

Or start programming your own add in which makes this a lot easier to handle!

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


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:
My 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 !


 


EESignature

0 Likes
Message 4 of 4

JelteDeJong
Mentor
Mentor
Accepted solution

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.

EESignature


Blog: hjalte.nl - github.com

0 Likes