Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

I'm not sure if you have a version of Inventor prior to 2018 installed, but if you do perhaps you can create a screencast showing how this rule used to function?

 

And then perform the same steps inside of Inventor 2018 for comparison.

 

Also, are you certain that the files in which the rule doesn't run are not Library files? This was a change Autodesk made in Inventor 2018 to "...maintain consistency with the UI behavior."

 

https://knowledge.autodesk.com/support/inventor-products/troubleshooting/caas/sfdcarticles/sfdcartic...

 

One other thing, right at the top of the rule you refer to the "DocumentSubTypeID" - I doubt this will have changed between versions, but it's worth checking otherwise your rule will exit at this line:

2019-02-15 09_32_47-iLogic won't run when expected. - Autodesk Community- Inventor Products.png

 

A better approach might be to do this instead:

 

If Not TypeOf ThisApplication.ActiveDocument.ComponentDefinition Is SheetMetalComponentDefinition Then
    Exit Sub
End If

:slightly_smiling_face: