cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iLogic Trigger Filtering Option – Active Document Only

iLogic Trigger Filtering Option – Active Document Only

Hello.
This suggestion is based on my personal observations while migrating from Inventor 2023 to Inventor 2025. I may have misunderstood the new behavior or missed an existing workaround or configuration option. If such a feature already exists, I’d be grateful for clarification. Otherwise, I’d like to propose the following enhancement.

In Inventor 2025, iLogic rules linked to the "After Document Opens" event now appear to execute not only for the main document, but also for every occurrence in an assembly and every referenced part in a drawing. This differs from previous versions (e.g., Inventor 2023), where rules were only triggered for the active document.

Proposal: Introduce a filtering option in the iLogic event trigger configuration, such as:

  • A checkbox or

  • A toggle button next to each rule in the trigger list.

This option would allow users to choose:

  • Execute only for the active document

  • 🔁 Execute for all associated documents (current default behavior)

     

    vpeuvion_0-1762423183755.png

Benefits:

  • Gives users fine control over rule execution.

  • Prevents unwanted or redundant rule execution in subcomponents.

  • Preserves flexibility for workflows where global execution is beneficial (e.g., validation or synchronization across multiple documents).

  • Improves performance in large assemblies or complex drawings.

This change would offer better compatibility with previous versions while empowering users to adopt the new behavior when needed.
Thanks.
Vincent.

2 Comments
ReneRepina
Collaborator

Hello @vpeuvion 

 

I dare to say that in 2023 Event Triggers worked the same as now, but it depends, if you use "ThisApplication.ActiveDocument" or "ThisDoc.Document" in your iLogics.

 

Even if you just open the "main" assembly, all other parts are opened as "hidden", triggering the Event Triggers.

 

Your suggestion is probably more, run "only on visible documents" (only seen in documents tab).

 

We use this code, if we want to run iLogic just once per open (main assembly for example).

'This code runs only once per open (only on main document, others are skipped, because it is not needed to check several times)
If ThisApplication.ActiveDocument IsNot ThisDoc.Document Then
	Exit Sub
End If

 

 

Best regards,

Rene Repina

vpeuvion
Advocate

Hello @ReneRepina 
Thank you for your response.
You made me doubt myself, so I reinstalled Inventor 2023 to check. You were right — Inventor 2023 behaves the same way. That was my mistake.
I had used the same type of code as you for my case.
Thank you for your attentiveness and your correction.

Best regards,
Vincent

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea