Only run Event Trigger Rules on "Active" document?

Only run Event Trigger Rules on "Active" document?

Clo-z-nuff_2
Enthusiast Enthusiast
270 Views
4 Replies
Message 1 of 5

Only run Event Trigger Rules on "Active" document?

Clo-z-nuff_2
Enthusiast
Enthusiast

Hi All, 

 

I will try to explain my question as best I can.  I have an external ilogic rule written to go to the "Home" view and zoom extents in ipt and iam files.  It works perfectly if I run the rule locally.  I have an event trigger to run this rule "Before Save Document" for Parts and Assemblies in hopes the it reminds users to zoom all before checking into Vault.  In the rule, a Message box is used to allow the user to accept the rule and zoom out or ignore it, depending on the situation.  The problem arises when I save an assembly with ye' ole' files that think they need to be saved.  All of these files, because of the Event Trigger, want to run the rule if I do a "Yes to All".  

 

Is there a way to ONLY run the rule in the file that is open and still have an active event trigger set?  I'm assuming that Inventor considers the file active if it is attempting to do a save in the background?

 

Hope this makes sense.  I also had this same thing happen on another rule a couple of years ago and ended up removing the event trigger because I could not figure out how to get around it.

 

Thanks!

0 Likes
271 Views
4 Replies
Replies (4)
Message 2 of 5

bradeneuropeArthur
Mentor
Mentor

what event trigger are you using?

  • the document events trigger
  • the application event trigger.

please show me in the ilogic box

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 3 of 5

Clo-z-nuff_2
Enthusiast
Enthusiast

@bradeneuropeArthur I am talking about the application events trigger.  Is this what you are looking for?

 

kmatzCHD9W_0-1673301678060.png

 

0 Likes
Message 4 of 5

bradeneuropeArthur
Mentor
Mentor

You better use the vault API in case you use Vault workgroup or Professional.

This does not require save.

It has a pre check in event that will help you with this issue.

I can create you an addin for this if you need.

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 5 of 5

bradeneuropeArthur
Mentor
Mentor

The events you show are document events when I am correct.

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